Ticket #42088: pgf.diff

File pgf.diff, 3.5 KB (added by nerdling (Jeremy Lavergne), 11 years ago)

patches to a partial 3.0.0

  • Portfile

     
    55PortGroup           texlive 1.0
    66
    77name                pgf
    8 version             2.10
     8version             3.0.0
    99categories          tex textproc
    1010platforms           darwin
    1111license             {GPL-2 LPPL-1.3}
     
    2020    layer called TikZ.
    2121
    2222homepage            http://pgf.sourceforge.net/
    23 master_sites        sourceforge:pgf
     23master_sites        sourceforge:project/pgf/pgf/version%20${version}
    2424use_zip             yes
    2525distname            ${name}_${version}.tds
    2626
    27 checksums           rmd160  85eea50acad282a3f13d11a87368c6f16e35ff49 \
    28                     sha256  6d197e2a6a7bdadc81d180ef58ad2ef3e446fb07e05ac52821047d8c31b90b95
     27checksums           rmd160  572204fedbaf9034dc56d9049e40c919b08d4b9e \
     28                    sha256  672b15d0a73fcaee1efefdaf396db1d8313e08d91db9b15bfde293eb6132474e
    2929
    30 depends_lib         bin:texhash:texlive-basic
     30depends_lib         bin:texhash:texlive-basic port:lua
    3131
    3232extract.mkdir       yes
    3333
     34patchfiles          patch-MakefileConfig.mk.diff \
     35                    patch-Makefile.diff
     36post-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
    3445use_configure       no
    35 build { }
    3646
     47build.dir           ${worksrcpath}/source/generic/pgf/c
     48
    3749destroot {
    3850    set r ${workpath}/${name}_${version}.tds
    3951    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