eee58d187e
Before, we had: site_perl : lib/perl5/site_perl/5.18 site_perl/perl_arch : lib/perl5/site_perl/5.18/mach perl_man3 : lib/perl5/5.18/man/man3 Now we have: site_perl : lib/perl5/site_perl site_arch : lib/perl5/site_perl/mach/5.18 perl_man3 : lib/perl5/site_perl/man/man3 Modules without any .so will be installed at the same place regardless of the Perl version, minimizing the upgrade when the major Perl version is changed. It uses a version dependent directory for modules with compiled bits. As PERL_ARCH is no longer needed in plists, it has been removed from PLIST_SUB. The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now always removed, as is perllocal.pod. The old site_perl and site_perl/arch directories have been kept in the default Perl @INC for all Perl ports, and will be phased out as these old Perl versions expire. PR: 194969 Differential Revision: https://reviews.freebsd.org/D1019 Exp-run by: antoine Reviewed by: perl@ Approved by: portmgr
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# Created by: Alex Dupre <sysadmin@alexdupre.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pdflib
|
|
PORTVERSION= 7.0.5
|
|
PORTREVISION= 4
|
|
CATEGORIES= print perl5 java
|
|
MASTER_SITES= http://www.pdflib.com/binaries/PDFlib/${PORTVERSION:S/.//g}/
|
|
DISTNAME= PDFlib-Lite-${PORTVERSION}p3
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= C library for dynamically generating PDF
|
|
|
|
RESTRICTED= Many odd restrictions on usage and distribution
|
|
|
|
OPTIONS_DEFINE= PERL JAVA
|
|
PERL_DESC= Build perl bindings
|
|
JAVA_DESC= Build Java bindings
|
|
|
|
USES= gmake libtool
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-py=no --with-ruby=no --with-tcl=no
|
|
|
|
PORTDOCS= *
|
|
|
|
PERL_USES= perl5
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
CONFIGURE_ARGS+=--enable-64bit
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
|
PLIST_SUB= PERL=""
|
|
CONFIGURE_ARGS+=--with-perl=${PERL}
|
|
.else
|
|
CONFIGURE_ARGS+=--with-perl=no
|
|
PLIST_SUB= PERL="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MJAVA}
|
|
USE_JAVA= yes
|
|
JAVA_BUILD= yes
|
|
JAVA_RUN= yes
|
|
PLIST_SUB+= JAVA=""
|
|
CONFIGURE_ARGS+=--with-java=${JAVA_HOME}
|
|
.else
|
|
CONFIGURE_ARGS+=--with-java=no
|
|
PLIST_SUB+= JAVA="@comment "
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/fonts
|
|
${INSTALL_DATA} ${WRKSRC}/fonts/* ${STAGEDIR}${DATADIR}/fonts
|
|
.if ${PORT_OPTIONS:MJAVA}
|
|
${INSTALL_DATA} ${WRKSRC}/bind/pdflib/java/pdflib.jar ${STAGEDIR}${JAVAJARDIR}/pdflib.jar
|
|
.endif
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/pdflib/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|