diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-10 23:40:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-10 23:40:16 +0100 |
commit | 51af5f0eb4cddbe6aa7953717873691d77aae9ff (patch) | |
tree | 1541525274162b033ebbc3ed38abaf335fbbd49a /media-libs/libdvd-audio | |
parent | 7014a5a3ea0feffab9701fdd6b64cc7667a985af (diff) |
gentoo resync : 11.07.2019
Diffstat (limited to 'media-libs/libdvd-audio')
-rw-r--r-- | media-libs/libdvd-audio/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libdvd-audio/files/libdvd-audio-1.0.0-makefile.patch | 53 | ||||
-rw-r--r-- | media-libs/libdvd-audio/libdvd-audio-1.0.0.ebuild | 34 | ||||
-rw-r--r-- | media-libs/libdvd-audio/metadata.xml | 11 |
4 files changed, 102 insertions, 0 deletions
diff --git a/media-libs/libdvd-audio/Manifest b/media-libs/libdvd-audio/Manifest new file mode 100644 index 000000000000..bd26a9549562 --- /dev/null +++ b/media-libs/libdvd-audio/Manifest @@ -0,0 +1,4 @@ +AUX libdvd-audio-1.0.0-makefile.patch 2001 BLAKE2B 34a0dadb1b8647f75f2df25e08804546729c18441b0b7730e209acb968830e9cbe84da6747f1962e43240c8dee962c4cc045cf98c82d2ffb2fda25cb6b07bd08 SHA512 3bc65331a28970c877ebcce1b008603d9491838bebd61fd87b9c50af8f0bf3093fa9045e0d8ad9dcbaed02f5dc50fa2c5082c179ba73633bd9c01f7de4e0c9c5 +DIST libdvd-audio-1.0.0.tar.gz 224989 BLAKE2B 972d53499a5736d9a006d1c4bfab5f51ce0a6404b5b7dd05a17e76642cd9231c4db25202b9108cfaeff1739f651c7b43ad5450941a625284c61c80646a8278a5 SHA512 b0a19670b07d9bbc3622ecd0d50b2ead56f1d7b2c9c3082a02f7cee75532fd333e1ebd5fafeeb431d2427c2dfcebdb9ffb03fb3b6b4d6ce6f307e0333e5beb64 +EBUILD libdvd-audio-1.0.0.ebuild 760 BLAKE2B 328662b858f5f5eed0621d0db16811e6169abe6f8a68a925e1e12ced9eb90331f69e3e986de8c2d20014666e553ada9ef9d08513c687fc08133d1fd8828adbd9 SHA512 a4867dfbdf26db32e00f26b806b32850f11166c4cf56dab25c96aa2e90560a3306d43eca7150a34378e2db4be7df54b8abeb7f1ca09c420b19382c77980c3755 +MISC metadata.xml 335 BLAKE2B efc8e6854ff5ba047cbf55912e42b9a2f402432eae796cb67610f3cb5b6109d4a6803612944ac0345e3bbac842302a58be961fb3aa862e7adf661f3e159c6d67 SHA512 4c7c7bcde5236d7ec22518d360c1219adef05cb8cc934934e4d0f0d36a17767438009977e8ac56e027fed3675de1c77c3f083d3d6135cca34f759294a88845ca diff --git a/media-libs/libdvd-audio/files/libdvd-audio-1.0.0-makefile.patch b/media-libs/libdvd-audio/files/libdvd-audio-1.0.0-makefile.patch new file mode 100644 index 000000000000..fd9308b69c80 --- /dev/null +++ b/media-libs/libdvd-audio/files/libdvd-audio-1.0.0-makefile.patch @@ -0,0 +1,53 @@ +Respect CFLAGS/LDFLAGS and use DESTDIR for install targets. + +--- libdvd-audio-1.0.0/Makefile ++++ libdvd-audio-1.0.0/Makefile +@@ -1,8 +1,9 @@ +-FLAGS = -Wall -O2 -g -fPIC +-LIB_DIR = /usr/local/lib +-INCLUDE_DIR = /usr/local/include +-BIN_DIR = /usr/local/bin +-PKG_CONFIG_DIR = /usr/lib/pkgconfig ++FLAGS = -Wall -fPIC $(CFLAGS) ++PREFIX = /usr/local ++LIB_DIR = $(PREFIX)/lib ++INCLUDE_DIR = $(PREFIX)/include ++BIN_DIR = $(PREFIX)/bin ++PKG_CONFIG_DIR = $(LIB_DIR)/pkgconfig + + BITSTREAM_OBJS = bitstream.o \ + huffman.o \ +@@ -56,13 +57,17 @@ + all: $(STATIC_LIBRARY) $(SHARED_LIBRARIES) $(BINARIES) $(PKG_CONFIG_METADATA) + + install: $(STATIC_LIBRARY) $(SHARED_LIBRARIES) $(BINARIES) $(PKG_CONFIG_METADATA) +- install -m 644 $(SHARED_LIBRARY) $(LIB_DIR) +- cp -Pp $(SHARED_LIBRARY_LINK_1) $(LIB_DIR) +- cp -Pp $(SHARED_LIBRARY_LINK_2) $(LIB_DIR) +- install -m 644 $(STATIC_LIBRARY) $(LIB_DIR) +- install -m 644 include/dvd-audio.h $(INCLUDE_DIR) +- install -m 755 $(BINARIES) $(BIN_DIR) +- install -m 644 $(PKG_CONFIG_METADATA) $(PKG_CONFIG_DIR) ++ mkdir -p $(DESTDIR)$(LIB_DIR) ++ install -m 755 $(SHARED_LIBRARY) $(DESTDIR)$(LIB_DIR) ++ cp -Pp $(SHARED_LIBRARY_LINK_1) $(DESTDIR)$(LIB_DIR) ++ cp -Pp $(SHARED_LIBRARY_LINK_2) $(DESTDIR)$(LIB_DIR) ++ install -m 644 $(STATIC_LIBRARY) $(DESTDIR)$(LIB_DIR) ++ mkdir -p $(DESTDIR)$(INCLUDE_DIR) ++ install -m 644 include/dvd-audio.h $(DESTDIR)$(INCLUDE_DIR) ++ mkdir -p $(DESTDIR)$(BIN_DIR) ++ install -m 755 $(BINARIES) $(DESTDIR)$(BIN_DIR) ++ mkdir -p $(DESTDIR)$(PKG_CONFIG_DIR) ++ install -m 644 $(PKG_CONFIG_METADATA) $(DESTDIR)$(PKG_CONFIG_DIR) + + clean: + rm -f $(BINARIES) $(CODEBOOKS) $(BINARIES) $(PKG_CONFIG_METADATA) huffman *.o *.a *.so* +@@ -71,7 +76,7 @@ + $(AR) -r $@ $(DVDA_OBJS) + + $(SHARED_LIBRARY): $(DVDA_OBJS) +- $(CC) $(FLAGS) -Wl,-soname,libdvd-audio.so.$(MAJOR_VERSION) -shared -o $@ $(DVDA_OBJS) ++ $(CC) $(FLAGS) $(LDFLAGS) -Wl,-soname,libdvd-audio.so.$(MAJOR_VERSION) -shared -o $@ $(DVDA_OBJS) + + $(SHARED_LIBRARY_LINK_1): $(SHARED_LIBRARY) + ln -sf $< $@ diff --git a/media-libs/libdvd-audio/libdvd-audio-1.0.0.ebuild b/media-libs/libdvd-audio/libdvd-audio-1.0.0.ebuild new file mode 100644 index 000000000000..040a6ebb4991 --- /dev/null +++ b/media-libs/libdvd-audio/libdvd-audio-1.0.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="library for extracting audio from DVD-Audio discs" +HOMEPAGE="https://sourceforge.net/projects/libdvd-audio/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc static-libs" + +PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) + +BDEPEND="doc? ( dev-python/sphinx )" + +src_configure() { + tc-export CC AR +} + +src_compile() { + emake + use doc && emake -C docs man +} + +src_install() { + emake DESTDIR="${ED}" PREFIX=/usr LIB_DIR=/usr/$(get_libdir) install + use doc && doman docs/build/man/* + use static-libs || { find "${ED}/usr" -name '*.a' -delete || die; } +} diff --git a/media-libs/libdvd-audio/metadata.xml b/media-libs/libdvd-audio/metadata.xml new file mode 100644 index 000000000000..a33d4004bb21 --- /dev/null +++ b/media-libs/libdvd-audio/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">libdvd-audio</remote-id> + </upstream> +</pkgmetadata> |