diff options
author | Joe Peterson <lavajoe@gentoo.org> | 2008-06-16 15:21:31 +0000 |
---|---|---|
committer | Joe Peterson <lavajoe@gentoo.org> | 2008-06-16 15:21:31 +0000 |
commit | 53b89a800a64c01084ff8d2f2433156598091044 (patch) | |
tree | b801c938238df15cab1ce90fad9d4909e8cf0199 /media-gfx | |
parent | Added more gcc-4.3 love to the mathcore, thanks to Derek Dolney, bug #226013 (diff) | |
download | historical-53b89a800a64c01084ff8d2f2433156598091044.tar.gz historical-53b89a800a64c01084ff8d2f2433156598091044.tar.bz2 historical-53b89a800a64c01084ff8d2f2433156598091044.zip |
Fix linking (bug #226897) - no rev bump
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/xv/ChangeLog | 6 | ||||
-rw-r--r-- | media-gfx/xv/Manifest | 5 | ||||
-rw-r--r-- | media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch | 27 | ||||
-rw-r--r-- | media-gfx/xv/xv-3.10a-r15.ebuild | 73 |
4 files changed, 68 insertions, 43 deletions
diff --git a/media-gfx/xv/ChangeLog b/media-gfx/xv/ChangeLog index cb8b68e31541..b23a94141666 100644 --- a/media-gfx/xv/ChangeLog +++ b/media-gfx/xv/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-gfx/xv # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/ChangeLog,v 1.97 2008/06/07 19:53:02 lavajoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/ChangeLog,v 1.98 2008/06/16 15:21:30 lavajoe Exp $ + + 16 Jun 2008; Joe Peterson <lavajoe@gentoo.org> + +files/xv-3.10a-add-ldflags-20070520.patch, xv-3.10a-r15.ebuild: + Fix linking (bug #226897) - no rev bump 07 Jun 2008; Joe Peterson <lavajoe@gentoo.org> -xv-3.10a-r14.ebuild: Remove old diff --git a/media-gfx/xv/Manifest b/media-gfx/xv/Manifest index b0a549bbb653..ac65aa811bf2 100644 --- a/media-gfx/xv/Manifest +++ b/media-gfx/xv/Manifest @@ -1,9 +1,10 @@ +AUX xv-3.10a-add-ldflags-20070520.patch 757 RMD160 79231875612838a82b35692bd2e42da611299f8b SHA1 63eb1bd27bc412baa679a411aa3659c464fc9a8f SHA256 c63c7461b2bdae9f42828871522ffe384bd1bf3f1dd982a7ed7346e267531762 AUX xv-3.10a-disable-jp2k-20070520.patch 589 RMD160 9c5ba21c35aac25ad06a2f3e2428ba9a8258c5ca SHA1 3e437c27016b0846d42f04ea0a17499af5374b05 SHA256 477c9e3684960e661679cbe0cce69218dfb9dccc006ff5bfe80eefb8e80d6ed2 AUX xv-3.10a-fix-wait-20070520.patch 1664 RMD160 7d65d1ce5310ca7890ab426f41ce0bcf86f5dabc SHA1 4a7eb17085cca76702ac120ba021a46a5175a657 SHA256 840d8e0397367360004e23a26e27fa6074318bb20fc7ffcc575884369f66cece AUX xv-3.10a-osx-bsd-20070520.patch 1479 RMD160 27f6e665e4a6dad409d90b64eba5416d17fe60e9 SHA1 96fd3efc7c6ced3374aa4de15dbe983ab475fcb4 SHA256 fc801f9f3e4ebfc6f59f62e4dc15404b65654f1b46d1141794b249270d941114 AUX xv-3.10a-vdcomp-osx-20070520.patch 437 RMD160 033c4340794a43400c67150a6c594909a6c52680 SHA1 5005c394564287d7e57f0c86fbc86b601c45c916 SHA256 e0d522ed4d835b8231aa5b3df1e401d9d1f6608eae2ec8ca7d415a11ff349d29 DIST xv-3.10a-jumbo-patches-20070520.tar.gz 1363802 RMD160 23bc07030416ebaca5ce4d223921e33094c37b93 SHA1 d00308c1687d9d803d26ef40c73d19a0f593c626 SHA256 221ec89fdf0772bd09c845cbb337aecf411a1aee215140b676717f49e9e65c80 DIST xv-3.10a.tar.gz 2259124 RMD160 7d545e0c0e5b0120a7d026ea549cba19a53fbc0d SHA1 9e6372f154be9e9e355972cbeb91d98d9c342474 SHA256 03eb26b1e8f315c3093f4ae794862ba46637d16c055e8efbe5e3beb5d40fc451 -EBUILD xv-3.10a-r15.ebuild 2461 RMD160 7e78a2eda070ae4eda9a6e7ec261141e09178bf7 SHA1 aea8d9f51cf455cb2c8bdc7952e72e1d2613cd65 SHA256 3be54f5ba3ea718610d9a4eb1283b4fc8517e7fb815eaf749810b14720324acd -MISC ChangeLog 14013 RMD160 51f7411a9a61672c88c4207de244123aaad15a1e SHA1 19fffcbb1d6a526246b3610945a6bf5f6c62ed3c SHA256 65d7c74906117bfb4ecc42ad37ce846700f86a21fc4d91cc516432e31b40f460 +EBUILD xv-3.10a-r15.ebuild 2487 RMD160 28b91542d3f436980bb8b85dfcfcc6b091db9d4e SHA1 812166e61c381fd744c025cffb20d0887c43467a SHA256 4047dd3df7aa713060afa32c0c1d4f0f2c9da825d2f4592b1c1bb1be8b874fb3 +MISC ChangeLog 14172 RMD160 948996abae4e4781dbd2479b5fad95dc6c64d80a SHA1 b4773a27043f96a37af8c179de6b7805bdbcd2ca SHA256 d4904ac0839e050789b1742584926d506c3cf2860c0c75e00edac60868dc7ac6 MISC metadata.xml 223 RMD160 0c9c59654305e8789fe6c93fd07c561cfe003f54 SHA1 7904e6fb45104baf2cb67fb9886c633af4dc7056 SHA256 a24b49fe5448d4cb329acf1d8113ac30eb1d61d63a7319b66c077d3f1775d055 diff --git a/media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch b/media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch new file mode 100644 index 000000000000..da53ccb8bd6b --- /dev/null +++ b/media-gfx/xv/files/xv-3.10a-add-ldflags-20070520.patch @@ -0,0 +1,27 @@ +--- xv-3.10a/Makefile.orig 2008-06-16 08:32:39.000000000 -0600 ++++ xv-3.10a/Makefile 2008-06-16 08:49:19.000000000 -0600 +@@ -369,19 +369,19 @@ + + #xv: $(OBJS) $(JPEGLIB) $(TIFFLIB) + xv: $(OBJS) +- $(CC) -o xv $(CFLAGS) $(OBJS) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o xv $(OBJS) $(LIBS) + + bggen: bggen.c +- $(CC) $(CFLAGS) -o bggen bggen.c $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o bggen bggen.c $(LIBS) + + vdcomp: vdcomp.c +- $(CC) $(CFLAGS) -o vdcomp vdcomp.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o vdcomp vdcomp.c + + xcmap: xcmap.c +- $(CC) $(CFLAGS) -o xcmap xcmap.c $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o xcmap xcmap.c $(LIBS) + + xvpictoppm: xvpictoppm.c +- $(CC) $(CFLAGS) -o xvpictoppm xvpictoppm.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o xvpictoppm xvpictoppm.c + + + diff --git a/media-gfx/xv/xv-3.10a-r15.ebuild b/media-gfx/xv/xv-3.10a-r15.ebuild index bec1fa2e0e18..d3d6409b1299 100644 --- a/media-gfx/xv/xv-3.10a-r15.ebuild +++ b/media-gfx/xv/xv-3.10a-r15.ebuild @@ -1,11 +1,11 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r15.ebuild,v 1.8 2008/06/07 19:45:37 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a-r15.ebuild,v 1.9 2008/06/16 15:21:30 lavajoe Exp $ -inherit flag-o-matic eutils toolchain-funcs +inherit eutils flag-o-matic JUMBOV=20070520 -DESCRIPTION="An interactive image manipulation program for X, supporting a wide variety of image formats" +DESCRIPTION="An interactive image manipulation program that supports a wide variety of image formats" HOMEPAGE="http://www.trilon.com/xv/index.html http://www.sonic.net/~roelofs/greg_xv.html" SRC_URI="mirror://sourceforge/png-mng/${P}-jumbo-patches-${JUMBOV}.tar.gz ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz" @@ -18,7 +18,6 @@ DEPEND="x11-libs/libXt jpeg? ( >=media-libs/jpeg-6b ) tiff? ( >=media-libs/tiff-3.6.1-r2 ) png? ( >=media-libs/libpng-1.2 >=sys-libs/zlib-1.1.4 )" -RDEPEND=${DEPEND} src_unpack() { unpack ${A} @@ -39,56 +38,50 @@ src_unpack() { # Fix -wait option (do not rely on obsolete CLK_TCK) epatch "${FILESDIR}/${P}"-fix-wait-${JUMBOV}.patch - sed -i -e 's/\(^JPEG.*\)/#\1/g' \ - -e 's/\(^PNG.*\)/#\1/g' \ - -e 's/\(^TIFF.*\)/#\1/g' \ - -e 's/\(^LIBS = .*\)/\1 $(LDFLAGS) /g' Makefile + # Use LDFLAGS on link lines + epatch "${FILESDIR}/${P}"-add-ldflags-${JUMBOV}.patch + + # Link with various image libraries depending on use flags + IMAGE_LIBS="" + use jpeg && IMAGE_LIBS="${IMAGE_LIBS} -ljpeg" + use png && IMAGE_LIBS="${IMAGE_LIBS} -lz -lpng" + use tiff && IMAGE_LIBS="${IMAGE_LIBS} -ltiff" + + sed -i \ + -e 's/\(^JPEG.*\)/#\1/g' \ + -e 's/\(^PNG.*\)/#\1/g' \ + -e 's/\(^TIFF.*\)/#\1/g' \ + -e "s/\(^LIBS = .*\)/\1${IMAGE_LIBS}/g" Makefile # /usr/bin/gzip => /bin/gzip - sed -i -e 's#/usr\(/bin/gzip\)#\1#g' config.h + sed -i -e 's#/usr\(/bin/gzip\)#\1#g' config.h - # fix installation of ps docs. + # Fix installation of ps docs sed -i -e 's#$(DESTDIR)$(LIBDIR)#$(LIBDIR)#g' Makefile } src_compile() { append-flags -DUSE_GETCWD -DLINUX -DUSLEEP - - einfo "Enabling Optional Features..." - if use jpeg; then - ebegin " jpeg" - append-flags -DDOJPEG - append-ldflags -ljpeg - eend - fi - if use png; then - ebegin " png" - append-flags -DDOPNG - append-ldflags -lz -lpng - eend - fi - if use tiff; then - ebegin " tiff" - append-flags -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX - append-ldflags -ltiff - eend - fi - einfo "done." - - emake CC="$(tc-getCC)" CCOPTS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ - PREFIX=/usr \ - DOCDIR=/usr/share/doc/${PF} \ - LIBDIR="${T}" || die + use jpeg && append-flags -DDOJPEG + use png && append-flags -DDOPNG + use tiff && append-flags -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX + + emake \ + CC="$(tc-getCC)" CCOPTS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + PREFIX=/usr \ + DOCDIR=/usr/share/doc/${PF} \ + LIBDIR="${T}" || die } src_install() { dodir /usr/bin dodir /usr/share/man/man1 - emake DESTDIR="${D}" \ - PREFIX=/usr \ - DOCDIR=/usr/share/doc/${PF} \ - LIBDIR="${T}" install || die + emake \ + DESTDIR="${D}" \ + PREFIX=/usr \ + DOCDIR=/usr/share/doc/${PF} \ + LIBDIR="${T}" install || die dodoc CHANGELOG BUGS IDEAS } |