Ticket #42088: pgf.diff
File pgf.diff, 3.5 KB (added by nerdling (Jeremy Lavergne), 11 years ago) |
---|
-
Portfile
5 5 PortGroup texlive 1.0 6 6 7 7 name pgf 8 version 2.108 version 3.0.0 9 9 categories tex textproc 10 10 platforms darwin 11 11 license {GPL-2 LPPL-1.3} … … 20 20 layer called TikZ. 21 21 22 22 homepage http://pgf.sourceforge.net/ 23 master_sites sourceforge:p gf23 master_sites sourceforge:project/pgf/pgf/version%20${version} 24 24 use_zip yes 25 25 distname ${name}_${version}.tds 26 26 27 checksums rmd160 85eea50acad282a3f13d11a87368c6f16e35ff49\28 sha256 6 d197e2a6a7bdadc81d180ef58ad2ef3e446fb07e05ac52821047d8c31b90b9527 checksums rmd160 572204fedbaf9034dc56d9049e40c919b08d4b9e \ 28 sha256 672b15d0a73fcaee1efefdaf396db1d8313e08d91db9b15bfde293eb6132474e 29 29 30 depends_lib bin:texhash:texlive-basic 30 depends_lib bin:texhash:texlive-basic port:lua 31 31 32 32 extract.mkdir yes 33 33 34 patchfiles patch-MakefileConfig.mk.diff \ 35 patch-Makefile.diff 36 post-patch { 37 set mymakefileconfig ${worksrcpath}/source/generic/pgf/c/config/MakefileConfig.mk 38 reinplace s|@@PREFIX@@|${prefix}| ${mymakefileconfig} 39 reinplace s|@@CC@@|${configure.cc}| ${mymakefileconfig} 40 reinplace s|@@ARCHFLAGS@@|-arch\ ${build_arch}| ${mymakefileconfig} 41 reinplace s|@@CFLAGS@@|${configure.cflags}| ${mymakefileconfig} 42 reinplace s|@@LDFLAGS@@|${configure.ldflags}\ -llua| ${mymakefileconfig} 43 } 44 34 45 use_configure no 35 build { }36 46 47 build.dir ${worksrcpath}/source/generic/pgf/c 48 37 49 destroot { 38 50 set r ${workpath}/${name}_${version}.tds 39 51 file mkdir ${destroot}${texlive_texmfports}/ -
files/patch-Makefile.diff
1 --- source/generic/pgf/c/graphdrawing/pgf/gd/interface/c/Makefile.orig 2014-01-10 14:27:01.000000000 -0500 2 +++ source/generic/pgf/c/graphdrawing/pgf/gd/interface/c/Makefile 2014-01-10 14:27:18.000000000 -0500 3 @@ -1,7 +1,7 @@ 4 CONFIGDIR=../../../../../config 5 include $(CONFIGDIR)/MakefileConfig.mk 6 7 -FLAGS=$(MYCFLAGS) $(ARCHFLAGS) -O2 -Wall -I$(LUAINCLUDES) -I$(PGFINCLUDES) 8 +FLAGS=$(MYCFLAGS) $(ARCHFLAGS) -Wall -I$(LUAINCLUDES) -I$(PGFINCLUDES) 9 10 all: InterfaceFromC.o InterfaceFromC++.o 11 -
files/patch-MakefileConfig.mk.diff
1 --- source/generic/pgf/c/config/MakefileConfig.mk.orig 2014-01-10 14:39:07.000000000 -0500 2 +++ source/generic/pgf/c/config/MakefileConfig.mk 2014-01-10 14:39:48.000000000 -0500 3 @@ -1,6 +1,6 @@ 4 5 # Where Lua is installed 6 -LUAPATH=/usr/local/lua52 7 +LUAPATH=@@PREFIX@@ 8 9 LUAINCLUDES = $(LUAPATH)/include 10 LUALIBPATH = $(LUAPATH)/lib 11 @@ -22,8 +22,8 @@ 12 13 14 # If you need special flags: 15 -MYCFLAGS= 16 -MYLDFLAGS= 17 +MYCFLAGS=@@CFLAGS@@ 18 +MYLDFLAGS=@@LDFLAGS@@ 19 20 # Link flags for building a shared library 21 SHAREDFLAGS= 22 @@ -32,10 +32,10 @@ 23 LINKSHAREDLUA= 24 25 # Architecture flags: 26 -ARCHFLAGS= 27 +ARCHFLAGS=@@ARCHFLAGS@@ 28 29 # The to-be-used compiler 30 -CC=gcc 31 +CC=@@CC@@ 32 33 34 # Now read local definition, which may overwrite the above