diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-10-23 19:53:22 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-10-23 19:53:22 +0000 |
commit | 92389be10edee3a0f1847c352b8076550f24d7e4 (patch) | |
tree | e531e0447328efbd743e34665de26e3659b64a82 /media-libs/netpbm | |
parent | Marked ~amd64-linux (diff) | |
download | gentoo-2-92389be10edee3a0f1847c352b8076550f24d7e4.tar.gz gentoo-2-92389be10edee3a0f1847c352b8076550f24d7e4.tar.bz2 gentoo-2-92389be10edee3a0f1847c352b8076550f24d7e4.zip |
Remove old.
(Portage version: 2.2.0_alpha70/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/netpbm')
-rw-r--r-- | media-libs/netpbm/ChangeLog | 11 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-10.35.0-pnmtopng-zlib.patch | 12 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-10.35.0-xml2.patch | 38 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-10.42.0-gcc43.patch | 16 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-10.46.00-min_DCT_v_scaled_size.patch | 35 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-10.48.00-pngx.patch | 51 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-10.48.00-pnmtopng-zlib.patch | 12 | ||||
-rw-r--r-- | media-libs/netpbm/files/netpbm-10.49.00-sigpower.patch | 23 | ||||
-rw-r--r-- | media-libs/netpbm/netpbm-10.49.00.ebuild | 162 | ||||
-rw-r--r-- | media-libs/netpbm/netpbm-10.51.00-r1.ebuild | 175 |
10 files changed, 10 insertions, 525 deletions
diff --git a/media-libs/netpbm/ChangeLog b/media-libs/netpbm/ChangeLog index 34995d9b74bf..20c33c71140a 100644 --- a/media-libs/netpbm/ChangeLog +++ b/media-libs/netpbm/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for media-libs/netpbm # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/ChangeLog,v 1.258 2011/10/23 16:07:11 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/ChangeLog,v 1.259 2011/10/23 19:53:21 radhermit Exp $ + + 23 Oct 2011; Tim Harder <radhermit@gentoo.org> + -files/netpbm-10.35.0-pnmtopng-zlib.patch, -files/netpbm-10.35.0-xml2.patch, + -files/netpbm-10.42.0-gcc43.patch, + -files/netpbm-10.46.00-min_DCT_v_scaled_size.patch, + -files/netpbm-10.48.00-pngx.patch, + -files/netpbm-10.48.00-pnmtopng-zlib.patch, -netpbm-10.49.00.ebuild, + -files/netpbm-10.49.00-sigpower.patch, -netpbm-10.51.00-r1.ebuild: + Remove old. 23 Oct 2011; Raúl Porcel <armin76@gentoo.org> netpbm-10.51.00-r2.ebuild: alpha/sparc stable wrt #383753 diff --git a/media-libs/netpbm/files/netpbm-10.35.0-pnmtopng-zlib.patch b/media-libs/netpbm/files/netpbm-10.35.0-pnmtopng-zlib.patch deleted file mode 100644 index ff66768744cc..000000000000 --- a/media-libs/netpbm/files/netpbm-10.35.0-pnmtopng-zlib.patch +++ /dev/null @@ -1,12 +0,0 @@ -http://bugs.gentoo.org/291987 - ---- netpbm/converter/other/Makefile -+++ netbpm/converter/other/Makefile -@@ -159,6 +156,7 @@ - $(shell $(LIBOPT) $(NETPBMLIB)) \ - $(PNGLIB_LIBOPTS) $(MATHLIB) $(LDFLAGS) $(LDLIBS) $(RPATH) $(LADD) - -+pnmtopng: LADD += -lz # pnmtopng calls zlib_version itself - pnmtopng: %: %.o pngtxt.o $(NETPBMLIB) $(LIBOPT) - $(LD) -o $@ $@.o pngtxt.o \ - $(shell $(LIBOPT) $(NETPBMLIB)) \ diff --git a/media-libs/netpbm/files/netpbm-10.35.0-xml2.patch b/media-libs/netpbm/files/netpbm-10.35.0-xml2.patch deleted file mode 100644 index 2dcc74fc6bab..000000000000 --- a/media-libs/netpbm/files/netpbm-10.35.0-xml2.patch +++ /dev/null @@ -1,38 +0,0 @@ -http://bugs.gentoo.org/137871 - ---- converter/other/Makefile -+++ converter/other/Makefile -@@ -7,14 +7,6 @@ - - include $(BUILDDIR)/Makefile.config - --ifeq ($(shell xml2-config --version),) -- XML2_LIBS=NONE -- XML2_CFLAGS=NONE --else -- XML2_LIBS=$(shell xml2-config --libs) -- XML2_CFLAGS=$(shell xml2-config --cflags) --endif -- - SUBDIRS = jbig pnmtopalm jpeg2000 cameratopam pamtosvg - ifneq ($(BUILD_FIASCO), N) - SUBDIRS += fiasco ---- Makefile.config.in -+++ Makefile.config.in -@@ -419,6 +419,16 @@ - ZHDR_DIR = - #ZLIB = libz.so - -+# The XML2 library -+ -+ifeq ($(shell xml2-config --version),) -+ XML2_LIBS=NONE -+ XML2_CFLAGS=NONE -+else -+ XML2_LIBS=$(shell xml2-config --libs) -+ XML2_CFLAGS=$(shell xml2-config --cflags) -+endif -+ - # The JBIG lossless image compression library (aka JBIG-KIT): - - JBIGLIB = $(BUILDDIR)/converter/other/jbig/libjbig.a diff --git a/media-libs/netpbm/files/netpbm-10.42.0-gcc43.patch b/media-libs/netpbm/files/netpbm-10.42.0-gcc43.patch deleted file mode 100644 index 1e61de8decb3..000000000000 --- a/media-libs/netpbm/files/netpbm-10.42.0-gcc43.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: trunk/lib/libpbm3.c -=================================================================== ---- trunk/lib/libpbm3.c (revision 608) -+++ trunk/lib/libpbm3.c (revision 609) -@@ -116,7 +116,11 @@ packBitsWithMmxSse(FILE * const - ) ]; - */ - -+#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 403) -+ typedef char v8qi __attribute__ ((vector_size(8))); -+#else - typedef int v8qi __attribute__ ((mode(V8QI))); -+#endif - typedef int di __attribute__ ((mode(DI))); - - di const zero64 = 0; /* to clear with PXOR */ diff --git a/media-libs/netpbm/files/netpbm-10.46.00-min_DCT_v_scaled_size.patch b/media-libs/netpbm/files/netpbm-10.46.00-min_DCT_v_scaled_size.patch deleted file mode 100644 index 89948dceb432..000000000000 --- a/media-libs/netpbm/files/netpbm-10.46.00-min_DCT_v_scaled_size.patch +++ /dev/null @@ -1,35 +0,0 @@ -support for jpeg-7 - ---- netpbm-10.46.00/converter/ppm/ppmtompeg/jpeg.c -+++ netpbm-10.48.00/converter/ppm/ppmtompeg/jpeg.c -@@ -53,6 +53,17 @@ - #define HEADER_SIZE 607 /*JFIF header size used on output images*/ - - -+static int -+minDctVScaledSize(struct jpeg_decompress_struct const cinfo) { -+ -+#if JPEG_LIB_VERSION >= 70 -+ return cinfo.min_DCT_v_scaled_size; -+#else -+ return cinfo.min_DCT_scaled_size; -+#endif -+} -+ -+ - - /*=======================================================================* - * * -@@ -467,11 +474,7 @@ - /* Make an 8-row-high sample array that will go away when done - with image - */ --#ifdef JPEG4 -- buffer_height = 8; /* could be 2, 4,8 rows high */ --#else -- buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_scaled_size; --#endif -+ buffer_height = cinfo.max_v_samp_factor * minDctVScaledSize(cinfo); - - for(cp=0,compptr = cinfo.comp_info;cp<cinfo.num_components; - cp++,compptr++) { diff --git a/media-libs/netpbm/files/netpbm-10.48.00-pngx.patch b/media-libs/netpbm/files/netpbm-10.48.00-pngx.patch deleted file mode 100644 index 9975d29dceaa..000000000000 --- a/media-libs/netpbm/files/netpbm-10.48.00-pngx.patch +++ /dev/null @@ -1,51 +0,0 @@ -http://bugs.gentoo.org/287725 - -fix from upstream - ---- netpbm/converter/other/pngx.c (revision 1021) -+++ netpbm/converter/other/pngx.c (revision 1022) -@@ -69,6 +69,7 @@ - else - *pngxPP = pngxP; - } -+ pngxP->rw = rw; - } - } - -@@ -77,7 +78,14 @@ - void - pngx_destroy(struct pngx * const pngxP) { - -- png_destroy_write_struct(&pngxP->png_ptr, &pngxP->info_ptr); -+ switch(pngxP->rw) { -+ case PNGX_READ: -+ png_destroy_read_struct(&pngxP->png_ptr, &pngxP->info_ptr, NULL); -+ break; -+ case PNGX_WRITE: -+ png_destroy_write_struct(&pngxP->png_ptr, &pngxP->info_ptr); -+ break; -+ } - - free(pngxP); - } ---- netpbm/converter/other/pngx.h (revision 1021) -+++ netpbm/converter/other/pngx.h (revision 1022) -@@ -5,14 +5,14 @@ - the PNG library easier and cleaner. - */ - -+typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw; -+ - struct pngx { - png_structp png_ptr; -- png_infop info_ptr; -+ png_infop info_ptr; -+ pngx_rw rw; - }; - --typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw; -- -- - void - pngx_create(struct pngx ** const pngxPP, - pngx_rw const rw, diff --git a/media-libs/netpbm/files/netpbm-10.48.00-pnmtopng-zlib.patch b/media-libs/netpbm/files/netpbm-10.48.00-pnmtopng-zlib.patch deleted file mode 100644 index 100c33f9ea34..000000000000 --- a/media-libs/netpbm/files/netpbm-10.48.00-pnmtopng-zlib.patch +++ /dev/null @@ -1,12 +0,0 @@ -http://bugs.gentoo.org/291987 - ---- netpbm/converter/other/Makefile -+++ netbpm/converter/other/Makefile -@@ -159,6 +156,7 @@ - $(shell $(LIBOPT) $(NETPBMLIB)) \ - $(PNGLIB_LIBOPTS) $(MATHLIB) $(LDFLAGS) $(LDLIBS) $(RPATH) $(LADD) - -+pnmtopng: LADD += -lz # pnmtopng calls zlib_version itself - pnmtopng: %: %.o pngx.o pngtxt.o $(NETPBMLIB) $(LIBOPT) - $(LD) -o $@ $@.o pngtxt.o \ - $(shell $(LIBOPT) $(NETPBMLIB)) \ diff --git a/media-libs/netpbm/files/netpbm-10.49.00-sigpower.patch b/media-libs/netpbm/files/netpbm-10.49.00-sigpower.patch deleted file mode 100644 index dae1b867e086..000000000000 --- a/media-libs/netpbm/files/netpbm-10.49.00-sigpower.patch +++ /dev/null @@ -1,23 +0,0 @@ -fix from upstream for systems that lack SIGPWR - -http://bugs.gentoo.org/310179 - ---- trunk/lib/libsystem.c 2010/02/23 15:56:42 1129 -+++ trunk/lib/libsystem.c 2010/03/17 01:57:18 1149 -@@ -278,12 +278,14 @@ - return "SIGWINCH"; - case SIGIO: - return "SIGIO"; -- case SIGPWR: -- return "SIGPWR"; - case SIGSYS: - return "SIGSYS"; - default: - return "???"; -+ -+ /* There are various other signal classes on some systems, but -+ not defined by POSIX, including: SIGPWR, SIGLOST, SIGINFO -+ */ - } - } else if ((int)signalClass >= SIGRTMIN && (int)signalClass <= SIGRTMAX) - return "SIGRTxxx"; diff --git a/media-libs/netpbm/netpbm-10.49.00.ebuild b/media-libs/netpbm/netpbm-10.49.00.ebuild deleted file mode 100644 index bb610c8f623b..000000000000 --- a/media-libs/netpbm/netpbm-10.49.00.ebuild +++ /dev/null @@ -1,162 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.49.00.ebuild,v 1.11 2011/09/24 23:24:33 robbat2 Exp $ - -EAPI=1 -inherit toolchain-funcs eutils multilib - -MAN_VER=10.33 -DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats" -HOMEPAGE="http://netpbm.sourceforge.net/" -SRC_URI="mirror://gentoo/${P}.tar.lzma - mirror://gentoo/${PN}-${MAN_VER}-manpages.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="jbig jpeg jpeg2k png rle svga tiff X xml zlib" - -RDEPEND="jpeg? ( virtual/jpeg ) - jpeg2k? ( media-libs/jasper ) - tiff? ( >=media-libs/tiff-3.5.5 ) - png? ( >=media-libs/libpng-1.4 ) - xml? ( dev-libs/libxml2 ) - zlib? ( sys-libs/zlib ) - svga? ( media-libs/svgalib ) - jbig? ( media-libs/jbigkit ) - rle? ( media-libs/urt ) - X? ( x11-libs/libX11 )" -DEPEND="${RDEPEND} - sys-devel/flex - app-arch/xz-utils" - -maint_pkg_create() { - local base="/usr/local/src" - local srcdir="${base}/netpbm/release_number" - if [[ -d ${srcdir} ]] ; then - cd "${T}" || die - - ebegin "Exporting ${srcdir}/${PV} to netpbm-${PV}" - svn export -q ${srcdir}/${PV} netpbm-${PV} - eend $? || return 1 - - ebegin "Creating netpbm-${PV}.tar.lzma" - tar cf - netpbm-${PV} | lzma > netpbm-${PV}.tar.lzma - eend $? - - einfo "Tarball now ready at: ${T}/netpbm-${PV}.tar.lzma" - else - einfo "You need to run:" - einfo " cd ${base}" - einfo " svn co https://netpbm.svn.sourceforge.net/svnroot/netpbm" - die "need svn checkout dir" - fi -} -pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} && ! -e ${DISTDIR}/${P}.tar.lzma ]] && maint_pkg_create ; } - -netpbm_libtype() { - case ${CHOST} in - *-darwin*) echo dylib;; - *) echo unixshared;; - esac -} -netpbm_libsuffix() { - local suffix=$(get_libname) - echo ${suffix//\.} -} -netpbm_ldshlib() { - case ${CHOST} in - *-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';; - *) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';; - esac -} -netpbm_config() { - if use $1 ; then - [[ $2 != "!" ]] && echo -l${2:-$1} - else - echo NONE - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/netpbm-10.31-build.patch - epatch "${FILESDIR}"/netpbm-10.48.00-pnmtopng-zlib.patch #291987 - epatch "${FILESDIR}"/${P}-sigpower.patch #310179 - - # avoid ugly depend.mk warnings - touch $(find . -name Makefile | sed s:Makefile:depend.mk:g) - - cat config.mk.in - >> config.mk <<-EOF - # Misc crap - BUILD_FIASCO = N - SYMLINK = ln -sf - - # Toolchain options - CC = $(tc-getCC) -Wall - LD = \$(CC) - CC_FOR_BUILD = $(tc-getBUILD_CC) - LD_FOR_BUILD = \$(CC_FOR_BUILD) - AR = $(tc-getAR) - RANLIB = $(tc-getRANLIB) - - STRIPFLAG = - CFLAGS_SHLIB = -fPIC - - LDRELOC = \$(LD) -r - LDSHLIB = $(netpbm_ldshlib) - LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to - LINKERISCOMPILER = Y - NETPBMLIBSUFFIX = $(netpbm_libsuffix) - NETPBMLIBTYPE = $(netpbm_libtype) - - # Gentoo build options - TIFFLIB = $(netpbm_config tiff) - JPEGLIB = $(netpbm_config jpeg) - PNGLIB = $(netpbm_config png) - ZLIB = $(netpbm_config zlib z) - LINUXSVGALIB = $(netpbm_config svga vga) - XML2_LIBS = $(netpbm_config xml xml2) - JBIGLIB = -ljbig - JBIGHDR_DIR = $(netpbm_config jbig "!") - JASPERLIB = -ljasper - JASPERHDR_DIR = $(netpbm_config jpeg2k "!") - URTLIB = $(netpbm_config rle) - URTHDR_DIR = - X11LIB = $(netpbm_config X X11) - X11HDR_DIR = - EOF - # cannot chain the die with the heredoc above as bash-3 - # has a parser bug in that setup #282902 - [ $? -eq 0 ] || die "writing config.mk failed" -} - -src_compile() { - emake -j1 || die -} - -src_install() { - emake -j1 package pkgdir="${D}"/usr || die "make package failed" - - [[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir) - - # Remove cruft that we don't need, and move around stuff we want - rm -f "${D}"/usr/bin/{doc.url,manweb} || die - rm -r "${D}"/usr/man/web || die - rm -r "${D}"/usr/link || die - rm -f "${D}"/usr/{README,VERSION,config_template,pkginfo} || die - dodir /usr/share - mv "${D}"/usr/man "${D}"/usr/share/ || die - mv "${D}"/usr/misc "${D}"/usr/share/netpbm || die - - dodoc README - cd doc - GLOBIGNORE='*.html:.*' dodoc * - dohtml -r . - - cd "${WORKDIR}"/${PN}-${MAN_VER}-manpages || die - doman *.[0-9] - dodoc README* gen-netpbm-manpages -} diff --git a/media-libs/netpbm/netpbm-10.51.00-r1.ebuild b/media-libs/netpbm/netpbm-10.51.00-r1.ebuild deleted file mode 100644 index d95d4fdb442e..000000000000 --- a/media-libs/netpbm/netpbm-10.51.00-r1.ebuild +++ /dev/null @@ -1,175 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.51.00-r1.ebuild,v 1.9 2011/10/11 19:44:48 ssuominen Exp $ - -EAPI="3" - -inherit toolchain-funcs eutils multilib - -DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats" -HOMEPAGE="http://netpbm.sourceforge.net/" -SRC_URI="mirror://gentoo/${P}.tar.xz - mirror://gentoo/${P}-libpng-1.5.patch.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd" -IUSE="jbig jpeg jpeg2k png rle svga tiff X xml zlib" - -RDEPEND="jpeg? ( virtual/jpeg ) - jpeg2k? ( media-libs/jasper ) - tiff? ( >=media-libs/tiff-3.5.5 ) - png? ( >=media-libs/libpng-1.4 ) - xml? ( dev-libs/libxml2 ) - zlib? ( sys-libs/zlib ) - svga? ( media-libs/svgalib ) - jbig? ( media-libs/jbigkit ) - rle? ( media-libs/urt ) - X? ( x11-libs/libX11 )" -DEPEND="${RDEPEND} - sys-devel/flex - app-arch/xz-utils" - -maint_pkg_create() { - local base="/usr/local/src" - local srcdir="${base}/netpbm/release_number" - if [[ -d ${srcdir} ]] ; then - cd "${T}" || die - - ebegin "Exporting ${srcdir}/${PV} to netpbm-${PV}" - svn export -q ${srcdir}/${PV} netpbm-${PV} - eend $? || return 1 - - ebegin "Creating netpbm-${PV}.tar.xz" - tar cf - netpbm-${PV} | xz > netpbm-${PV}.tar.xz - eend $? - - einfo "Tarball now ready at: ${T}/netpbm-${PV}.tar.xz" - else - einfo "You need to run:" - einfo " cd ${base}" - einfo " svn co https://netpbm.svn.sourceforge.net/svnroot/netpbm" - die "need svn checkout dir" - fi -} -pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} && ! -e ${DISTDIR}/${P}.tar.xz ]] && maint_pkg_create ; } - -netpbm_libtype() { - case ${CHOST} in - *-darwin*) echo dylib;; - *) echo unixshared;; - esac -} -netpbm_libsuffix() { - local suffix=$(get_libname) - echo ${suffix//\.} -} -netpbm_ldshlib() { - case ${CHOST} in - *-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';; - *) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';; - esac -} -netpbm_config() { - if use $1 ; then - [[ $2 != "!" ]] && echo -l${2:-$1} - else - echo NONE - fi -} - -src_prepare() { - epatch "${FILESDIR}"/netpbm-10.31-build.patch - epatch "${FILESDIR}"/${P}-ppmtompeg-free.patch - epatch "${FILESDIR}"/${P}-pnmconvol-nooffset.patch #338230 - epatch "${WORKDIR}"/${P}-libpng-1.5.patch #355025 - - # make sure we use system urt - sed -i '/SUPPORT_SUBDIRS/s:urt::' GNUmakefile || die - rm -rf urt - - # take care of the importinc stuff ourselves by only doing it once - # at the top level and having all subdirs use that one set #149843 - sed -i \ - -e '/^importinc:/s|^|importinc:\nmanual_|' \ - -e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\ - common.mk || die - sed -i \ - -e '/%.c/s: importinc$::' \ - common.mk lib/Makefile lib/util/Makefile || die - - # avoid ugly depend.mk warnings - touch $(find . -name Makefile | sed s:Makefile:depend.mk:g) -} - -src_configure() { - cat config.mk.in - >> config.mk <<-EOF - # Misc crap - BUILD_FIASCO = N - SYMLINK = ln -sf - - # Toolchain options - CC = $(tc-getCC) -Wall - LD = \$(CC) - CC_FOR_BUILD = $(tc-getBUILD_CC) - LD_FOR_BUILD = \$(CC_FOR_BUILD) - AR = $(tc-getAR) - RANLIB = $(tc-getRANLIB) - - STRIPFLAG = - CFLAGS_SHLIB = -fPIC - - LDRELOC = \$(LD) -r - LDSHLIB = $(netpbm_ldshlib) - LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to - LINKERISCOMPILER = Y - NETPBMLIBSUFFIX = $(netpbm_libsuffix) - NETPBMLIBTYPE = $(netpbm_libtype) - - # Gentoo build options - TIFFLIB = $(netpbm_config tiff) - JPEGLIB = $(netpbm_config jpeg) - PNGLIB = $(netpbm_config png) - ZLIB = $(netpbm_config zlib z) - LINUXSVGALIB = $(netpbm_config svga vga) - XML2_LIBS = $(netpbm_config xml xml2) - JBIGLIB = -ljbig - JBIGHDR_DIR = $(netpbm_config jbig "!") - JASPERLIB = -ljasper - JASPERHDR_DIR = $(netpbm_config jpeg2k "!") - URTLIB = $(netpbm_config rle) - URTHDR_DIR = - X11LIB = $(netpbm_config X X11) - X11HDR_DIR = - EOF - # cannot chain the die with the heredoc above as bash-3 - # has a parser bug in that setup #282902 - [ $? -eq 0 ] || die "writing config.mk failed" -} - -src_compile() { - emake -j1 pm_config.h version.h manual_importinc || die #149843 - emake || die -} - -src_install() { - # Subdir make targets like to use `mkdir` all over the place - # without any actual dependencies, thus the -j1. - emake -j1 package pkgdir="${D}"/usr || die - - [[ $(get_libdir) != "lib" ]] && mv "${D}"/usr/lib "${D}"/usr/$(get_libdir) - - # Remove cruft that we don't need, and move around stuff we want - rm "${D}"/usr/bin/{doc.url,manweb} || die - rm -r "${D}"/usr/man/web || die - rm -r "${D}"/usr/link || die - rm "${D}"/usr/{README,VERSION,config_template,pkginfo} || die - dodir /usr/share - mv "${D}"/usr/man "${D}"/usr/share/ || die - mv "${D}"/usr/misc "${D}"/usr/share/netpbm || die - - dodoc README - cd doc - dodoc HISTORY Netpbm.programming USERDOC - dohtml -r . -} |