fcf0644613
with tweaks from myself and landry@. ok landry@ If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents. Use it to: * Merge and/or split PDF Documents * Rotate PDF Documents or Pages * Decrypt/Encrypt PDF Documents * Fill PDF Forms with X/FDF Data and/or Flatten Forms * Apply a Background Watermark or a Foreground Stamp * Report or update PDF Metrics such as Metadata and Bookmarks * Attach Files to PDF Pages or the PDF Document * Unpack PDF Attachments * Uncompress and Re-Compress Page Streams * Repair Corrupted PDF (Where Possible)
64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2011/05/20 10:09:57 sthen Exp $
|
|
|
|
COMMENT= pdf swiss army knife
|
|
VERSION= 1.44
|
|
DISTNAME= pdftk-$(VERSION)
|
|
EXTRACT_SUFX= -src.zip
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= Christopher Zimmermann <madroach@zakweb.org>
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB += ${MODGCC4_GCJWANTLIB} c m pthread z
|
|
|
|
MASTER_SITES= http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
|
|
|
|
MODULES= converters/libiconv gcc4
|
|
MODGCC4_ARCHES= *
|
|
MODGCC4_LANGS= java c++
|
|
LIB_DEPENDS= ${MODGCC4_GCJLIBDEP}
|
|
|
|
WRKDIST= ${WRKDIR}/$(DISTNAME)-dist
|
|
WRKSRC= $(WRKDIST)/pdftk
|
|
|
|
USE_GMAKE= Yes
|
|
MAKE_FILE= Makefile.Base
|
|
|
|
GCJ?= gcj
|
|
GCJH?= gcjh
|
|
GJAR?= ejar
|
|
|
|
CONFIG= $(MACHINE)-unknown-openbsd$(OSREV)
|
|
GCJFLAGS?= ${CXXFLAGS}
|
|
CPPFLAGS+= -fdollars-in-identifiers \
|
|
-DPATH_DELIM=0x2f \
|
|
-DASK_ABOUT_WARNINGS=false \
|
|
-DUNBLOCK_SIGNALS \
|
|
-I$(LOCALBASE)/include/c++/4.2.4 \
|
|
-I$(LOCALBASE)/lib/gcc/$(CONFIG)/4.2.4/include
|
|
CXXFLAGS+= -L$(LOCALBASE)/lib
|
|
LDLIBS+= -lgcj -liconv -lz -pthread
|
|
|
|
MAKE_ENV+= CXX="$(CXX)" \
|
|
GCJ="$(GCJ)" \
|
|
GCJH="$(GCJH)" \
|
|
GJAR="$(GJAR)" \
|
|
AR="$(AR)" \
|
|
RM=rm \
|
|
GCJFLAGS="$(GCJFLAGS)" \
|
|
CPPFLAGS="$(CPPFLAGS)" \
|
|
CXXFLAGS="$(CXXFLAGS)" \
|
|
ARFLAGS="${ARFLAGS} rs" \
|
|
LDLIBS="$(LDLIBS)"
|
|
|
|
do-install:
|
|
$(INSTALL_PROGRAM) $(WRKSRC)/pdftk $(PREFIX)/bin
|
|
$(INSTALL_MAN) $(WRKDIST)/pdftk.1 $(PREFIX)/man/man1
|
|
|
|
.include <bsd.port.mk>
|