2004-04-02 01:47:27 +00:00
|
|
|
# Ports collection makefile for: pdftk
|
|
|
|
# Date created: 18 March, 2004
|
|
|
|
# Whom: Patrick Dung (patrick_dkt@yahoo.com.hk)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pdftk
|
2004-11-15 12:18:58 +00:00
|
|
|
PORTVERSION= 1.12
|
2004-04-02 01:47:27 +00:00
|
|
|
CATEGORIES= print
|
2004-11-15 12:18:58 +00:00
|
|
|
MASTER_SITES= http://www.pdfhacks.com/pdftk/ \
|
|
|
|
http://www.accesspdf.com/pdftk/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}.${PORTVERSION:E}
|
2004-04-02 01:47:27 +00:00
|
|
|
|
|
|
|
MAINTAINER= patrick_dkt@yahoo.com.hk
|
|
|
|
COMMENT= A simple tool for doing everyday things with PDF documents
|
|
|
|
|
|
|
|
# needs gcj
|
2004-11-27 15:24:11 +00:00
|
|
|
BUILD_DEPENDS= gcj33:${PORTSDIR}/lang/gcc33
|
2004-04-02 01:47:27 +00:00
|
|
|
|
2004-11-29 20:08:05 +00:00
|
|
|
# gcj don't exist on (and gcc33 is broken on amd64)
|
|
|
|
NOT_FOR_ARCHS= amd64 ia64 sparc64
|
2004-05-11 07:56:46 +00:00
|
|
|
|
2004-11-27 15:24:11 +00:00
|
|
|
USE_GCC= 3.3
|
2004-04-02 01:47:27 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-07-26 14:36:53 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
|
2004-04-02 01:47:27 +00:00
|
|
|
|
|
|
|
MAKEFILE= Makefile.Generic
|
2004-11-27 15:24:11 +00:00
|
|
|
MAKE_ENV= CXX=g++33 GCJ=gcj33 GCJH=gcjh33
|
2004-04-02 01:47:27 +00:00
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
PLIST_FILES= bin/pdftk
|
|
|
|
|
|
|
|
post-extract:
|
2004-11-15 12:18:58 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|TOOLPATH=|TOOLPATH=${LOCALBASE}/bin/|g" ${WRKSRC}/Makefile.Generic
|
2004-11-27 15:24:11 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|VERSUFF=|VERSUFF=33|g" ${WRKSRC}/Makefile.Generic
|
2004-11-15 12:18:58 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz|g" ${WRKSRC}/Makefile.Generic
|
2004-04-02 01:47:27 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/../debian/${PORTNAME}.1 ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|