diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-11-25 00:59:37 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-11-25 00:59:37 +0000 |
commit | 027be73f23e66fd6f702e660e548a677ac4e57cd (patch) | |
tree | f66335b5fb692be6d7fe3f9cfcc8cdc0eb765009 /media-libs | |
parent | Stable on amd64, bug 112842. (diff) | |
download | gentoo-2-027be73f23e66fd6f702e660e548a677ac4e57cd.tar.gz gentoo-2-027be73f23e66fd6f702e660e548a677ac4e57cd.tar.bz2 gentoo-2-027be73f23e66fd6f702e660e548a677ac4e57cd.zip |
Remove libtool2 patch for PPC, fixing finally the PIC thing. It was due to -prefer-non-pic flag used in libdtls/configure.incls. Similar problem was fixed in a52dec-0.7.4-build.patch, from which libdts derive.
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libdts/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/libdts/files/libdts-0.0.2-libtool.patch | 35 | ||||
-rw-r--r-- | media-libs/libdts/files/libdts-0.0.2-libtool2.patch | 97 | ||||
-rw-r--r-- | media-libs/libdts/libdts-0.0.2-r3.ebuild | 19 |
4 files changed, 40 insertions, 120 deletions
diff --git a/media-libs/libdts/ChangeLog b/media-libs/libdts/ChangeLog index ad77d405d5bf..76073e71a464 100644 --- a/media-libs/libdts/ChangeLog +++ b/media-libs/libdts/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/libdts # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/ChangeLog,v 1.23 2005/10/31 16:07:43 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/ChangeLog,v 1.24 2005/11/25 00:59:37 flameeyes Exp $ + + 25 Nov 2005; Diego Pettenò <flameeyes@gentoo.org> + files/libdts-0.0.2-libtool.patch, -files/libdts-0.0.2-libtool2.patch, + libdts-0.0.2-r3.ebuild: + Remove libtool2 patch for PPC, fixing finally the PIC thing. It was due to + -prefer-non-pic flag used in libdtls/configure.incls. Similar problem was + fixed in a52dec-0.7.4-build.patch, from which libdts derive. 31 Oct 2005; Diego Pettenò <flameeyes@gentoo.org> -libdts-0.0.2.ebuild: Remove old version. diff --git a/media-libs/libdts/files/libdts-0.0.2-libtool.patch b/media-libs/libdts/files/libdts-0.0.2-libtool.patch index d9e230866e1c..ed784b4556b3 100644 --- a/media-libs/libdts/files/libdts-0.0.2-libtool.patch +++ b/media-libs/libdts/files/libdts-0.0.2-libtool.patch @@ -1,6 +1,7 @@ -diff -Naurp libdts-0.0.2.orig/configure.ac libdts-0.0.2/configure.ac ---- libdts-0.0.2.orig/configure.ac 2004-02-29 04:00:32.000000000 -0800 -+++ libdts-0.0.2/configure.ac 2005-03-26 03:11:21.000000000 -0800 +Index: libdts-0.0.2/configure.ac +=================================================================== +--- libdts-0.0.2.orig/configure.ac ++++ libdts-0.0.2/configure.ac @@ -77,22 +77,22 @@ else esac fi @@ -38,9 +39,10 @@ diff -Naurp libdts-0.0.2.orig/configure.ac libdts-0.0.2/configure.ac dnl Checks for libraries. LIBAO_LIBS="-lm" -diff -Naurp libdts-0.0.2.orig/libdts/Makefile.am libdts-0.0.2/libdts/Makefile.am ---- libdts-0.0.2.orig/libdts/Makefile.am 2004-02-25 05:52:15.000000000 -0800 -+++ libdts-0.0.2/libdts/Makefile.am 2005-03-26 03:05:59.000000000 -0800 +Index: libdts-0.0.2/libdts/Makefile.am +=================================================================== +--- libdts-0.0.2.orig/libdts/Makefile.am ++++ libdts-0.0.2/libdts/Makefile.am @@ -1,22 +1,22 @@ AM_CFLAGS = $(OPT_CFLAGS) $(LIBDTS_CFLAGS) @@ -76,9 +78,10 @@ diff -Naurp libdts-0.0.2.orig/libdts/Makefile.am libdts-0.0.2/libdts/Makefile.am +#libdts_pic_a_SOURCES = $(libdts_a_SOURCES) +#libdts_pic_a_CPPFLAGS = -fPIC -DPIC -diff -Naurp libdts-0.0.2.orig/src/Makefile.am libdts-0.0.2/src/Makefile.am ---- libdts-0.0.2.orig/src/Makefile.am 2004-02-25 05:52:16.000000000 -0800 -+++ libdts-0.0.2/src/Makefile.am 2005-03-26 03:06:30.000000000 -0800 +Index: libdts-0.0.2/src/Makefile.am +=================================================================== +--- libdts-0.0.2.orig/src/Makefile.am ++++ libdts-0.0.2/src/Makefile.am @@ -2,10 +2,10 @@ AM_CFLAGS = $(DTSDEC_CFLAGS) bin_PROGRAMS = dtsdec extract_dts @@ -94,3 +97,17 @@ diff -Naurp libdts-0.0.2.orig/src/Makefile.am libdts-0.0.2/src/Makefile.am extract_dts_SOURCES = extract_dts.c getopt.c man_MANS = dtsdec.1 extract_dts.1 +Index: libdts-0.0.2/libdts/configure.incl +=================================================================== +--- libdts-0.0.2.orig/libdts/configure.incl ++++ libdts-0.0.2/libdts/configure.incl +@@ -1,9 +1,6 @@ + AC_SUBST([LIBDTS_CFLAGS]) + AC_SUBST([LIBDTS_LIBS]) + +-dnl avoid -fPIC when possible +-AC_LIBTOOL_NON_PIC([LIBDTS_CFLAGS="$LIBDTS_CFLAGS -prefer-non-pic"]) +- + AC_ARG_ENABLE([fixed], + [ --enable-fixed use fixed-point (integer-based) arithmetic]) + AC_ARG_ENABLE([double], diff --git a/media-libs/libdts/files/libdts-0.0.2-libtool2.patch b/media-libs/libdts/files/libdts-0.0.2-libtool2.patch deleted file mode 100644 index 314174aced23..000000000000 --- a/media-libs/libdts/files/libdts-0.0.2-libtool2.patch +++ /dev/null @@ -1,97 +0,0 @@ -diff -ur -x '*~' libdts-0.0.2/configure.ac libdts-0.0.2-pic/configure.ac ---- libdts-0.0.2/configure.ac 2004-02-29 13:00:32.000000000 +0100 -+++ libdts-0.0.2-pic/configure.ac 2005-07-21 12:03:12.762170496 +0200 -@@ -77,22 +77,22 @@ - esac - fi - --#libtool# dnl Checks for libtool - this must be done after we set cflags --#libtool# AC_DISABLE_SHARED --#libtool# AC_LIBTOOL_WIN32_DLL --#libtool# AC_PROG_LIBTOOL -+dnl Checks for libtool - this must be done after we set cflags -+#AC_DISABLE_SHARED -+AC_LIBTOOL_WIN32_DLL -+AC_PROG_LIBTOOL - - dnl Build the PIC library? - to be removed once libtool is re-enabled --AC_PROG_RANLIB --case "${target_os}" in -- *mingw32* | *cygwin* | *djgpp*) -- NEED_PIC=false -- ;; -- *) -- NEED_PIC=: -- ;; --esac --AM_CONDITIONAL(NEED_PIC, ${NEED_PIC}) -+#AC_PROG_RANLIB -+#case "${target_os}" in -+# *mingw32* | *cygwin* | *djgpp*) -+# NEED_PIC=false -+# ;; -+# *) -+# NEED_PIC=: -+# ;; -+#esac -+#AM_CONDITIONAL(NEED_PIC, ${NEED_PIC}) - - dnl Checks for libraries. - LIBAO_LIBS="-lm" -diff -ur -x '*~' libdts-0.0.2/libdts/Makefile.am libdts-0.0.2-pic/libdts/Makefile.am ---- libdts-0.0.2/libdts/Makefile.am 2004-02-25 14:52:15.000000000 +0100 -+++ libdts-0.0.2-pic/libdts/Makefile.am 2005-07-21 12:12:24.275327752 +0200 -@@ -1,22 +1,23 @@ - AM_CFLAGS = $(OPT_CFLAGS) $(LIBDTS_CFLAGS) - --#libtool# lib_LTLIBRARIES = libdts.la --#libtool# --#libtool# libdts_la_SOURCES = bitstream.c parse.c downmix.c --#libtool# libdts_la_LIBADD = $(LIBDTS_LIBS) --#libtool# libdts_la_LDFLAGS = -no-undefined -+lib_LTLIBRARIES = libdts.la - --lib_LIBRARIES = libdts.a $(libdts_pic_a) --libdts_a_SOURCES = bitstream.c parse.c downmix.c -+libdts_la_SOURCES = bitstream.c parse.c downmix.c -+libdts_la_LIBADD = $(LIBDTS_LIBS) -+libdts_la_LDFLAGS = -no-undefined -+libdts_la_CFLAGS = -fPIC $(AM_CFLAGS) -+ -+#lib_LIBRARIES = libdts.a $(libdts_pic_a) -+#libdts_a_SOURCES = bitstream.c parse.c downmix.c - - pkgconfigdir = $(libdir)/pkgconfig - pkgconfig_DATA = libdts.pc - - EXTRA_DIST = configure.incl dts_internal.h bitstream.h tables.h tables_quantization.h tables_huffman.h tables_fir.h tables_adpcm.h tables_vq.h - --if NEED_PIC --libdts_pic_a = libdts_pic.a --endif --libdts_pic_a_SOURCES = $(libdts_a_SOURCES) --libdts_pic_a_CPPFLAGS = -fPIC -DPIC -+#if NEED_PIC -+#libdts_pic_a = libdts_pic.a -+#endif -+#libdts_pic_a_SOURCES = $(libdts_a_SOURCES) -+#libdts_pic_a_CPPFLAGS = -fPIC -DPIC - -diff -ur -x '*~' libdts-0.0.2/src/Makefile.am libdts-0.0.2-pic/src/Makefile.am ---- libdts-0.0.2/src/Makefile.am 2004-02-25 14:52:16.000000000 +0100 -+++ libdts-0.0.2-pic/src/Makefile.am 2005-07-21 12:03:12.763170344 +0200 -@@ -2,10 +2,10 @@ - - bin_PROGRAMS = dtsdec extract_dts - dtsdec_SOURCES = dtsdec.c getopt.c gettimeofday.c --#libtool# dtsdec_LDADD = $(top_builddir)/libdts/libdts.la \ --#libtool# $(top_builddir)/libao/libao.a $(LIBAO_LIBS) --dtsdec_LDADD = $(top_builddir)/libdts/libdts.a \ -- $(top_builddir)/libao/libao.a $(LIBAO_LIBS) -+dtsdec_LDADD = $(top_builddir)/libdts/libdts.la \ -+ $(top_builddir)/libao/libao.a $(LIBAO_LIBS) -+#dtsdec_LDADD = $(top_builddir)/libdts/libdts.a \ -+# $(top_builddir)/libao/libao.a $(LIBAO_LIBS) - extract_dts_SOURCES = extract_dts.c getopt.c - - man_MANS = dtsdec.1 extract_dts.1 diff --git a/media-libs/libdts/libdts-0.0.2-r3.ebuild b/media-libs/libdts/libdts-0.0.2-r3.ebuild index f89eb2f6e7bd..895bf1f20853 100644 --- a/media-libs/libdts/libdts-0.0.2-r3.ebuild +++ b/media-libs/libdts/libdts-0.0.2-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/libdts-0.0.2-r3.ebuild,v 1.7 2005/10/31 15:58:11 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libdts/libdts-0.0.2-r3.ebuild,v 1.8 2005/11/25 00:59:37 flameeyes Exp $ inherit eutils autotools @@ -22,18 +22,11 @@ DEPEND="${RDEPEND} src_unpack() { unpack ${A} - if use ppc ; then - # For some reason, ppc isn't properly using -fPIC... this - # patch is broken, but makes it "work" on ppc. If someone - # will get me access, I'll fix it... --eradicator - # Bug #98494 - epatch ${FILESDIR}/${P}-libtool2.patch - else - epatch ${FILESDIR}/${P}-libtool.patch - fi - epatch ${FILESDIR}/${P}-freebsd.patch - - cd ${S} + cd "${S}" + + epatch "${FILESDIR}/${P}-libtool.patch" + epatch "${FILESDIR}/${P}-freebsd.patch" + eautoreconf } |