Fetching contributors…
Cannot retrieve contributors at this time
72 lines (56 sloc) 2.55 KB
# -*- 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
PortSystem 1.0
PortGroup texlive 1.0
name pgf
version 3.0.1
categories tex textproc
platforms darwin
license {GPL-2 LPPL-1.3}
maintainers nomaintainer
supported_archs noarch
description PGF and TikZ -- Graphic systems for TeX
long_description PGF is a TeX macro package for generating graphics. \
It is platform- and format-independent and works \
together with the most important TeX backend \
drivers, including pdftex and dvips. It comes \
with a user-friedly syntax layer called TikZ.
depends_lib bin:texhash:texlive-basic
master_sites sourceforge:project/pgf/pgf/version%20${version}
use_zip yes
distname ${name}_${version}.tds
checksums rmd160 208d16f9c993c2e6400cf79123c2502c6c4f3a9c \
sha256 a0f374ff2a66e8d24995b571cc74f773fd58f81d63bf719d73af326c280bdb99
extract.mkdir yes
# the patchfiles are only relevant if building the C code gets enabled one day,
# but the patches are not complete yet (building the module is not working)
patchfiles \
post-patch {
# instead of patching all this one could also create
set mymakefileconfig ${worksrcpath}/source/generic/pgf/c/config/
reinplace s|@@PREFIX@@|${prefix}| ${mymakefileconfig}
reinplace s|@@CC@@|${}| ${mymakefileconfig}
reinplace s|@@ARCHFLAGS@@|-arch\ ${build_arch}| ${mymakefileconfig}
reinplace s|@@CFLAGS@@|${configure.cflags}| ${mymakefileconfig}
reinplace s|@@LDFLAGS@@|${configure.ldflags}\ -llua| ${mymakefileconfig}
use_configure no
# we won't build anything for now, but if anyone wants to finish the work,
# see
build { }
# build.dir ${worksrcpath}/source/generic/pgf/c
destroot {
set r ${workpath}/${name}_${version}.tds
file mkdir ${destroot}${texlive_texmfports}/
file copy ${r}/doc ${destroot}${texlive_texmfports}/
file copy ${r}/source ${destroot}${texlive_texmfports}/
file copy ${r}/tex ${destroot}${texlive_texmfports}/
post-activate {
post-deactivate {
livecheck.regex {/version ([.\d]+)}