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

(-)cups/Makefile (-14 / +6 lines)
Lines 8-16 Link Here
8
#
8
#
9
9
10
PORTNAME=	cups
10
PORTNAME=	cups
11
PORTVERSION=	${CUPS_PORTVER}
11
PORTVERSION=	1.2.0
12
PORTREVISION=	${CUPS_PORTREV}
13
PORTEPOCH=	${CUPS_PORTEPOCH}
14
CATEGORIES=	print
12
CATEGORIES=	print
15
MASTER_SITES=	# empty
13
MASTER_SITES=	# empty
16
DISTFILES=	# empty
14
DISTFILES=	# empty
Lines 19-41 Link Here
19
MAINTAINER=	asa@agava.com
17
MAINTAINER=	asa@agava.com
20
COMMENT=	The Common UNIX Printing System: Metaport to install complete system
18
COMMENT=	The Common UNIX Printing System: Metaport to install complete system
21
19
22
LIB_DEPENDS+=	cups.2:${PORTSDIR}/print/cups-base
23
RUN_DEPENDS+=	espgs:${PORTSDIR}/print/cups-pstoraster \
24
		${LOCALBASE}/sbin/cupsaddsmb:${PORTSDIR}/print/cups-lpr
25
26
.if make(package)
20
.if make(package)
27
DEPENDS_TARGET="package"
21
DEPENDS_TARGET="package"
28
.endif # make(package)
22
.endif # make(package)
29
23
30
USE_PERL5=	yes
24
LIB_DEPENDS+=	cups.2:${PORTSDIR}/print/cups-base
25
RUN_DEPENDS+=	espgs:${PORTSDIR}/print/cups-pstoraster
26
31
NO_BUILD=	true
27
NO_BUILD=	true
32
28
33
do-patch:
29
do-build:
34
	${DO_NADA}
35
30
36
do-install:
31
do-install:
37
	${DO_NADA}
38
32
39
.include "${.CURDIR}/../../print/cups/Makefile.common"
33
.include <bsd.port.mk>
40
.include <bsd.port.pre.mk>
41
.include <bsd.port.post.mk>
(-)cups/Makefile.common (-93 lines)
Lines 1-93 Link Here
1
# ex:ts=8	-*-mode: makefile-*-
2
# Common file for CUPS ports
3
# $FreeBSD: ports/print/cups/Makefile.common,v 1.24 2006/01/09 16:34:18 novel Exp $
4
5
CUPS_MASTER_SITES=\
6
  ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${CUPS_VERSION}/ \
7
  ftp://ftp.ntua.gr/pub/gnu/cups/${CUPS_VERSION}/ \
8
  ftp://ftp.easysw.com/pub/cups/${CUPS_VERSION}/ \
9
  ftp://ftp.fisek.com.tr/pub/cups/${CUPS_VERSION}/ \
10
  ftp://ftp.mpg.goe.ni.schule.de/pub/internet/printing/cups/${CUPS_VERSION}/
11
12
CUPS_VERSION=	1.1.23
13
CUPS_REVISION=	0
14
CUPS_PORTVER=	${CUPS_VERSION}.${CUPS_REVISION}
15
CUPS_PORTREV=	1
16
CUPS_PORTEPOCH=	0
17
CUPS_FILESDIR=	${.CURDIR}/../../print/cups/files
18
CUPS_ETCDIR=	${PREFIX}/etc/cups
19
CUPS_RCDIR=	${PREFIX}/etc/rc.d
20
CUPS_DOCSDIR=	${PREFIX}/share/doc/cups
21
CUPS_SPOOLDIR=	/var/spool/cups
22
23
# file, dir ownership
24
CUPSGRP=	daemon
25
CUPSOWN=	root
26
27
######################################################################
28
# The rest of the file is for components (cups-base, cups-lpr) only.
29
######################################################################
30
31
.if ${PORTNAME} == "cups-base" || ${PORTNAME} == "cups-lpr"
32
33
MANLANG=	"" es fr
34
35
.if ${CUPS_REVISION} < 1
36
DISTNAME=	cups-${CUPS_VERSION}-source
37
.else
38
DISTNAME=	cups-${CUPS_VERSION}-${CUPS_REVISION}-source
39
.endif # ${CUPS_REVISION} < 1
40
41
DISTFILES=	${DISTNAME}.tar.bz2
42
43
MD5_FILE=	${.CURDIR}/../../print/cups/distinfo
44
WRKSRC=		${WRKDIR}/cups-${CUPS_VERSION}
45
46
LIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg \
47
		png.5:${PORTSDIR}/graphics/png \
48
		tiff.4:${PORTSDIR}/graphics/tiff
49
50
.if defined(WITH_PHP)
51
CONFIGURE_ARGS+=	--with-php
52
RUN_DEPENDS+=		php:${PORTSDIR}/lang/php4
53
.endif
54
55
.if defined(WITH_PYTHON)
56
CONFIGURE_ARGS+=	--with-python
57
USE_PYTHON=	yes
58
.endif
59
60
.if defined(WITH_CUPS_LIBPAPER)
61
CONFIGURE_ARGS+=	--enable-libpaper
62
LIB_DEPENDS+=	paper.2:${PORTSDIR}/print/libpaper
63
.endif
64
65
USE_BZIP2=	yes
66
USE_GMAKE=	yes
67
USE_PERL5_RUN=	yes
68
GNU_CONFIGURE=	yes
69
70
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
71
72
CONFIGURE_ARGS+=	--localstatedir=/var		\
73
			--disable-pam			\
74
			--disable-slp			\
75
			--with-cups-user=${CUPSOWN}	\
76
			--with-cups-group=${CUPSGRP}	\
77
			--with-docdir=${CUPS_DOCSDIR}	\
78
			--with-rcdir=${CUPS_RCDIR}
79
80
.if !defined(WITHOUT_GNUTLS)
81
CONFIGURE_ARGS+=	--enable-gnutls --disable-openssl
82
LIB_DEPENDS+=		gnutls-openssl.15:${PORTSDIR}/security/gnutls
83
.endif
84
85
CONFIGURE_ARGS+=	CPPFLAGS="-I.. -I${LOCALBASE}/include"
86
CONFIGURE_ARGS+=	DSOFLAGS="-Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib"
87
CONFIGURE_ARGS+=	LDFLAGS="-L${LOCALBASE}/lib"
88
89
pre-configure::
90
	@${ECHO_MSG} Configuring CUPS with options:
91
	@${ECHO_MSG} ${CONFIGURE_ARGS} | fmt
92
93
.endif # ${PORTNAME} != "cups"
(-)cups/pkg-descr (-3 lines)
Lines 19-25 Link Here
19
port.
19
port.
20
20
21
WWW: http://www.cups.org/
21
WWW: http://www.cups.org/
22
23
- AlanE (maintainer)
24
alane@freebsd.org, ports@geeksrus.net
25
[original text by greid@ukug.uk.freebsd.org]
22
[original text by greid@ukug.uk.freebsd.org]
(-)cups/pkg-message (-1 lines)
Lines 7-10 Link Here
7
have been installed in %%PREFIX%%/etc/cups/
7
have been installed in %%PREFIX%%/etc/cups/
8
8
9
======================================================================
9
======================================================================
10

Return to bug 97783