mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
9fb1ef4c3a
response to email. Hat: portmgr
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# New ports collection makefile for: bg5pdf
|
|
# Date created: 17 June 1998
|
|
# Whom: Shen Chuan-Hsing
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bg5pdf
|
|
PORTVERSION= 1.0.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= chinese print
|
|
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/bg5pdf/ \
|
|
LOCAL/chinsan
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Convert Chinese-Big5 encoded files to PDF, using PDFlib
|
|
|
|
LIB_DEPENDS= pdf.8:${PORTSDIR}/print/pdflib
|
|
|
|
CFLAGS+= -fPIC
|
|
USE_PYTHON= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,/usr/bin/python,python,g' ${WRKSRC}/bg5pdf
|
|
|
|
do-build:
|
|
${CC} ${CFLAGS} -shared ${WRKSRC}/bg5pdflib.c -I${PREFIX}/include \
|
|
-I${PYTHON_INCLUDEDIR} -L${PREFIX}/lib -lpdf -o ${WRKSRC}/bg5pdflib.so
|
|
|
|
do-install:
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bg5pdf ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gbpdf ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bg5pdflib.so ${PYTHON_SITELIBDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/test.big5 ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/test.big5.pdf ${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/genTest.py ${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|