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" |