View | Details | Raw Unified | Return to bug 72325
Collapse All | Expand All

(-)print/foomatic-db-engine/Makefile (-54 / +20 lines)
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>
(-)print/foomatic-db-engine/distinfo (-1 / +2 lines)
Line 1 Link Here
1
Data is retrieved via CVS
1
MD5 (foomatic-db-engine-3.0.2.tar.gz) = 3061b8d3f7870467e6fbeae8d4399211
2
SIZE (foomatic-db-engine-3.0.2.tar.gz) = 286367
(-)print/foomatic-db-engine/files/patch-Makefile.in (-29 lines)
Lines 1-29 Link Here
1
--- Makefile.in.orig	Thu Nov 20 21:08:05 2003
2
+++ Makefile.in	Wed Jul  7 16:27:06 2004
3
@@ -53,7 +53,7 @@
4
 ## C settings
5
 CC=@CC@
6
 CFLAGS=@CFLAGS@
7
-XML_CFLAGS=@XML_CFLAGS@
8
+XML_CPPFLAGS=@XML_CPPFLAGS@
9
 XML_LIBS=@XML_LIBS@
10
 
11
 ## Settings for Perl
12
@@ -64,7 +64,7 @@
13
 PERL_INSTALLDIRS=@PERL_INSTALLDIRS@
14
 
15
 # Genereal paths for all filter scripts
16
-EXEC_PATH=/usr/local/bin:/usr/bin:/bin
17
+EXEC_PATH=${LOCALBASE}/bin:/usr/bin:/bin
18
 LOG_PATH=/tmp
19
 
20
 # Paths for LPD and LPRng
21
@@ -221,7 +221,7 @@
22
 	$(CC) $(CFLAGS) -o foomatic-combo-xml foomatic-combo-xml.c
23
 
24
 foomatic-perl-data: foomatic-perl-data.c
25
-	$(CC) $(CFLAGS) $(XML_CFLAGS) $(XML_LIBS) -o foomatic-perl-data foomatic-perl-data.c
26
+	$(CC) $(CFLAGS) $(XML_CPPFLAGS) $(XML_LIBS) -o foomatic-perl-data foomatic-perl-data.c
27
 
28
 man:
29
 	chmod a+rx ./makeMan
(-)print/foomatic-db-engine/files/patch-configure.in (-15 lines)
Lines 1-15 Link Here
1
--- configure.in.orig	Wed Jul  7 05:46:16 2004
2
+++ configure.in	Wed Jul  7 05:45:39 2004
3
@@ -18,9 +18,9 @@
4
 dnl LIBS="$LIBS"
5
 
6
 AM_PATH_XML2(2.0.0)
7
-if test ! -n "$XML_LIBS" ; then
8
-  AM_PATH_XML(1.8.17)
9
-fi
10
+dnl if test ! -n "$XML_LIBS" ; then
11
+dnl  AM_PATH_XML(1.8.17)
12
+dnl fi
13
 dnl CFLAGS="$CFLAGS $XML_CFLAGS"
14
 dnl LIBS="$LIBS $XML_LIBS"
15
 
(-)print/foomatic-db-engine/files/patch-make_configure (-10 lines)
Lines 1-10 Link Here
1
--- make_configure.orig	Fri Oct 11 01:16:34 2002
2
+++ make_configure	Wed Jul  7 18:23:05 2004
3
@@ -1,3 +1,3 @@
4
-aclocal
5
-autoconf
6
-perl -p -i -e "s=\#include <xmlversion.h>=\#include <libxml/xmlversion.h>=g" configure
7
\ No newline at end of file
8
+aclocal15
9
+autoconf253
10
+perl -p -i -e "s=\#include <xmlversion.h>=\#include <libxml/xmlversion.h>=g" configure
(-)print/foomatic-db-engine/pkg-plist (-1 / +4 lines)
Lines 17-22 Link Here
17
sbin/foomatic-kitload
17
sbin/foomatic-kitload
18
sbin/foomatic-nonumericalids
18
sbin/foomatic-nonumericalids
19
sbin/foomatic-preferred-driver
19
sbin/foomatic-preferred-driver
20
sbin/foomatic-printermap-to-gimp-print-xml
20
sbin/foomatic-replaceoldprinterids
21
sbin/foomatic-replaceoldprinterids
21
share/foomatic/templates/pjl_enum_choice.xml
22
share/foomatic/templates/pjl_enum_choice.xml
22
share/foomatic/templates/pjl_enum_option.xml
23
share/foomatic/templates/pjl_enum_option.xml
Lines 24-27 Link Here
24
@dirrm %%SITE_PERL%%/Foomatic
25
@dirrm %%SITE_PERL%%/Foomatic
25
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Foomatic
26
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Foomatic
26
@dirrm share/foomatic/templates
27
@dirrm share/foomatic/templates
27
@dirrm share/foomatic
28
@unexec rmdir %D/share/foomatic 2>/dev/null || true
29
@unexec rmdir %D/etc/foomatic
30
@exec mkdir -p %D/etc/foomatic

Return to bug 72325