Ticket #23285: gdchart-0.11.5_2.diff
File gdchart-0.11.5_2.diff, 3.6 KB (added by nox@…, 15 years ago) |
---|
-
dports/graphics/gdchart/Portfile
diff --git a/dports/graphics/gdchart/Portfile b/dports/graphics/gdchart/Portfile index c25e9b0..d4d78a4 100644
a b PortSystem 1.0 4 4 5 5 name gdchart 6 6 version 0.11.5 7 revision 17 revision 2 8 8 categories graphics 9 9 maintainers jameskyle 10 10 description Easy to use C API, high performance library. … … checksums md5 a4af7bc927d8b88934da56fce10a7a3c \ 19 19 rmd160 be9b11eb446738d9e30d78e8ce73b8a418b1f520 20 20 use_parallel_build no 21 21 22 depends_ libport:libpng \22 depends_build port:libpng \ 23 23 port:zlib \ 24 24 port:gd2 \ 25 25 port:jpeg \ 26 26 port:freetype 27 27 28 set CFLAGS ${configure.cflags} 29 30 post-patch { 31 # Use prefix 32 reinplace s:/usr/local:${prefix}: ${worksrcpath}/Makefile 33 } 34 28 35 use_configure no 29 36 30 patchfiles patch-Makefile.diff 37 build.args \ 38 CC=${configure.cc} \ 39 GD_LIB=libgd.dylib 40 41 pre-build { 42 build.args-append \ 43 CFLAGS="${CFLAGS}" 44 } 45 46 destroot.args \ 47 PREFIX_INC=${destroot}${prefix}/include \ 48 PREFIX_LIB=${destroot}${prefix}/lib \ 49 50 post-destroot { 51 set docdir ${prefix}/share/doc/${name} 52 xinstall -d ${destroot}${docdir} 53 xinstall -m 644 ${worksrcpath}/README.txt ${destroot}${docdir} 54 } 55 56 variant universal { 57 append CFLAGS " ${configure.universal_cflags}" 31 58 32 post-configure { 33 reinplace "s|{__PREFIX__}|${prefix}|g" ${worksrcpath}/Makefile 34 reinplace "s|{__DESTDIR__}|${destroot}|g" ${worksrcpath}/Makefile 59 post-patch { 60 # Use libtool instead of ar 61 reinplace "s:ar cr:libtool -o:" \ 62 ${worksrcpath}/Makefile 63 } 35 64 } 36 65 37 66 livecheck.type regex 38 67 livecheck.url ${homepage}dev011x.htm 39 68 livecheck.regex {gdchart([0-9.]+)dev.tar.gz} 40 livecheck.md5 a4af7bc927d8b88934da56fce10a7a3c -
deleted file dports/graphics/gdchart/files/patch-Makefile.diff
diff --git a/dports/graphics/gdchart/files/patch-Makefile.diff b/dports/graphics/gdchart/files/patch-Makefile.diff deleted file mode 100644 index 33fabe6..0000000
+ - 1 --- Makefile.orig 2008-11-09 14:17:33.000000000 -08002 +++ Makefile 2008-11-09 14:58:26.000000000 -08003 @@ -3,14 +3,19 @@4 # CFLAGS=5 # CFLAGS=-g -ansi -pedantic6 7 +# -- Set default prefix and destdir's ------8 +DESTDIR ?= {__DESTDIR__}9 +PREFIX ?= {__PREFIX__}10 +11 +LD_LIBRARY_PATH=$(PREFIX)/lib12 # ----- build path -----13 GDC_INCL=./14 GDC_LD=./15 GDC_LIB=libgdc.a16 17 # ----- install locations -----18 -PREFIX_INC = /usr/local/include19 -PREFIX_LIB = /usr/local/lib20 +PREFIX_INC = $(PREFIX)/include21 +PREFIX_LIB = $(PREFIX)/lib22 23 # INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include24 25 @@ -18,9 +23,9 @@26 # GDChart requires the gd library - www.boutell.com/gd/27 # gd 2.0.28 or better is required (GIF support has returned to libgd)28 # if it's not installed in a standard location edit these lines for your installation29 -GD_INCL=/usr/local/include/30 -GD_LD=/usr/local/lib/31 -GD_LIB=libgd.so32 +GD_INCL=$(PREFIX)/include/33 +GD_LD=$(PREFIX)/lib/34 +GD_LIB=libgd.dylib35 # a static libgd is also available36 # GD_LIB=libgd.a37 38 @@ -135,8 +140,9 @@39 40 # ----- install -----41 install: gdc.h gdchart.h gdcpie.h libgdc.a42 - cp gdc.h gdchart.h gdcpie.h $(PREFIX_INC)/43 - cp libgdc.a $(PREFIX_LIB)/44 + install -d $(DESTDIR)/$(PREFIX_LIB) $(DESTDIR)/$(PREFIX_INC)45 + install gdc.h gdchart.h gdcpie.h $(DESTDIR)/$(PREFIX_INC)/46 + install libgdc.a $(DESTDIR)/$(PREFIX_LIB)/47 48 # --- clean ---49 clean: