Lines 6-40
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= foomatic-db-engine |
8 |
PORTNAME= foomatic-db-engine |
9 |
PORTVERSION= 20031213 |
9 |
PORTVERSION= 3.0.2 |
10 |
PORTREVISION= 2 |
10 |
PORTEPOCH= 1 |
11 |
CATEGORIES= print |
11 |
CATEGORIES= print |
12 |
MASTER_SITES= # |
12 |
MASTER_SITES= http://www.linuxprinting.org/download/foomatic/%SUBDIR%/ |
|
|
13 |
MASTER_SITE_SUBDIR= . oldstuff |
13 |
|
14 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Foomatic database engine |
16 |
COMMENT= Foomatic database engine |
16 |
|
17 |
|
17 |
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \ |
18 |
BUILD_DEPENDS= curl:${PORTSDIR}/ftp/curl |
18 |
curl.3:${PORTSDIR}/ftp/curl |
19 |
RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl |
19 |
|
20 |
|
20 |
BROKEN= "Configure fails" |
21 |
USE_GNOME= libxml2 |
21 |
|
|
|
22 |
USE_GMAKE= yes |
23 |
USE_PERL5= yes |
22 |
USE_PERL5= yes |
24 |
USE_BZIP2= yes |
23 |
USE_GMAKE= yes |
25 |
WANT_AUTOMAKE_VER= 15 |
|
|
26 |
USE_AUTOCONF_VER= 253 |
27 |
GNU_CONFIGURE= yes |
24 |
GNU_CONFIGURE= yes |
28 |
NO_CHECKSUM= yes # the tarball is created on the fly from CVS |
|
|
29 |
CONFIGURE_ARGS= --prefix=${PREFIX} |
30 |
CONFIGURE_ENV= PERL=${PERL} LIBDIR=${PREFIX}/share/foomatic/ |
25 |
CONFIGURE_ENV= PERL=${PERL} LIBDIR=${PREFIX}/share/foomatic/ |
31 |
|
26 |
|
32 |
.include <bsd.port.pre.mk> |
|
|
33 |
CVS_CMD?= cvs -z3 |
34 |
CVS_DATE= ${PORTVERSION} |
35 |
CVS_SITES?= pserver:anonymous@cvs.linuxprinting.org:/usr/local/cvs |
36 |
CVS_MODULE= foomatic-db-engine |
37 |
|
38 |
MAN1= foomatic-printjob.1 foomatic-ppdfile.1 foomatic-perl-data.1 \ |
27 |
MAN1= foomatic-printjob.1 foomatic-ppdfile.1 foomatic-perl-data.1 \ |
39 |
foomatic-configure.1 foomatic-compiledb.1 foomatic-combo-xml.1 \ |
28 |
foomatic-configure.1 foomatic-compiledb.1 foomatic-combo-xml.1 \ |
40 |
foomatic-ppd-options.1 |
29 |
foomatic-ppd-options.1 |
Lines 42-80
Link Here
|
42 |
foomatic-kitload.8 foomatic-getpjloptions.8 \ |
31 |
foomatic-kitload.8 foomatic-getpjloptions.8 \ |
43 |
foomatic-addpjloptions.8 |
32 |
foomatic-addpjloptions.8 |
44 |
|
33 |
|
45 |
# |
34 |
post-patch: |
46 |
# CVS checkout stuff mostly stolen from security/openssh-askpass port by |
35 |
@${PERL} -pi.bak -e \ |
47 |
# kris@freebsd.org |
36 |
"s,sysconfdir=/etc,sysconfdir=\'${PREFIX}/etc\',g ; \ |
48 |
# |
37 |
s,/usr/local/etc:,${PREFIX}/etc:,g" ${WRKSRC}/configure |
49 |
do-fetch: |
38 |
@${PERL} -pi.bak -e \ |
50 |
@if test ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ; then \ |
39 |
"s,/usr/local/bin:,${PREFIX}/bin:,g" ${WRKSRC}/Makefile.in |
51 |
${MKDIR} ${DISTDIR}/${DISTNAME} && \ |
40 |
|
52 |
cd ${DISTDIR}/${DISTNAME}; \ |
41 |
post-install: |
53 |
for CVS_SITE in ${CVS_SITES}; do \ |
42 |
.for file in foomatic-combo-xml foomatic-perl-data |
54 |
${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \ |
43 |
@${STRIP_CMD} ${PREFIX}/bin/${file} |
55 |
if ${CVS_CMD} -d:$${CVS_SITE} co -D "${CVS_DATE}" ${CVS_MODULE}; \ |
44 |
.endfor |
56 |
then \ |
|
|
57 |
cd ${DISTDIR}; \ |
58 |
${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \ |
59 |
${ECHO_MSG} ">> \"${DISTNAME}${EXTRACT_SUFX}\"."; \ |
60 |
${MV} ${DISTNAME}/${CVS_MODULE} \ |
61 |
${DISTNAME}/${CVS_MODULE:H}/${DISTNAME}; \ |
62 |
${TAR} -cj \ |
63 |
-f ${DISTNAME}${EXTRACT_SUFX} \ |
64 |
-C ${DISTNAME}/${CVS_MODULE:H} \ |
65 |
${DISTNAME}; \ |
66 |
exit; \ |
67 |
fi \ |
68 |
done; \ |
69 |
${RMDIR} ${DISTDIR}/${DISTNAME}; \ |
70 |
${ECHO_MSG} ">> CVS checkout failed."; \ |
71 |
exit 1; \ |
72 |
fi |
73 |
|
74 |
#pre-configure: |
75 |
# @cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} ./make_configure |
76 |
|
77 |
post-build: |
78 |
@${CHMOD} +x ${WRKSRC}/mkinstalldirs |
79 |
|
45 |
|
80 |
.include <bsd.port.post.mk> |
46 |
.include <bsd.port.mk> |