summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-09-28 00:56:02 +0000
committerMike Frysinger <vapier@gentoo.org>2007-09-28 00:56:02 +0000
commit6ae2c9d6008d86a4b520b42cc25f11b94ba77512 (patch)
tree77f96dc8842556db0fd8caddeae118f4e2befa59 /media-libs/netpbm
parentStable on mips, per #194012. (diff)
downloadhistorical-6ae2c9d6008d86a4b520b42cc25f11b94ba77512.tar.gz
historical-6ae2c9d6008d86a4b520b42cc25f11b94ba77512.tar.bz2
historical-6ae2c9d6008d86a4b520b42cc25f11b94ba77512.zip
old
Diffstat (limited to 'media-libs/netpbm')
-rw-r--r--media-libs/netpbm/files/digest-netpbm-10.26.426
-rw-r--r--media-libs/netpbm/files/digest-netpbm-10.26.436
-rw-r--r--media-libs/netpbm/files/digest-netpbm-10.36.06
-rw-r--r--media-libs/netpbm/files/netpbm-10.33-memmem.patch24
-rw-r--r--media-libs/netpbm/files/netpbm-10.34-ppmtompeg.patch23
-rw-r--r--media-libs/netpbm/files/netpbm-10.34-rgb-paths.patch17
-rw-r--r--media-libs/netpbm/files/netpbm-10.34-xml2.patch47
-rw-r--r--media-libs/netpbm/netpbm-10.26.42.ebuild113
-rw-r--r--media-libs/netpbm/netpbm-10.26.43.ebuild113
-rw-r--r--media-libs/netpbm/netpbm-10.36.0.ebuild124
10 files changed, 0 insertions, 479 deletions
diff --git a/media-libs/netpbm/files/digest-netpbm-10.26.42 b/media-libs/netpbm/files/digest-netpbm-10.26.42
deleted file mode 100644
index f257cbf03c02..000000000000
--- a/media-libs/netpbm/files/digest-netpbm-10.26.42
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 d8eefe1e7cc7f02d7f0d41a51432f8f2 netpbm-10.26.42.tgz 2550998
-RMD160 25f7d38e21aaf3ac5567701f19f71e5095f539fa netpbm-10.26.42.tgz 2550998
-SHA256 fd5a0d6f06104301bf3fc042b9a80904d37d87ba9ec4ca814a367b3d5edbb963 netpbm-10.26.42.tgz 2550998
-MD5 2d90a47369f74692aa24b773dfd6a122 netpbm-10.30-manpages.tar.bz2 233254
-RMD160 6312e1486f473f57332a5dc050a03ac1dfce7f47 netpbm-10.30-manpages.tar.bz2 233254
-SHA256 75eb6ceaebafffb6a2d608d49f2b61c5049e5795976bbfb2d55608de1f858124 netpbm-10.30-manpages.tar.bz2 233254
diff --git a/media-libs/netpbm/files/digest-netpbm-10.26.43 b/media-libs/netpbm/files/digest-netpbm-10.26.43
deleted file mode 100644
index 1107c1d1028f..000000000000
--- a/media-libs/netpbm/files/digest-netpbm-10.26.43
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 3897ec14dbf586bb1d810a7ff9993968 netpbm-10.26.43.tgz 2542700
-RMD160 5e98fda30e969d4c6a9bd9e1caf97c62251fc592 netpbm-10.26.43.tgz 2542700
-SHA256 5f51c306f4afb2119b2ce060a5cdabe612b444f8b64e684cdae40b1e3e7e9a73 netpbm-10.26.43.tgz 2542700
-MD5 2d90a47369f74692aa24b773dfd6a122 netpbm-10.30-manpages.tar.bz2 233254
-RMD160 6312e1486f473f57332a5dc050a03ac1dfce7f47 netpbm-10.30-manpages.tar.bz2 233254
-SHA256 75eb6ceaebafffb6a2d608d49f2b61c5049e5795976bbfb2d55608de1f858124 netpbm-10.30-manpages.tar.bz2 233254
diff --git a/media-libs/netpbm/files/digest-netpbm-10.36.0 b/media-libs/netpbm/files/digest-netpbm-10.36.0
deleted file mode 100644
index c10d6b4c1e20..000000000000
--- a/media-libs/netpbm/files/digest-netpbm-10.36.0
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 61a2d777a3eb0ce803bf021c7b99076f netpbm-10.33-manpages.tar.bz2 236722
-RMD160 5e43836a5f4d16f1ba5ece21e9996dbe60b252ae netpbm-10.33-manpages.tar.bz2 236722
-SHA256 aa18adee4a187ad5df243cb1a7c51097dc6a7d6a8072cf6da09972b74ac5454a netpbm-10.33-manpages.tar.bz2 236722
-MD5 9d7d4cbd23f7078f4a36bbe8cb17d7f2 netpbm-10.36.0.tar.bz2 2092304
-RMD160 c459c167aa6829ccb44d3acee7b6d8a3250c26fc netpbm-10.36.0.tar.bz2 2092304
-SHA256 90bbf3cab6b4e2428bcb1d0be39d238c88706dd0ba219eec6f30019d09f05013 netpbm-10.36.0.tar.bz2 2092304
diff --git a/media-libs/netpbm/files/netpbm-10.33-memmem.patch b/media-libs/netpbm/files/netpbm-10.33-memmem.patch
deleted file mode 100644
index 5db039588f96..000000000000
--- a/media-libs/netpbm/files/netpbm-10.33-memmem.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Index: netpbm-10.33/converter/other/cameratopam/identify.c
-===================================================================
---- netpbm-10.33.orig/converter/other/cameratopam/identify.c
-+++ netpbm-10.33/converter/other/cameratopam/identify.c
-@@ -23,9 +23,8 @@
-
- static loadRawFn load_raw;
-
--
- /* This does the same as the function of the same name in the GNU C library */
--static const char *memmem (const char *haystack, size_t haystacklen,
-+static const char *memmem_internal (const char *haystack, size_t haystacklen,
- const char *needle, size_t needlelen)
- {
- const char *c;
-@@ -316,7 +315,7 @@ identify(FILE * const ifp,
- fread (head, 1, 32, ifp);
- fseek (ifp, 0, SEEK_END);
- fsize = ftell(ifp);
-- if ((c = (char*)memmem (head, 32, "MMMMRawT", 8))) {
-+ if ((c = (char*)memmem_internal(head, 32, "MMMMRawT", 8))) {
- strcpy (make, "Phase One");
- data_offset = c - head;
- fseek (ifp, data_offset + 8, SEEK_SET);
diff --git a/media-libs/netpbm/files/netpbm-10.34-ppmtompeg.patch b/media-libs/netpbm/files/netpbm-10.34-ppmtompeg.patch
deleted file mode 100644
index 6aa51bb6f764..000000000000
--- a/media-libs/netpbm/files/netpbm-10.34-ppmtompeg.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-http://bugs.gentoo.org/150063
-
---- converter/ppm/ppmtompeg/mpeg.c
-+++ converter/ppm/ppmtompeg/mpeg.c
-@@ -1150,7 +1150,7 @@ GenMPEGStream(struct inputSource * const
- if (showBitRatePerFrame)
- OpenBitRateFile(); /* May modify showBitRatePerFrame */
-
-- if (context == CONTEXT_WHOLESTREAM)
-+ if (context == CONTEXT_WHOLESTREAM || context == CONTEXT_GOP)
- bbP = Bitio_New(ofP);
- else
- bbP = NULL;
---- converter/ppm/ppmtompeg/combine.c
-+++ converter/ppm/ppmtompeg/combine.c
-@@ -110,7 +110,6 @@ appendSpecifiedGopFiles(struct inputSour
- nAttempts < READ_ATTEMPTS && !ifP;
- ++nAttempts) {
-
-- FILE * ifP;
- ifP = fopen(fileName, "rb");
- if (ifP == NULL) {
- pm_message("ERROR: Couldn't read file '%s'. retry %u",
diff --git a/media-libs/netpbm/files/netpbm-10.34-rgb-paths.patch b/media-libs/netpbm/files/netpbm-10.34-rgb-paths.patch
deleted file mode 100644
index efa15a4ee4a7..000000000000
--- a/media-libs/netpbm/files/netpbm-10.34-rgb-paths.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-use paths for rgb that make more sense in Linux
-
-http://bugs.gentoo.org/139423
-
---- netpbm-10.34/pm_config.in.h
-+++ netpbm-10.34/pm_config.in.h
-@@ -67,8 +67,8 @@
- #define RGB_DB2 "PBMplus_Dir:RGB.TXT"
- #define RGB_DB3 "PBMplus_Dir:RGB.TXT"
- #else
--#define RGB_DB1 "/usr/lib/X11/rgb.txt"
-+#define RGB_DB1 "/usr/share/X11/rgb.txt"
--#define RGB_DB2 "/usr/openwin/lib/rgb.txt"
-+#define RGB_DB2 "/usr/lib/X11/rgb.txt"
- #define RGB_DB3 "/usr/X11R6/lib/X11/rgb.txt"
- #endif
-
diff --git a/media-libs/netpbm/files/netpbm-10.34-xml2.patch b/media-libs/netpbm/files/netpbm-10.34-xml2.patch
deleted file mode 100644
index db9efef3a5e1..000000000000
--- a/media-libs/netpbm/files/netpbm-10.34-xml2.patch
+++ /dev/null
@@ -1,47 +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
-@@ -101,7 +93,7 @@
- BINARIES += pnmtops
- endif
-
--ifneq ($(XML2LIBS),NONE)
-+ifneq ($(XML2_LIBS),NONE)
- BINARIES += svgtopam
- endif
-
---- 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/netpbm-10.26.42.ebuild b/media-libs/netpbm/netpbm-10.26.42.ebuild
deleted file mode 100644
index 8f2a58a1e05f..000000000000
--- a/media-libs/netpbm/netpbm-10.26.42.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.26.42.ebuild,v 1.1 2007/03/29 22:25:43 vapier Exp $
-
-inherit flag-o-matic toolchain-funcs eutils multilib
-
-MAN_VER=10.30
-DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
-HOMEPAGE="http://netpbm.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tgz
- mirror://gentoo/${PN}-${MAN_VER}-manpages.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 mips s390 sh sparc x86"
-IUSE="svga jpeg tiff png zlib"
-
-DEPEND="jpeg? ( >=media-libs/jpeg-6b )
- tiff? ( >=media-libs/tiff-3.5.5 )
- png? ( >=media-libs/libpng-1.2.1 )
- zlib? ( sys-libs/zlib )
- svga? ( media-libs/svgalib )
- media-libs/jbigkit
- media-libs/jasper
- media-libs/urt"
-
-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 '-dynamiclib -install_name $(SONAME)';;
- *) echo '-shared -Wl,-soname,$(SONAME)';;
- esac
-}
-netpbm_config() {
- use $1 && echo -l${2:-$1} || echo NONE
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/netpbm-10.30-build.patch
- epatch "${FILESDIR}"/netpbm-10.26.37-headers.patch
-
- rm -f configure
- cp Makefile.config.in Makefile.config
- cat >> Makefile.config <<-EOF
- # Gentoo toolchain options
- CC = $(tc-getCC)
- CC_FOR_BUILD = $(tc-getBUILD_CC)
- AR = $(tc-getAR)
- RANLIB = $(tc-getRANLIB)
- STRIPFLAG =
- CFLAGS_SHLIB = -fPIC
-
- NETPBMLIBTYPE = $(netpbm_libtype)
- NETPBMLIBSUFFIX = $(netpbm_libsuffix)
- LDSHLIB = $(netpbm_ldshlib)
-
- # 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)
-
- # Use system versions instead of bundled
- JBIGLIB = -ljbig
- JBIGHDR_DIR =
- JASPERLIB = -ljasper
- JASPERHDR_DIR =
- URTLIB = -lrle
- URTHDR_DIR =
- EOF
-
- # Sparc support ...
- replace-flags -mcpu=ultrasparc "-mcpu=v8 -mtune=ultrasparc"
- replace-flags -mcpu=v9 "-mcpu=v8 -mtune=v9"
-}
-
-src_install() {
- make 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 "${D}"/usr/include/shhopt.h
- rm -f "${D}"/usr/bin/{doc.url,manweb}
- rm -rf "${D}"/usr/man/web
- rm -rf "${D}"/usr/link
- rm -f "${D}"/usr/{README,VERSION,config_template,pkginfo}
- dodir /usr/share
- mv "${D}"/usr/man "${D}"/usr/share/
- mv "${D}"/usr/misc "${D}"/usr/share/netpbm
-
- 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.26.43.ebuild b/media-libs/netpbm/netpbm-10.26.43.ebuild
deleted file mode 100644
index 429498db7985..000000000000
--- a/media-libs/netpbm/netpbm-10.26.43.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.26.43.ebuild,v 1.1 2007/06/26 04:24:44 vapier Exp $
-
-inherit flag-o-matic toolchain-funcs eutils multilib
-
-MAN_VER=10.30
-DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
-HOMEPAGE="http://netpbm.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tgz
- mirror://gentoo/${PN}-${MAN_VER}-manpages.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 mips s390 sh sparc x86"
-IUSE="svga jpeg tiff png zlib"
-
-DEPEND="jpeg? ( >=media-libs/jpeg-6b )
- tiff? ( >=media-libs/tiff-3.5.5 )
- png? ( >=media-libs/libpng-1.2.1 )
- zlib? ( sys-libs/zlib )
- svga? ( media-libs/svgalib )
- media-libs/jbigkit
- media-libs/jasper
- media-libs/urt"
-
-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 '-dynamiclib -install_name $(SONAME)';;
- *) echo '-shared -Wl,-soname,$(SONAME)';;
- esac
-}
-netpbm_config() {
- use $1 && echo -l${2:-$1} || echo NONE
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/netpbm-10.30-build.patch
- epatch "${FILESDIR}"/netpbm-10.26.37-headers.patch
-
- rm -f configure
- cp Makefile.config.in Makefile.config
- cat >> Makefile.config <<-EOF
- # Gentoo toolchain options
- CC = $(tc-getCC)
- CC_FOR_BUILD = $(tc-getBUILD_CC)
- AR = $(tc-getAR)
- RANLIB = $(tc-getRANLIB)
- STRIPFLAG =
- CFLAGS_SHLIB = -fPIC
-
- NETPBMLIBTYPE = $(netpbm_libtype)
- NETPBMLIBSUFFIX = $(netpbm_libsuffix)
- LDSHLIB = $(netpbm_ldshlib)
-
- # 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)
-
- # Use system versions instead of bundled
- JBIGLIB = -ljbig
- JBIGHDR_DIR =
- JASPERLIB = -ljasper
- JASPERHDR_DIR =
- URTLIB = -lrle
- URTHDR_DIR =
- EOF
-
- # Sparc support ...
- replace-flags -mcpu=ultrasparc "-mcpu=v8 -mtune=ultrasparc"
- replace-flags -mcpu=v9 "-mcpu=v8 -mtune=v9"
-}
-
-src_install() {
- make 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 "${D}"/usr/include/shhopt.h
- rm -f "${D}"/usr/bin/{doc.url,manweb}
- rm -rf "${D}"/usr/man/web
- rm -rf "${D}"/usr/link
- rm -f "${D}"/usr/{README,VERSION,config_template,pkginfo}
- dodir /usr/share
- mv "${D}"/usr/man "${D}"/usr/share/
- mv "${D}"/usr/misc "${D}"/usr/share/netpbm
-
- 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.36.0.ebuild b/media-libs/netpbm/netpbm-10.36.0.ebuild
deleted file mode 100644
index a1e1fd8cc7dc..000000000000
--- a/media-libs/netpbm/netpbm-10.36.0.ebuild
+++ /dev/null
@@ -1,124 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/netpbm/netpbm-10.36.0.ebuild,v 1.13 2007/01/21 19:25:22 flameeyes Exp $
-
-inherit flag-o-matic 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.bz2
- 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 xml zlib"
-
-DEPEND="jpeg? ( >=media-libs/jpeg-6b )
- jpeg2k? ( media-libs/jasper )
- tiff? ( >=media-libs/tiff-3.5.5 )
- png? ( >=media-libs/libpng-1.2.1 )
- xml? ( dev-libs/libxml2 )
- zlib? ( sys-libs/zlib )
- svga? ( media-libs/svgalib )
- jbig? ( media-libs/jbigkit )
- rle? ( media-libs/urt )"
-
-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.35.0-xml2.patch #137871
- epatch "${FILESDIR}"/netpbm-10.34-ppmtompeg.patch #150063
-
- rm -f configure
- cp Makefile.config.in Makefile.config
- cat >> Makefile.config <<-EOF
- # Gentoo toolchain options
- CC = $(tc-getCC) -Wall
- CC_FOR_BUILD = $(tc-getBUILD_CC)
- AR = $(tc-getAR)
- RANLIB = $(tc-getRANLIB)
- STRIPFLAG =
- CFLAGS_SHLIB = -fPIC
-
- # workaround parallel build issues
- SYMLINK = ln -sf
-
- NETPBMLIBTYPE = $(netpbm_libtype)
- NETPBMLIBSUFFIX = $(netpbm_libsuffix)
- LDSHLIB = $(netpbm_ldshlib)
-
- # 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 =
- EOF
-}
-
-src_compile() {
- replace-flags -mcpu=ultrasparc "-mcpu=v8 -mtune=ultrasparc"
- replace-flags -mcpu=v9 "-mcpu=v8 -mtune=v9"
-
- emake -j1 || die
-}
-
-src_install() {
- make 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 "${D}"/usr/include/shhopt.h
- rm -f "${D}"/usr/bin/{doc.url,manweb}
- rm -rf "${D}"/usr/man/web
- rm -rf "${D}"/usr/link
- rm -f "${D}"/usr/{README,VERSION,config_template,pkginfo}
- dodir /usr/share
- mv "${D}"/usr/man "${D}"/usr/share/
- mv "${D}"/usr/misc "${D}"/usr/share/netpbm
-
- dodoc README
- cd doc
- GLOBIGNORE='*.html:.*' dodoc *
- dohtml -r .
-
- cd "${WORKDIR}"/${PN}-${MAN_VER}-manpages || die
- doman *.[0-9]
- dodoc README* gen-netpbm-manpages
-}