[48690] trunk/dports/graphics/netpbm
blb at macports.org
blb at macports.org
Fri Mar 27 00:30:33 PDT 2009
Revision: 48690
http://trac.macports.org/changeset/48690
Author: blb at macports.org
Date: 2009-03-27 00:30:31 -0700 (Fri, 27 Mar 2009)
Log Message:
-----------
graphics/netpbm - use better paths for rgb.txt; should fix ticket #14700
Modified Paths:
--------------
trunk/dports/graphics/netpbm/Portfile
Added Paths:
-----------
trunk/dports/graphics/netpbm/files/patch-pm_config.in.h.diff
Modified: trunk/dports/graphics/netpbm/Portfile
===================================================================
--- trunk/dports/graphics/netpbm/Portfile 2009-03-27 06:53:41 UTC (rev 48689)
+++ trunk/dports/graphics/netpbm/Portfile 2009-03-27 07:30:31 UTC (rev 48690)
@@ -4,6 +4,7 @@
name netpbm
version 10.26.60
+revision 1
categories graphics
maintainers mas openmaintainer
description Image manipulation
@@ -33,8 +34,12 @@
sha1 722f1fda5eb5bfdb0a9a0a859c5784443527d8c7 \
rmd160 1d3015615292f9a8b92b9f73d72076d90168ad3a
-patchfiles patch-lib-Makefile.diff
+patchfiles patch-lib-Makefile.diff patch-pm_config.in.h.diff
+post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/pm_config.in.h
+}
+
use_configure no
configure.cflags-delete -O2
configure.cflags-append -O3
Added: trunk/dports/graphics/netpbm/files/patch-pm_config.in.h.diff
===================================================================
--- trunk/dports/graphics/netpbm/files/patch-pm_config.in.h.diff (rev 0)
+++ trunk/dports/graphics/netpbm/files/patch-pm_config.in.h.diff 2009-03-27 07:30:31 UTC (rev 48690)
@@ -0,0 +1,13 @@
+--- pm_config.in.h.orig 2004-08-24 15:21:46.000000000 -0600
++++ pm_config.in.h 2009-03-27 01:19:33.000000000 -0600
+@@ -99,8 +99,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_DB2 "/usr/openwin/lib/rgb.txt"
++#define RGB_DB1 "@@PREFIX@@/share/netpbm/rgb.txt"
++#define RGB_DB2 "/usr/X11/share/X11/rgb.txt"
+ #define RGB_DB3 "/usr/X11R6/lib/X11/rgb.txt"
+ #endif
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090327/41b803f5/attachment-0001.html>
More information about the macports-changes
mailing list