freebsd-ports/print/foomatic-db/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

69 lines
1.7 KiB
Makefile

# New ports collection makefile for: foomatic-db
# Date created: 01 March 2003
# Whom: Dima Dorfman <dima@unixfreak.org>
#
# $FreeBSD$
#
PORTNAME= foomatic-db
PORTVERSION= 20050309
CATEGORIES= print
MASTER_SITES= # custom fetch
NO_CHECKSUM= ${DISTFILES}
MAINTAINER= ports@FreeBSD.org
COMMENT= Foomatic database
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
curl.3:${PORTSDIR}/ftp/curl
USE_GMAKE= yes
USE_PERL5= yes
USE_BZIP2= yes
USE_AUTOTOOLS= automake:15:env autoconf:259
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
CVS_CMD?= cvs -z3
CVS_DATE= ${PORTVERSION}
CVS_SITES?= pserver:anonymous@cvs.linuxprinting.org:/var/lib/cvs
CVS_BRANCH= foomatic-3_0-branch # STABLE
CVS_MODULE= foomatic-db
#
# 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}" -r ${CVS_BRANCH} ${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 \
-X ${FILESDIR}/tarignore \
-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} && ${ACLOCAL} && ${AUTOCONF}
.include <bsd.port.post.mk>