aboutsummaryrefslogtreecommitdiff
path: root/print/foomatic-db/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/foomatic-db/Makefile')
-rw-r--r--print/foomatic-db/Makefile66
1 files changed, 66 insertions, 0 deletions
diff --git a/print/foomatic-db/Makefile b/print/foomatic-db/Makefile
new file mode 100644
index 000000000000..114b439cbf54
--- /dev/null
+++ b/print/foomatic-db/Makefile
@@ -0,0 +1,66 @@
+# New ports collection makefile for: foomatic-db
+# Date created: 01 March 2003
+# Whom: Dima Dorfman <dima@unixfreak.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= foomatic-db
+PORTVERSION= 20030228
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+NO_CHECKSUM= ${DISTFILES}
+
+MAINTAINER= gasp@ridcully.dnsalias.org
+COMMENT= Foomatic database
+
+LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
+ curl.2:${PORTSDIR}/ftp/curl
+
+USE_GMAKE= yes
+USE_PERL5= yes
+USE_BZIP2= yes
+
+GNU_CONFIGURE= yes
+
+.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
+
+#
+# CVS checkout stuff mostly stolen from security/openssh-askpass port by
+# kris@freebsd.org
+#
+do-fetch:
+ @if test ! -f ${DISTDIR}/${PKGNAME}${EXTRACT_SUFX} ; then \
+ ${MKDIR} ${DISTDIR}/${PKGNAME} && \
+ cd ${DISTDIR}/${PKGNAME}; \
+ 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} ">> \"${PKGNAME}${EXTRACT_SUFX}\"."; \
+ ${MV} ${PKGNAME}/${CVS_MODULE} \
+ ${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
+ ${TAR} -cj \
+ -X ${FILESDIR}/tarignore \
+ -f ${PKGNAME}${EXTRACT_SUFX} \
+ -C ${PKGNAME}/${CVS_MODULE:H} \
+ ${PKGNAME}; \
+ exit; \
+ fi \
+ done; \
+ ${RMDIR} ${DISTDIR}/${PKGNAME}; \
+ ${ECHO_MSG} ">> CVS checkout failed."; \
+ exit 1; \
+ fi
+
+pre-configure:
+ @cd ${WRKSRC} && ./make_configure
+ cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/preconfigure-patch
+
+.include <bsd.port.post.mk>