aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2003-11-09 22:18:38 +0800
committervanilla <vanilla@FreeBSD.org>2003-11-09 22:18:38 +0800
commitbb46f3557dcbcd0aab2a7d64c194760f36382e07 (patch)
treebf6d3e5d95395073d6cb11e0c4c72367423e176e /chinese
parent1a4363d95e137902c098373cbd82ec07a948ef56 (diff)
downloadfreebsd-ports-gnome-bb46f3557dcbcd0aab2a7d64c194760f36382e07.tar.gz
freebsd-ports-gnome-bb46f3557dcbcd0aab2a7d64c194760f36382e07.tar.zst
freebsd-ports-gnome-bb46f3557dcbcd0aab2a7d64c194760f36382e07.zip
make it build
bump PORTREVISION PR: ports/59057 Submitted by: maintainer
Diffstat (limited to 'chinese')
-rw-r--r--chinese/bg5pdf/Makefile7
-rw-r--r--chinese/bg5pdf/files/patch-ab2
2 files changed, 7 insertions, 2 deletions
diff --git a/chinese/bg5pdf/Makefile b/chinese/bg5pdf/Makefile
index 9623563419ad..9f295b3c484e 100644
--- a/chinese/bg5pdf/Makefile
+++ b/chinese/bg5pdf/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bg5pdf
PORTVERSION= 1.0.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= chinese print
MASTER_SITES= http://cschin.yydolphin.net/bg5pdf/ \
ftp://freebsd.sinica.edu.tw/pub/statue/bg5pdf/
@@ -19,6 +19,11 @@ LIB_DEPENDS= pdf.6:${PORTSDIR}/print/pdflib
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_REINPLACE= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR},g' \
+ ${WRKSRC}/Makefile
do-install:
@${MKDIR} ${EXAMPLESDIR}
diff --git a/chinese/bg5pdf/files/patch-ab b/chinese/bg5pdf/files/patch-ab
index fc4c9c00d49d..ff898e17963e 100644
--- a/chinese/bg5pdf/files/patch-ab
+++ b/chinese/bg5pdf/files/patch-ab
@@ -2,5 +2,5 @@
+++ Makefile Sat Mar 30 23:01:40 2002
@@ -0,0 +1,3 @@
+all:
-+ ${CC} ${CFLAGS} -shared bg5pdflib.c -I/usr/local/include -I /usr/local/include/python2.2 -L/usr/local/lib -lpdf -o bg5pdflib.so
++ ${CC} ${CFLAGS} -shared bg5pdflib.c -I/usr/local/include -I%%PYTHON_INCLUDEDIR%% -L/usr/local/lib -lpdf -o bg5pdflib.so
+