summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2006-12-08 23:36:42 +0000
committerAlexis Ballier <aballier@gentoo.org>2006-12-08 23:36:42 +0000
commitd9fdc9c45dcc15d7da86343a1f759e7a0e4f1431 (patch)
treeaa1b95927df63f50cea1fdd3f522f494a7f57a38 /media-video/mpgtx
parentAdd a patch to use $MAKE instead of make and add ~x86-fbsd keyword (diff)
downloadgentoo-2-d9fdc9c45dcc15d7da86343a1f759e7a0e4f1431.tar.gz
gentoo-2-d9fdc9c45dcc15d7da86343a1f759e7a0e4f1431.tar.bz2
gentoo-2-d9fdc9c45dcc15d7da86343a1f759e7a0e4f1431.zip
Various fixes from Timothy Redaelli <drizzt@gentoo.org> : prestripping, does not use LDFLAGS, does not use CHOST-CXX, bug #157531. Plus another fix to not ignore CXXFLAGS.
(Portage version: 2.1.2_rc2-r5)
Diffstat (limited to 'media-video/mpgtx')
-rw-r--r--media-video/mpgtx/ChangeLog11
-rw-r--r--media-video/mpgtx/files/digest-mpgtx-1.3.12
-rw-r--r--media-video/mpgtx/files/digest-mpgtx-1.3.1-r13
-rw-r--r--media-video/mpgtx/files/mpgtx-1.3.1-configure.patch69
-rw-r--r--media-video/mpgtx/files/mpgtx-1.3.1-dont-ignore-cxx-flags.patch11
-rw-r--r--media-video/mpgtx/mpgtx-1.3.1-r1.ebuild53
6 files changed, 148 insertions, 1 deletions
diff --git a/media-video/mpgtx/ChangeLog b/media-video/mpgtx/ChangeLog
index c01d49127c1d..115b054d6b56 100644
--- a/media-video/mpgtx/ChangeLog
+++ b/media-video/mpgtx/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-video/mpgtx
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mpgtx/ChangeLog,v 1.13 2006/05/03 20:56:54 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mpgtx/ChangeLog,v 1.14 2006/12/08 23:36:42 aballier Exp $
+
+*mpgtx-1.3.1-r1 (08 Dec 2006)
+
+ 08 Dec 2006; Alexis Ballier <aballier@gentoo.org>
+ +files/mpgtx-1.3.1-configure.patch,
+ +files/mpgtx-1.3.1-dont-ignore-cxx-flags.patch, +mpgtx-1.3.1-r1.ebuild:
+ Various fixes from Timothy Redaelli <drizzt@gentoo.org> : prestripping, does
+ not use LDFLAGS, does not use CHOST-CXX, bug #157531. Plus another fix to
+ not ignore CXXFLAGS.
03 May 2006; Diego Pettenò <flameeyes@gentoo.org> metadata.xml:
Update metadata to list media-video@gentoo.org as maintainer.
diff --git a/media-video/mpgtx/files/digest-mpgtx-1.3.1 b/media-video/mpgtx/files/digest-mpgtx-1.3.1
index c12562455ef1..0619bf61b54e 100644
--- a/media-video/mpgtx/files/digest-mpgtx-1.3.1
+++ b/media-video/mpgtx/files/digest-mpgtx-1.3.1
@@ -1 +1,3 @@
MD5 d628060aa04ad3b40a175bf35f5167cf mpgtx-1.3.1.tar.gz 89170
+RMD160 f39704aef3e2b325d77f48817ecb883ea6a2a029 mpgtx-1.3.1.tar.gz 89170
+SHA256 8815e73e98b862f12ba1ef5eaaf49407cf211c1f668c5ee325bf04af27f8e377 mpgtx-1.3.1.tar.gz 89170
diff --git a/media-video/mpgtx/files/digest-mpgtx-1.3.1-r1 b/media-video/mpgtx/files/digest-mpgtx-1.3.1-r1
new file mode 100644
index 000000000000..0619bf61b54e
--- /dev/null
+++ b/media-video/mpgtx/files/digest-mpgtx-1.3.1-r1
@@ -0,0 +1,3 @@
+MD5 d628060aa04ad3b40a175bf35f5167cf mpgtx-1.3.1.tar.gz 89170
+RMD160 f39704aef3e2b325d77f48817ecb883ea6a2a029 mpgtx-1.3.1.tar.gz 89170
+SHA256 8815e73e98b862f12ba1ef5eaaf49407cf211c1f668c5ee325bf04af27f8e377 mpgtx-1.3.1.tar.gz 89170
diff --git a/media-video/mpgtx/files/mpgtx-1.3.1-configure.patch b/media-video/mpgtx/files/mpgtx-1.3.1-configure.patch
new file mode 100644
index 000000000000..ec36e76ba641
--- /dev/null
+++ b/media-video/mpgtx/files/mpgtx-1.3.1-configure.patch
@@ -0,0 +1,69 @@
+--- configure.old 2006-12-07 19:51:08.000000000 +0100
++++ configure 2006-12-07 19:51:02.000000000 +0100
+@@ -9,7 +9,6 @@
+ prefix="/usr/local"
+ manprefix='$(PREFIX)'
+ #compiler flags
+-CC="g++"
+ common_cflags="-Wall"
+ devel_cflags="-g -Werror -fno-builtin"
+ optimization_cflags="-O3"
+@@ -36,7 +35,6 @@
+
+ if [ "${HOSTNAME}" = "powerpc-apple-darwin6.0" ]; then
+ #compiler flags
+-CC="c++"
+ common_cflags="-pedantic -Wall"
+ #devel_cflags="-g -Werror -fno-builtin"
+ devel_cflags="-g -fno-builtin"
+@@ -153,8 +151,15 @@
+ if test "$gcc_minor" = "0" -o "$gcc_minor" = "1"; then
+ optimization_cflags="-O2";
+ fi
++ if test "$gcc_minor" -ge 4; then
++ optimization_cflags="$optimization_cflags -fno-unit-at-a-time"
++ fi
++elif test "$gcc_major" -ge "4"; then
++ optimization_cflags="$optimization_cflags -fno-unit-at-a-time"
+ fi
+
++
++
+ # Now check if the system handles large file support
+ # unless user has specified not to do so
+ if test $LFS = "yes"; then
+@@ -165,7 +170,7 @@
+ return (int)(fseeko(stdin,0,SEEK_SET));
+ }
+ EOF
+- $CC __LFStest.cpp -o __LFStestPASSED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 1>__LFSout 2>__LFSerror
++ ${CXX:-c++} __LFStest.cpp -o __LFStestPASSED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 1>__LFSout 2>__LFSerror
+ if test -f __LFStestPASSED; then
+ echo "PASSED";
+ cflags="$cflags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE";
+@@ -211,7 +211,6 @@
+ fi
+
+ if test $devel = "no" -a $debug = "no"; then
+-lflags="$lflags -s";
+ cflags="$cflags $optimization_cflags";
+ fi
+
+@@ -293,15 +298,15 @@
+ @echo ""
+
+ mpgtx : commandline.cxx mpegOut.o mpeg.o chunkTab.o id3command.o common.hh
+- $CC \$(CFLAGS) \$(OFLAGS) -o mpgtx commandline.cxx mpegOut.o mpeg.o chunkTab.o id3command.o \$(LFLAGS)
++ \$(CXX) \$(CFLAGS) \$(OFLAGS) \$(LDFLAGS) -o mpgtx commandline.cxx mpegOut.o mpeg.o chunkTab.o id3command.o \$(LFLAGS)
+ mpegOut.o : mpegOut.cxx mpegOut.hh mpeg.hh common.hh
+- $CC \$(CFLAGS) \$(OFLAGS) -c mpegOut.cxx
++ \$(CXX) \$(CFLAGS) \$(OFLAGS) -c mpegOut.cxx
+ mpeg.o : mpeg.cxx mpeg.hh mpegOut.hh common.hh
+- $CC \$(CFLAGS) \$(OFLAGS) -c mpeg.cxx
++ \$(CXX) \$(CFLAGS) \$(OFLAGS) -c mpeg.cxx
+ chunkTab.o : chunkTab.cxx chunkTab.hh common.hh
+- $CC \$(CFLAGS) \$(OFLAGS) -c chunkTab.cxx
++ \$(CXX) \$(CFLAGS) \$(OFLAGS) -c chunkTab.cxx
+ id3command.o : id3command.cxx id3command.hh common.hh
+- $CC \$(CFLAGS) \$(OFLAGS) -c id3command.cxx
++ \$(CXX) \$(CFLAGS) \$(OFLAGS) -c id3command.cxx
diff --git a/media-video/mpgtx/files/mpgtx-1.3.1-dont-ignore-cxx-flags.patch b/media-video/mpgtx/files/mpgtx-1.3.1-dont-ignore-cxx-flags.patch
new file mode 100644
index 000000000000..3a7f5da67458
--- /dev/null
+++ b/media-video/mpgtx/files/mpgtx-1.3.1-dont-ignore-cxx-flags.patch
@@ -0,0 +1,11 @@
+--- mpgtx-1.3.1/configure.old 2006-12-09 00:26:18.000000000 +0100
++++ mpgtx-1.3.1/configure 2006-12-09 00:28:52.000000000 +0100
+@@ -11,7 +11,7 @@
+ #compiler flags
+ common_cflags="-Wall"
+ devel_cflags="-g -Werror -fno-builtin"
+-optimization_cflags="-O3"
++optimization_cflags="${CXXFLAGS}"
+ release_cflags=$optimization_cflags
+ OFLAGS="-ansi"
+ cflags=$common_cflags
diff --git a/media-video/mpgtx/mpgtx-1.3.1-r1.ebuild b/media-video/mpgtx/mpgtx-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..d8c99f32c910
--- /dev/null
+++ b/media-video/mpgtx/mpgtx-1.3.1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mpgtx/mpgtx-1.3.1-r1.ebuild,v 1.1 2006/12/08 23:36:42 aballier Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="mpgtx a command line MPEG audio/video/system file toolbox"
+SRC_URI="mirror://sourceforge/mpgtx/${P}.tar.gz"
+HOMEPAGE="http://mpgtx.sourceforge.net/"
+
+KEYWORDS="~amd64 ~ppc ~ppc-macos ~x86"
+IUSE=""
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack () {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-configure.patch"
+ epatch "${FILESDIR}/${P}-dont-ignore-cxx-flags.patch"
+}
+
+src_compile() {
+ tc-export CXX
+ ./configure --parachute --prefix=/usr
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin mpgtx
+
+ dosym mpgtx /usr/bin/mpgjoin
+ dosym mpgtx /usr/bin/mpgsplit
+ dosym mpgtx /usr/bin/mpgcat
+ dosym mpgtx /usr/bin/mpginfo
+ dosym mpgtx /usr/bin/mpgdemux
+ dosym mpgtx /usr/bin/tagmp3
+
+ doman man/mpgtx.1 man/tagmp3.1
+
+ dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgcat.1
+ dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgjoin.1
+ dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpginfo.1
+ dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgsplit.1
+ dosym /usr/share/man/man1/mpgtx.1 /usr/share/man/man1/mpgdemux.1
+
+ dodoc AUTHORS ChangeLog README TODO
+}