[34593] trunk/dports/math/ploticus
jmr at macports.org
jmr at macports.org
Thu Feb 28 16:26:31 PST 2008
Revision: 34593
http://trac.macosforge.org/projects/macports/changeset/34593
Author: jmr at macports.org
Date: 2008-02-28 16:26:31 -0800 (Thu, 28 Feb 2008)
Log Message:
-----------
ploticus: update to version 2.40. Closes #13386.
Modified Paths:
--------------
trunk/dports/math/ploticus/Portfile
Added Paths:
-----------
trunk/dports/math/ploticus/files/patch-src-Makefile.diff
Removed Paths:
-------------
trunk/dports/math/ploticus/files/patch-src__Makefile
trunk/dports/math/ploticus/files/patch-src__gd16.c
Modified: trunk/dports/math/ploticus/Portfile
===================================================================
--- trunk/dports/math/ploticus/Portfile 2008-02-28 23:20:42 UTC (rev 34592)
+++ trunk/dports/math/ploticus/Portfile 2008-02-29 00:26:31 UTC (rev 34593)
@@ -1,8 +1,11 @@
# $Id$
PortSystem 1.0
+
name ploticus
-version 2.31
+set major_version 2
+set minor_version 40
+version ${major_version}.${minor_version}
categories math
maintainers nomaintainer
description plot generation program
@@ -17,14 +20,16 @@
homepage http://ploticus.sourceforge.net/
platforms darwin
-master_sites http://ploticus.sourceforge.net/download/
-distname pl231src
-checksums md5 70712f7f41484db3bfd9210ae7742762
+master_sites sourceforge:${name}
+distname pl${major_version}${minor_version}src
+checksums md5 560bf4ede9d7a132261ba36574434962 \
+ sha1 824860a41a46ad15cc8c6cb37fa6f59176f4e01e \
+ rmd160 4e36b4cff635042213a4693a44fb03298782edfc
-depends_lib lib:libX11:XFree86 lib:XXX:libpng lib:XXX:zlib
+depends_lib lib:libX11:XFree86 port:libpng port:zlib \
+ port:gd2 port:jpeg port:freetype
-patchfiles patch-src__Makefile \
- patch-src__gd16.c
+patchfiles patch-src-Makefile.diff
post-patch {
reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/src/Makefile
@@ -34,3 +39,8 @@
build.dir ${worksrcpath}/src
build.target
+
+post-destroot {
+ xinstall -d ${destroot}${prefix}/share/man/man1
+ xinstall -m 444 man/man1/pl.1 ${destroot}${prefix}/share/man/man1/ploticus.1
+}
Copied: trunk/dports/math/ploticus/files/patch-src-Makefile.diff (from rev 34581, trunk/dports/math/ploticus/files/patch-src__Makefile)
===================================================================
--- trunk/dports/math/ploticus/files/patch-src-Makefile.diff (rev 0)
+++ trunk/dports/math/ploticus/files/patch-src-Makefile.diff 2008-02-29 00:26:31 UTC (rev 34593)
@@ -0,0 +1,72 @@
+--- src/Makefile.orig 2008-01-16 07:05:14.000000000 +1100
++++ src/Makefile 2008-02-29 11:11:54.000000000 +1100
+@@ -35,8 +35,8 @@
+
+ ############ ...AND... activate the lines below for your platform... (X11 libs & header files)
+ #### linux
+-XLIBS = -L/usr/X11R6/lib -lX11
+-XINCLUDEDIR = -I/usr/X11R6/include
++# XLIBS = -L/usr/X11R6/lib -lX11
++# XINCLUDEDIR = -I/usr/X11R6/include
+ #### alt linux
+ # XLIBS = -lX11
+ # XINCLUDEDIR = -I/usr/include/X11
+@@ -47,8 +47,8 @@
+ # XINCLUDEDIR = -I/usr/openwin/include
+ #### mac osx
+ # CC = cc
+-# XLIBS = -L/usr/X11R6/lib -lX11
+-# XINCLUDEDIR = -I/usr/X11R6/include
++XLIBS = -L/usr/X11R6/lib -lX11
++XINCLUDEDIR = -I/usr/X11R6/include
+ #### cygwin
+ # XLIBS = -L/usr/X11R6/lib -lX11
+ # XINCLUDEDIR = -I/usr/X11R6/include
+@@ -92,10 +92,10 @@
+ # exetarget: pl
+
+ ########### Option 2: use bundled GD16 (PNG only). Requires libpng and zlib.
+-exetarget: plpng
+-GD16LIBS = -lpng -lz
+-GD16H =
+-ZFLAG = -DWZ
++# exetarget: plpng
++# GD16LIBS = -lpng -lz
++# GD16H =
++# ZFLAG = -DWZ
+
+ ########### Option 3: use your own GD resource. Requires GD 1.84+, libpng, zlib, libjpeg
+ # exetarget: plgd18
+@@ -106,11 +106,11 @@
+
+ ########### Option 4: use your own GD resource with FreeType2 fonts enabled.
+ ########### Requires GD 1.84+, libpng, zlib, libjpeg and libfreetype
+-# exetarget: plgd18
+-# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype
+-# GD18H =
+-# GDFREETYPE = -DGDFREETYPE
+-# ZFLAG = -DWZ
++exetarget: plgd18
++GD18LIBS = -L__PREFIX__/lib -lgd -lpng -lz -ljpeg -lfreetype
++GD18H = -I__PREFIX__/include
++GDFREETYPE = -DGDFREETYPE
++ZFLAG = -DWZ
+
+ ########### Option 5: don't use GD at all.
+ # exetarget: plnogd
+@@ -131,12 +131,12 @@
+
+
+ #### If you do a "make install", where do you want the executable(s) to be moved to?
+-INSTALLBIN = /usr/local/bin
++INSTALLBIN = $(DESTDIR)__PREFIX__/bin
+
+
+ #### For LOCALE support (non-roman alphabets & collation), uncomment the following..
+-# LOCALEOBJ = localef.o
+-# LOCALE_FLAG = -DLOCALE
++LOCALEOBJ = localef.o
++LOCALE_FLAG = -DLOCALE
+
+ #### SVG output is always available by default.
+ #### If you want compressed SVG (.svgz), and you selected GD13 or no GD above,
Deleted: trunk/dports/math/ploticus/files/patch-src__Makefile
===================================================================
--- trunk/dports/math/ploticus/files/patch-src__Makefile 2008-02-28 23:20:42 UTC (rev 34592)
+++ trunk/dports/math/ploticus/files/patch-src__Makefile 2008-02-29 00:26:31 UTC (rev 34593)
@@ -1,22 +0,0 @@
---- src/Makefile.orig 2005-05-31 14:59:41.000000000 -0400
-+++ src/Makefile 2005-05-31 15:00:27.000000000 -0400
-@@ -125,8 +126,8 @@
- #### png.h or other header files are in a nonstandard place, eg GD16H = -I/home/scg/lib
- ploticus: plpng
- PLPNG = pl
--GD16LIBS = -lpng -lz
--GD16H =
-+GD16LIBS = -L__PREFIX__/lib -lpng -lz
-+GD16H = -I__PREFIX__/include
- ZFLAG = -DWZ
-
-
-@@ -190,7 +190,7 @@
-
-
- #### If you plan to do a "make install", where do you want the executable(s) to be moved to?
--BIN = /usr/local/bin
-+BIN = $(DESTDIR)__PREFIX__/bin
-
-
- #### To set a hard-coded directory for prefabs files, uncomment & edit the following..
Deleted: trunk/dports/math/ploticus/files/patch-src__gd16.c
===================================================================
--- trunk/dports/math/ploticus/files/patch-src__gd16.c 2008-02-28 23:20:42 UTC (rev 34592)
+++ trunk/dports/math/ploticus/files/patch-src__gd16.c 2008-02-29 00:26:31 UTC (rev 34593)
@@ -1,20 +0,0 @@
---- src/gd16.c.orig 2005-05-31 14:57:23.000000000 -0400
-+++ src/gd16.c 2005-05-31 14:57:29.000000000 -0400
-@@ -1477,7 +1477,7 @@
- return cmpStatus;
- }
-
--int cost[] = {
-+static int cost[] = {
- 1024,
- 1023,
- 1023,
-@@ -1840,7 +1840,7 @@
- 1023
- };
-
--int sint[] = {
-+static int sint[] = {
- 0,
- 17,
- 35,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080228/42c6f4df/attachment.html
More information about the macports-changes
mailing list