2001-12-08 10:22:00 +01:00
|
|
|
# New ports collection makefile for: bg5pdf
|
|
|
|
# Date created: 17 June 1998
|
|
|
|
# Whom: Shen Chuan-Hsing
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bg5pdf
|
|
|
|
PORTVERSION= 1.0.0
|
2004-06-25 13:24:25 +02:00
|
|
|
PORTREVISION= 4
|
2001-12-08 10:22:00 +01:00
|
|
|
CATEGORIES= chinese print
|
2003-11-08 13:10:25 +01:00
|
|
|
MASTER_SITES= http://cschin.yydolphin.net/bg5pdf/ \
|
2002-02-21 08:42:17 +01:00
|
|
|
ftp://freebsd.sinica.edu.tw/pub/statue/bg5pdf/
|
2001-12-08 10:22:00 +01:00
|
|
|
|
2005-07-25 23:58:10 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= Convert Chinese-Big5 encoded files to PDF, using PDFlib
|
2001-12-08 10:22:00 +01:00
|
|
|
|
2004-06-25 13:24:25 +02:00
|
|
|
LIB_DEPENDS= pdf.7:${PORTSDIR}/print/pdflib
|
2001-12-08 10:22:00 +01:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2004-01-31 02:06:52 +01:00
|
|
|
CFLAGS+= -fPIC
|
2003-11-09 15:18:38 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR},g' \
|
|
|
|
${WRKSRC}/Makefile
|
2001-12-08 10:22:00 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bg5pdf ${PREFIX}/bin
|
2002-07-04 20:34:31 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gbpdf ${PREFIX}/bin
|
2002-04-25 05:38:27 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bg5pdflib.so ${PYTHON_SITELIBDIR}
|
2001-12-08 10:22:00 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/test.big5 ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/test.big5.pdf ${EXAMPLESDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/genTest.py ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|