[41743] trunk/dports/graphics
blb at macports.org
blb at macports.org
Sun Nov 9 18:53:53 PST 2008
Revision: 41743
http://trac.macports.org/changeset/41743
Author: blb at macports.org
Date: 2008-11-09 18:53:53 -0800 (Sun, 09 Nov 2008)
Log Message:
-----------
New port - graphics/gdchart, ticket #17161
Added Paths:
-----------
trunk/dports/graphics/gdchart/
trunk/dports/graphics/gdchart/Portfile
trunk/dports/graphics/gdchart/files/
trunk/dports/graphics/gdchart/files/patch-Makefile.diff
Added: trunk/dports/graphics/gdchart/Portfile
===================================================================
--- trunk/dports/graphics/gdchart/Portfile (rev 0)
+++ trunk/dports/graphics/gdchart/Portfile 2008-11-10 02:53:53 UTC (rev 41743)
@@ -0,0 +1,30 @@
+# $Id$
+
+PortSystem 1.0
+
+name gdchart
+version 0.11.5dev
+categories graphics
+maintainers ucla.edu:jameskyle
+description Easy to use C API, high performance library.
+long_description Create charts and graphs in PNG, GIF and WBMP format.
+homepage http://www.fred.net/brv/chart/
+platforms darwin
+master_sites http://www.fred.net/brv/chart/
+distname ${name}${version}
+
+checksums md5 a4af7bc927d8b88934da56fce10a7a3c \
+ sha1 c23e1cd233c38ac007b57420c20a5fa7fa206841 \
+ rmd160 be9b11eb446738d9e30d78e8ce73b8a418b1f520
+use_parallel_build yes
+
+depends_lib port:libpng \
+ port:zlib \
+ port:gd2 \
+ port:jpeg \
+ port:freetype
+
+use_configure no
+
+patchfiles patch-Makefile.diff
+
Property changes on: trunk/dports/graphics/gdchart/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/gdchart/files/patch-Makefile.diff
===================================================================
--- trunk/dports/graphics/gdchart/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/graphics/gdchart/files/patch-Makefile.diff 2008-11-10 02:53:53 UTC (rev 41743)
@@ -0,0 +1,49 @@
+--- Makefile.orig 2008-11-09 14:17:33.000000000 -0800
++++ Makefile 2008-11-09 14:58:26.000000000 -0800
+@@ -3,14 +3,19 @@
+ # CFLAGS=
+ # CFLAGS=-g -ansi -pedantic
+
++# -- Set default prefix and destdir's ------
++DESTDIR ?=
++PREFIX ?= /opt/local
++
++LD_LIBRARY_PATH=$(PREFIX)/lib
+ # ----- build path -----
+ GDC_INCL=./
+ GDC_LD=./
+ GDC_LIB=libgdc.a
+
+ # ----- install locations -----
+-PREFIX_INC = /usr/local/include
+-PREFIX_LIB = /usr/local/lib
++PREFIX_INC = $(PREFIX)/include
++PREFIX_LIB = $(PREFIX)/lib
+
+ # INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include
+
+@@ -18,9 +23,9 @@
+ # GDChart requires the gd library - www.boutell.com/gd/
+ # gd 2.0.28 or better is required (GIF support has returned to libgd)
+ # if it's not installed in a standard location edit these lines for your installation
+-GD_INCL=/usr/local/include/
+-GD_LD=/usr/local/lib/
+-GD_LIB=libgd.so
++GD_INCL=$(PREFIX)/include/
++GD_LD=$(PREFIX)/lib/
++GD_LIB=libgd.dylib
+ # a static libgd is also available
+ # GD_LIB=libgd.a
+
+@@ -135,8 +140,9 @@
+
+ # ----- install -----
+ install: gdc.h gdchart.h gdcpie.h libgdc.a
+- cp gdc.h gdchart.h gdcpie.h $(PREFIX_INC)/
+- cp libgdc.a $(PREFIX_LIB)/
++ install -d $(DESTDIR)/$(PREFIX_LIB) $(DESTDIR)/$(PREFIX_INC)
++ install gdc.h gdchart.h gdcpie.h $(DESTDIR)/$(PREFIX_INC)/
++ install libgdc.a $(DESTDIR)/$(PREFIX_LIB)/
+
+ # --- clean ---
+ clean:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081109/cf805f8f/attachment.html>
More information about the macports-changes
mailing list