1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/print/pdftk/Makefile
2004-11-29 20:08:05 +00:00

47 lines
1.2 KiB
Makefile

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