3f651573ad
Begin autotools sanitization sequence by requiring ports to explicitly specify which version of {libtool,autoconf,automake} they need, erasing the concept of a "system default". For ports-in-waiting: USE_LIBTOOL=YES -> USE_LIBTOOL_VER=13 USE_AUTOCONF=YES -> USE_AUTOCONF_VER=213 USE_AUTOMAKE=YES -> USE_AUTOMAKE_VER=14 Ports attempting to use the old style system after June 1st 2004 will be sorely disappointed.
78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
# New ports collection makefile for: foomatic-db-engine
|
|
# Date created: 07 July 2003
|
|
# Whom: Martin Ranne <gasp@ridcully.dnsalias.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= foomatic-db-engine
|
|
PORTVERSION= 20031213
|
|
PORTREVISION= 1
|
|
CATEGORIES= print
|
|
MASTER_SITES= #
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Foomatic database engine
|
|
|
|
BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake
|
|
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
|
|
curl.2:${PORTSDIR}/ftp/curl
|
|
|
|
USE_GMAKE= yes
|
|
USE_PERL5= yes
|
|
USE_BZIP2= yes
|
|
USE_AUTOCONF_VER= 213
|
|
GNU_CONFIGURE= yes
|
|
NO_CHECKSUM= yes # the tarball is created on the fly from CVS
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
CONFIGURE_ENV= PERL=${PERL} LIBDIR=${PREFIX}/share/foomatic/
|
|
|
|
.include <bsd.port.pre.mk>
|
|
CVS_CMD?= cvs -z3
|
|
CVS_DATE= ${PORTVERSION}
|
|
CVS_SITES?= pserver:anonymous@cvs.linuxprinting.org:/usr/local/cvs
|
|
CVS_MODULE= foomatic-db-engine
|
|
|
|
MAN1= foomatic-printjob.1 foomatic-ppdfile.1 foomatic-perl-data.1 \
|
|
foomatic-configure.1 foomatic-compiledb.1 foomatic-combo-xml.1 \
|
|
foomatic-ppd-options.1
|
|
MAN8= foomatic-preferred-driver.8 \
|
|
foomatic-kitload.8 foomatic-getpjloptions.8 \
|
|
foomatic-addpjloptions.8
|
|
|
|
#
|
|
# CVS checkout stuff mostly stolen from security/openssh-askpass port by
|
|
# kris@freebsd.org
|
|
#
|
|
do-fetch:
|
|
@if test ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ; then \
|
|
${MKDIR} ${DISTDIR}/${DISTNAME} && \
|
|
cd ${DISTDIR}/${DISTNAME}; \
|
|
for CVS_SITE in ${CVS_SITES}; do \
|
|
${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
|
|
if ${CVS_CMD} -d:$${CVS_SITE} co -D "${CVS_DATE}" ${CVS_MODULE}; \
|
|
then \
|
|
cd ${DISTDIR}; \
|
|
${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
|
|
${ECHO_MSG} ">> \"${DISTNAME}${EXTRACT_SUFX}\"."; \
|
|
${MV} ${DISTNAME}/${CVS_MODULE} \
|
|
${DISTNAME}/${CVS_MODULE:H}/${DISTNAME}; \
|
|
${TAR} -cj \
|
|
-f ${DISTNAME}${EXTRACT_SUFX} \
|
|
-C ${DISTNAME}/${CVS_MODULE:H} \
|
|
${DISTNAME}; \
|
|
exit; \
|
|
fi \
|
|
done; \
|
|
${RMDIR} ${DISTDIR}/${DISTNAME}; \
|
|
${ECHO_MSG} ">> CVS checkout failed."; \
|
|
exit 1; \
|
|
fi
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && ./make_configure
|
|
|
|
post-build:
|
|
@${CHMOD} +x ${WRKSRC}/mkinstalldirs
|
|
|
|
.include <bsd.port.post.mk>
|