summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-05-25 20:13:48 +0000
committerdinoex <dinoex@FreeBSD.org>2006-05-25 20:13:48 +0000
commit42db17e1c488ddc5b0afde677bff98902d4a27cf (patch)
treecc8f4f98903636bb83de8b48cbe985d747285341 /graphics
parent8ccb05357b51a42864175cc1aa144c6a2d267f78 (diff)
downloadFreeBSD-ports-42db17e1c488ddc5b0afde677bff98902d4a27cf.zip
FreeBSD-ports-42db17e1c488ddc5b0afde677bff98902d4a27cf.tar.gz
- new option: WITH_NETPBM_DEVEL, update to 10.30
Diffstat (limited to 'graphics')
-rw-r--r--graphics/netpbm/Makefile17
-rw-r--r--graphics/netpbm/distinfo3
-rw-r--r--graphics/netpbm/files/converter-other-cameratopam-identify.patch26
-rw-r--r--graphics/netpbm/files/converter-other-pstopnm.patch (renamed from graphics/netpbm/files/patch-converter-other-pstopnm.c)0
-rw-r--r--graphics/netpbm/files/editor-pnmquant-devel.patch20
-rw-r--r--graphics/netpbm/files/editor-pnmquant-stable.patch (renamed from graphics/netpbm/files/patch-editor-pnmquant)0
-rw-r--r--graphics/netpbm/pkg-plist13
7 files changed, 79 insertions, 0 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index 9609486..6726562 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -6,11 +6,18 @@
#
PORTNAME= netpbm
+.if defined(WITH_NETPBM_DEVEL)
+PORTVERSION= 10.30
+.else
PORTVERSION= 10.26.28
+.endif
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tgz
+.if defined(WITH_NETPBM_DEVEL)
+PKGNAMESUFFIX= -devel${PKGNAMESUFFIX2}
+.endif
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A toolkit for conversion of images between different formats
@@ -42,6 +49,16 @@ CFLAGS+= -O0
.endif
.endif
+.if defined(WITH_NETPBM_DEVEL)
+EXTRA_PATCHES+= ${FILESDIR}/editor-pnmquant-devel.patch
+EXTRA_PATCHES+= ${FILESDIR}/converter-other-cameratopam-identify.patch
+PLIST_SUB+= DEVEL=""
+.else
+EXTRA_PATCHES+= ${FILESDIR}/editor-pnmquant-stable.patch
+EXTRA_PATCHES+= ${FILESDIR}/converter-other-pstopnm.patch
+PLIST_SUB+= DEVEL="@comment "
+.endif
+
pre-configure:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
s|%%LOCALBASE%%|${LOCALBASE}|g ; \
diff --git a/graphics/netpbm/distinfo b/graphics/netpbm/distinfo
index b2dbb91..f3b847f 100644
--- a/graphics/netpbm/distinfo
+++ b/graphics/netpbm/distinfo
@@ -1,3 +1,6 @@
MD5 (netpbm-10.26.28.tgz) = e5675ab49b164517f2eac679f1ff0119
SHA256 (netpbm-10.26.28.tgz) = b442a26fcd7691120b062ca8807b44a3877056577e923654a5474a389c4f87ad
SIZE (netpbm-10.26.28.tgz) = 2540748
+MD5 (netpbm-10.30.tgz) = f84620e2733fb13eebe1394948077342
+SHA256 (netpbm-10.30.tgz) = cf682d5cbe185d535c12f65067c7ce991601d16595125c502cf4f8c15a6f801c
+SIZE (netpbm-10.30.tgz) = 2370761
diff --git a/graphics/netpbm/files/converter-other-cameratopam-identify.patch b/graphics/netpbm/files/converter-other-cameratopam-identify.patch
new file mode 100644
index 0000000..283a248
--- /dev/null
+++ b/graphics/netpbm/files/converter-other-cameratopam-identify.patch
@@ -0,0 +1,26 @@
+
+
+19 Mai 06:06 2006 diff -u -l converter/other/cameratopam/identify.c.orig converter/other/cameratopam/identify.c Page 1
+
+
+--- converter/other/cameratopam/identify.c.orig Sat Aug 27 19:29:58 2005
++++ converter/other/cameratopam/identify.c Fri May 19 06:06:28 2006
+@@ -25,7 +25,7 @@
+
+
+ /* 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_old (const char *haystack, size_t haystacklen,
+ const char *needle, size_t needlelen)
+ {
+ const char *c;
+@@ -316,7 +316,7 @@
+ 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_old (head, 32, "MMMMRawT", 8))) {
+ strcpy (make, "Phase One");
+ data_offset = c - head;
+ fseek (ifp, data_offset + 8, SEEK_SET);
+
diff --git a/graphics/netpbm/files/patch-converter-other-pstopnm.c b/graphics/netpbm/files/converter-other-pstopnm.patch
index 23626cd..23626cd 100644
--- a/graphics/netpbm/files/patch-converter-other-pstopnm.c
+++ b/graphics/netpbm/files/converter-other-pstopnm.patch
diff --git a/graphics/netpbm/files/editor-pnmquant-devel.patch b/graphics/netpbm/files/editor-pnmquant-devel.patch
new file mode 100644
index 0000000..60019a4
--- /dev/null
+++ b/graphics/netpbm/files/editor-pnmquant-devel.patch
@@ -0,0 +1,20 @@
+--- editor/pnmquant.orig Sun Feb 19 22:03:42 2006
++++ editor/pnmquant Mon Feb 20 09:41:57 2006
+@@ -116,7 +118,7 @@
+ tell(INFH); # Avoids bogus "INFH is not referenced" warning
+ }
+ } else {
+- open(STDIN, "<", $infile)
++ open(STDIN, "<" . $infile)
+ or die("Unable to open input file '$infile'. Errno=$ERRNO");
+ }
+ }
+@@ -157,7 +159,7 @@
+ $spreadOpt = "-spreadbrightness";
+ }
+
+- open(STDOUT, ">", $mapfileSpec);
++ open(STDOUT, ">" . $mapfileSpec);
+
+ my $maprc = system("pnmcolormap", $ncolors, $averageOpt, $spreadOpt);
+
diff --git a/graphics/netpbm/files/patch-editor-pnmquant b/graphics/netpbm/files/editor-pnmquant-stable.patch
index f61ca96..f61ca96 100644
--- a/graphics/netpbm/files/patch-editor-pnmquant
+++ b/graphics/netpbm/files/editor-pnmquant-stable.patch
diff --git a/graphics/netpbm/pkg-plist b/graphics/netpbm/pkg-plist
index ff36e6f..087429f 100644
--- a/graphics/netpbm/pkg-plist
+++ b/graphics/netpbm/pkg-plist
@@ -6,6 +6,7 @@ bin/bioradtopgm
bin/bmptopnm
bin/bmptoppm
bin/brushtopbm
+%%DEVEL%%bin/cameratopam
bin/cmuwmtopbm
bin/ddbugtopbm
bin/escp2topbm
@@ -37,7 +38,9 @@ bin/mrftopbm
bin/mtvtoppm
bin/neotoppm
bin/palmtopnm
+%%DEVEL%%bin/pamaddnoise
bin/pamarith
+%%DEVEL%%bin/pambayer
bin/pamchannel
bin/pamcomp
bin/pamcut
@@ -53,9 +56,11 @@ bin/pamfunc
bin/pamgauss
bin/pamlookup
bin/pammasksharpen
+%%DEVEL%%bin/pammixinterlace
bin/pamoil
bin/pamperspective
bin/pampop9
+%%DEVEL%%bin/pamrgbatopng
bin/pamscale
bin/pamseq
bin/pamsharpmap
@@ -67,12 +72,15 @@ bin/pamstretch
bin/pamstretch-gen
bin/pamsumm
bin/pamsummcol
+%%DEVEL%%bin/pamtilt
bin/pamtodjvurle
+%%DEVEL%%bin/pamtofits
bin/pamtohdiff
bin/pamtohtmltbl
bin/pamtopfm
bin/pamtopnm
bin/pamtotga
+%%DEVEL%%bin/pamtotiff
bin/pamtouil
bin/pbmclean
bin/pbmlife
@@ -139,6 +147,7 @@ bin/pgmramp
bin/pgmslice
bin/pgmtexture
bin/pgmtofs
+%%DEVEL%%bin/pgmmedian
bin/pgmtolispm
bin/pgmtopbm
bin/pgmtopgm
@@ -209,9 +218,13 @@ bin/ppmchange
bin/ppmcie
bin/ppmcolormask
bin/ppmcolors
+%%DEVEL%%bin/ppmdcfont
+%%DEVEL%%bin/ppmddumpfont
bin/ppmdim
bin/ppmdist
bin/ppmdither
+%%DEVEL%%bin/ppmdmkfont
+%%DEVEL%%bin/ppmdraw
bin/ppmfade
bin/ppmflash
bin/ppmforge
OpenPOWER on IntegriCloud