freebsd-ports/print/pdflib3/Makefile
Bill Fumerola b462120056 new port pdflib3 (repocopy from pdflib):
version 3 of pdflib has odd restrictions for usage (and you may need to
purchase a license depending on what you do with it). It is however needed
for php4's pdf functions and is of use to many, so we'll keep a seperate
restricted port available for those of us who need it.

Support for languages other then C/C++ are turned off for now, but I may change
that (turning on perl/tcl/python support involves turning _off_ C/C++ support,
so I'll add a WITH_FOO knob later)

Submitted by:	sobomax, billf
2000-09-13 21:46:33 +00:00

39 lines
1.0 KiB
Makefile

# New ports collection makefile for: pdflib
# Date created: Mon Jan 18 17:03:33 CET 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pdflib
PORTVERSION= 3.02
CATEGORIES= print
MASTER_SITES= http://www.pdflib.com/pdflib/download/
MAINTAINER= billf@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/lib/afm/Courier:${PORTSDIR}/print/afm
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.4:${PORTSDIR}/graphics/png
RESTRICTED= "many odd restrictions on usage and distribution"
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-perl5=${PERL} \
--with-jpeg=${PREFIX} \
--with-pnglib=${PREFIX} \
--enable-shared-pdflib \
--enable-cxx \
--with-zlib=/usr
do-install:
${INSTALL_DATA} ${WRKSRC}/pdflib/.libs/libpdf.so.3 ${PREFIX}/lib
${LN} -s libpdf.so.3 ${PREFIX}/lib/libpdf.so
${INSTALL_DATA} ${WRKSRC}/pdflib/pdflib.h ${PREFIX}/include
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/pdflib
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/pdflib
.endif
.include <bsd.port.mk>