blob: 888f0c69ccb0d98c37b6e28970e8c9e168a339d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# ex:ts=8 -*-mode: makefile-*-
# Common file for CUPS ports
# $FreeBSD$
CUPS_MASTER_SITES=\
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${CUPS_VERSION}/ \
ftp://ftp.ntua.gr/pub/gnu/cups/${CUPS_VERSION}/ \
ftp://ftp.easysw.com/pub/cups/${CUPS_VERSION}/ \
ftp://ftp.fisek.com.tr/pub/cups/${CUPS_VERSION}/ \
ftp://ftp.mpg.goe.ni.schule.de/pub/internet/printing/cups/${CUPS_VERSION}/
CUPS_VERSION= 1.1.18
CUPS_REVISION= 0
CUPS_PORTVER= ${CUPS_VERSION}.${CUPS_REVISION}
CUPS_PORTREV= 4
CUPS_PORTEPOCH= 0
CUPS_FILESDIR= ${.CURDIR}/../../print/cups/files
CUPS_ETCDIR= ${PREFIX}/etc/cups
CUPS_RCDIR= ${PREFIX}/etc/rc.d
CUPS_DOCSDIR= ${PREFIX}/share/doc/cups
CUPS_SPOOLDIR= /var/spool/cups
# file, dir ownership
CUPSGRP= daemon
CUPSOWN= root
######################################################################
# The rest of the file is for components (cups-base, cups-lpr) only.
######################################################################
.if ${PORTNAME} == "cups-base" || ${PORTNAME} == "cups-lpr"
MANLANG= "" fr
.if ${CUPS_REVISION} < 1
DISTNAME= cups-${CUPS_VERSION}-source
.else
DISTNAME= cups-${CUPS_VERSION}-${CUPS_REVISION}-source
.endif # ${CUPS_REVISION} < 1
DISTFILES= ${DISTNAME}.tar.bz2
WRKSRC= ${WRKDIR}/cups-${CUPS_VERSION}
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff
WANT_AUTOCONF_VER= 253
USE_BZIP2= yes
USE_GMAKE= yes
USE_PERL5_RUN= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=/var \
--disable-pam \
--disable-slp \
--with-cups-user=${CUPSOWN} \
--with-cups-group=${CUPSGRP} \
--with-docdir=${CUPS_DOCSDIR} \
--with-rcdir=${CUPS_RCDIR}
CONFIGURE_ARGS+= CPPFLAGS="-I${PREFIX}/include"
CONFIGURE_ARGS+= CFLAGS="${CFLAGS} -I.. -I${PREFIX}/include"
CONFIGURE_ARGS+= CXXFLAGS="${CFLAGS} -I.. -I${PREFIX}/include"
CONFIGURE_ARGS+= DSOFLAGS="-Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib"
CONFIGURE_ARGS+= LDFLAGS="-L${PREFIX}/lib"
pre-configure::
@${ECHO_CMD} Configuring CUPS with options:
@${ECHO_CMD} ${CONFIGURE_ARGS} | fmt
.endif # ${PORTNAME} != "cups"
|