# 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= gcj34:${PORTSDIR}/lang/gcc34 # gcj don't exist on NOT_FOR_ARCHS= ia64 sparc64 USE_GCC= 3.4 USE_GMAKE= yes USE_ICONV= yes USE_REINPLACE= yes WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME} MAKEFILE= Makefile.Generic MAKE_ENV= CXX=g++34 GCJ=gcj34 GCJH=gcjh34 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=34|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