[52517] trunk/dports/graphics/gdchart

jameskyle at macports.org jameskyle at macports.org
Wed Jun 17 20:54:22 PDT 2009


Revision: 52517
          http://trac.macports.org/changeset/52517
Author:   jameskyle at macports.org
Date:     2009-06-17 20:54:22 -0700 (Wed, 17 Jun 2009)
Log Message:
-----------
Corrected maintainer email, distname.
Took the static reference to /opt/local out of the Makefile/patch
Added livecheck

Modified Paths:
--------------
    trunk/dports/graphics/gdchart/Portfile
    trunk/dports/graphics/gdchart/files/patch-Makefile.diff

Modified: trunk/dports/graphics/gdchart/Portfile
===================================================================
--- trunk/dports/graphics/gdchart/Portfile	2009-06-18 03:52:53 UTC (rev 52516)
+++ trunk/dports/graphics/gdchart/Portfile	2009-06-18 03:54:22 UTC (rev 52517)
@@ -1,22 +1,22 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
-
 PortSystem          1.0
 
 name                gdchart
-version             0.11.5dev
+version             0.11.5
 categories          graphics
-maintainers         ucla.edu:jameskyle
+maintainers         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}
+distname            ${name}${version}dev
 
 checksums           md5 a4af7bc927d8b88934da56fce10a7a3c \
                     sha1 c23e1cd233c38ac007b57420c20a5fa7fa206841 \
                     rmd160 be9b11eb446738d9e30d78e8ce73b8a418b1f520
-use_parallel_build  yes
+use_parallel_build  no
 
 depends_lib         port:libpng \
                     port:zlib \
@@ -28,3 +28,12 @@
 
 patchfiles          patch-Makefile.diff
 
+post-configure {
+    reinplace "s|{__PREFIX__}|${prefix}|g" ${worksrcpath}/Makefile
+    reinplace "s|{__DESTDIR__}|${destroot}|g" ${worksrcpath}/Makefile
+}
+
+livecheck.check     regex
+livecheck.url       ${homepage}dev011x.htm
+livecheck.regex     {gdchart([0-9.]+)dev.tar.gz}
+livecheck.md5       a4af7bc927d8b88934da56fce10a7a3c

Modified: trunk/dports/graphics/gdchart/files/patch-Makefile.diff
===================================================================
--- trunk/dports/graphics/gdchart/files/patch-Makefile.diff	2009-06-18 03:52:53 UTC (rev 52516)
+++ trunk/dports/graphics/gdchart/files/patch-Makefile.diff	2009-06-18 03:54:22 UTC (rev 52517)
@@ -3,25 +3,25 @@
 @@ -3,14 +3,19 @@
  # CFLAGS=
  # CFLAGS=-g -ansi -pedantic
- 
+
 +# -- Set default prefix and destdir's ------
-+DESTDIR ?= 
-+PREFIX ?= /opt/local
++DESTDIR ?= {__DESTDIR__}
++PREFIX ?= {__PREFIX__}
 +
 +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 
- 
+
+ # 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)
@@ -34,9 +34,9 @@
 +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)/
@@ -44,6 +44,6 @@
 +	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/20090617/dc563523/attachment.html>


More information about the macports-changes mailing list