freebsd-ports/print/pdflib/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

54 lines
1.3 KiB
Makefile

# New ports collection makefile for: pdflib
# Date created: Wed Jan 9 12:27:54 CET 2002
# Whom: Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#
PORTNAME= pdflib
PORTVERSION= 7.0.4
CATEGORIES= print
MASTER_SITES= http://www.pdflib.com/binaries/PDFlib/${PORTVERSION:S/.//g}/
DISTNAME= PDFlib-Lite-${PORTVERSION}p4
MAINTAINER= ale@FreeBSD.org
COMMENT= A C library for dynamically generating PDF
RESTRICTED= many odd restrictions on usage and distribution
USE_LDCONFIG= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22
CONFIGURE_ARGS= --with-java=no --with-py=no --with-ruby=no --with-tcl=no
.if defined(WITH_PERL)
USE_PERL5= yes
PLIST_SUB= PERL=""
CONFIGURE_ARGS+=--with-perl=${PERL}
PKGNAMESUFFIX= -perl
.else
CONFIGURE_ARGS+=--with-perl=no
PLIST_SUB= PERL="@comment "
.endif
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
CONFIGURE_ARGS+=--enable-64bit
.endif
post-patch:
@${REINPLACE_CMD} -e "s|\(PDFLIB_LTCURRENT\)=6|\1=8|g" ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's^\$$(top_builddir)/libtool^${LIBTOOL}^' ${WRKSRC}/config/mkcommon.inc.in
post-install:
${MKDIR} ${DATADIR}/fonts
${INSTALL_DATA} ${WRKSRC}/fonts/* ${DATADIR}/fonts
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/pdflib/* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>