2010-04-18 14:02:58 +02:00
|
|
|
# $NetBSD: Makefile,v 1.147 2010/04/18 12:02:58 obache Exp $
|
2002-10-21 01:33:42 +02:00
|
|
|
#
|
|
|
|
# The CUPS author is very good about taking back changes into the main
|
|
|
|
# CUPS distribution. The correct place to send patches or bug-fixes is:
|
|
|
|
# cups-bugs@cups.org.
|
1999-11-29 03:18:53 +01:00
|
|
|
|
2004-11-08 17:30:59 +01:00
|
|
|
DISTNAME= cups-${DIST_VERS}-source
|
|
|
|
PKGNAME= cups-${VERS}
|
2009-08-05 19:19:16 +02:00
|
|
|
BASE_VERS= 1.3.11
|
2004-11-08 17:30:59 +01:00
|
|
|
DIST_VERS= ${BASE_VERS}
|
2009-11-16 18:12:54 +01:00
|
|
|
DIST_SUBDIR= cups-${DIST_VERS} # temp fix for updated distfile
|
2004-11-08 17:30:59 +01:00
|
|
|
VERS= ${DIST_VERS:S/-/./g}
|
2010-01-18 10:58:37 +01:00
|
|
|
PKGREVISION= 3
|
2004-11-08 17:30:59 +01:00
|
|
|
CATEGORIES= print
|
2005-01-06 08:26:39 +01:00
|
|
|
MASTER_SITES= http://ftp.easysw.com/pub/cups/${BASE_VERS}/ \
|
2004-11-08 17:30:59 +01:00
|
|
|
ftp://ftp.ntua.gr/pub/gnu/cups/${BASE_VERS}/ \
|
|
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${BASE_VERS}/ \
|
|
|
|
ftp://ftp.fisek.com.tr/pub/cups/${BASE_VERS}/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1999-11-29 03:18:53 +01:00
|
|
|
|
2010-03-21 17:29:38 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-11-08 17:30:59 +01:00
|
|
|
HOMEPAGE= http://www.cups.org/
|
|
|
|
COMMENT= Common UNIX Printing System
|
1999-11-29 03:18:53 +01:00
|
|
|
|
2007-11-08 21:03:21 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-11-08 17:30:59 +01:00
|
|
|
CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
|
2000-12-28 01:09:38 +01:00
|
|
|
|
2004-06-23 13:04:37 +02:00
|
|
|
#PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2004-01-06 08:05:24 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/cups-${BASE_VERS}
|
2003-05-28 04:33:59 +02:00
|
|
|
UNLIMIT_RESOURCES= datasize memorysize
|
2004-02-13 16:42:04 +01:00
|
|
|
USE_LANGUAGES= c c++ # pdftops is a C++ application
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2006-10-05 03:13:00 +02:00
|
|
|
USE_TOOLS+= aclocal autoconf automake gmake
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_LIBTOOL= yes
|
2004-05-17 12:40:45 +02:00
|
|
|
INSTALL_TARGET= installcups
|
2006-07-05 22:12:06 +02:00
|
|
|
# patch-a[jkl] were added for 2.60
|
|
|
|
AUTOCONF_REQD= 2.60
|
2003-05-28 04:33:59 +02:00
|
|
|
|
2003-01-28 23:03:00 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-02-28 01:31:37 +01:00
|
|
|
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
Update cups to 1.2.8
ok'ed jlam a while back.
CUPS 1.2.8 adds a French localization, updates the Japanese and Spanish
localizations, and fixes several web interface, printing, and networking
bugs.
CUPS 1.2.7 adds several Mac OS X improvements, implements timeouts in the
SSL negotiation code, and fixes the bounding box generated by the PostScript
filter, bidirectional support in the USB backend, and another case where the
lpstat command could hang.
CUPS 1.2.6 fixes some compile errors, localization of the web interface on
Mac OS X, bugs in the lpc and lpstat commands, and backchannel support in
the parallel backend.
CUPS 1.2.5 fixes minor printing, networking, and documentation issues and
adds support for older versions of DBUS and a translation for Estonian.
CUPS 1.2.4 fixes a number of web interface, scheduler, and CUPS API
issues.
CUPS 1.2.3 fixes a number of web interface, networking, remote printing,
and CUPS API issues.
CUPS 1.2.2 fixes several build, platform, notification, and printing bugs.
CUPS 1.2.1 fixes several build, platform, and printing bugs.
CUPS 1.2.0 is the first stable feature release in the 1.2.x series and
includes over 90 new features and changes since CUPS 1.1.23, including a
greatly improved web interface and "plug-and-print" support for many local
and network printers.
2007-03-14 13:29:03 +01:00
|
|
|
CONFIGURE_ARGS+= --with-cachedir=${VARBASE:Q}/cache/cups
|
2005-01-06 08:26:39 +01:00
|
|
|
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups
|
2002-12-19 23:24:51 +01:00
|
|
|
CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-rcdir=${RCD_SCRIPTS_DIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP:Q}
|
2003-06-04 08:08:43 +02:00
|
|
|
CONFIGURE_ARGS+= --with-manext=bsd
|
2006-12-01 21:51:47 +01:00
|
|
|
CONFIGURE_ARGS+= --without-perl
|
2008-01-23 00:58:13 +01:00
|
|
|
CONFIGURE_ARGS+= --without-icondir
|
|
|
|
CONFIGURE_ARGS+= --without-menudir
|
2004-05-17 12:40:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libtool
|
2000-12-21 15:59:37 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
Update cups to 1.2.8
ok'ed jlam a while back.
CUPS 1.2.8 adds a French localization, updates the Japanese and Spanish
localizations, and fixes several web interface, printing, and networking
bugs.
CUPS 1.2.7 adds several Mac OS X improvements, implements timeouts in the
SSL negotiation code, and fixes the bounding box generated by the PostScript
filter, bidirectional support in the USB backend, and another case where the
lpstat command could hang.
CUPS 1.2.6 fixes some compile errors, localization of the web interface on
Mac OS X, bugs in the lpc and lpstat commands, and backchannel support in
the parallel backend.
CUPS 1.2.5 fixes minor printing, networking, and documentation issues and
adds support for older versions of DBUS and a translation for Estonian.
CUPS 1.2.4 fixes a number of web interface, scheduler, and CUPS API
issues.
CUPS 1.2.3 fixes a number of web interface, networking, remote printing,
and CUPS API issues.
CUPS 1.2.2 fixes several build, platform, notification, and printing bugs.
CUPS 1.2.1 fixes several build, platform, and printing bugs.
CUPS 1.2.0 is the first stable feature release in the 1.2.x series and
includes over 90 new features and changes since CUPS 1.1.23, including a
greatly improved web interface and "plug-and-print" support for many local
and network printers.
2007-03-14 13:29:03 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-gnutls=no
|
|
|
|
CONFIGURE_ARGS+= --enable-openssl
|
|
|
|
CONFIGURE_ARGS+= --without-php
|
2010-04-18 14:02:58 +02:00
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
CONFIGURE_ARGS+= --without-java
|
Update cups to 1.2.8
ok'ed jlam a while back.
CUPS 1.2.8 adds a French localization, updates the Japanese and Spanish
localizations, and fixes several web interface, printing, and networking
bugs.
CUPS 1.2.7 adds several Mac OS X improvements, implements timeouts in the
SSL negotiation code, and fixes the bounding box generated by the PostScript
filter, bidirectional support in the USB backend, and another case where the
lpstat command could hang.
CUPS 1.2.6 fixes some compile errors, localization of the web interface on
Mac OS X, bugs in the lpc and lpstat commands, and backchannel support in
the parallel backend.
CUPS 1.2.5 fixes minor printing, networking, and documentation issues and
adds support for older versions of DBUS and a translation for Estonian.
CUPS 1.2.4 fixes a number of web interface, scheduler, and CUPS API
issues.
CUPS 1.2.3 fixes a number of web interface, networking, remote printing,
and CUPS API issues.
CUPS 1.2.2 fixes several build, platform, notification, and printing bugs.
CUPS 1.2.1 fixes several build, platform, and printing bugs.
CUPS 1.2.0 is the first stable feature release in the 1.2.x series and
includes over 90 new features and changes since CUPS 1.1.23, including a
greatly improved web interface and "plug-and-print" support for many local
and network printers.
2007-03-14 13:29:03 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q}
|
2000-12-21 15:59:37 +01:00
|
|
|
|
2000-12-07 21:33:05 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2008-01-23 00:58:13 +01:00
|
|
|
.include "options.mk"
|
2006-05-03 17:34:36 +02:00
|
|
|
|
2000-12-11 09:53:07 +01:00
|
|
|
# CUPS_USER username of the CUPS administrator
|
|
|
|
# CUPS_GROUP group of the CUPS administrator
|
2000-12-07 21:33:05 +01:00
|
|
|
#
|
|
|
|
CUPS_USER?= lp
|
|
|
|
CUPS_GROUP?= sys
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= CUPS_USER=${CUPS_USER:Q}
|
|
|
|
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP:Q}
|
2000-12-07 21:33:05 +01:00
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= CUPS_GROUP
|
|
|
|
PKG_USERS_VARS+= CUPS_USER
|
2000-12-09 06:53:06 +01:00
|
|
|
|
2007-10-08 13:39:47 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2000-12-21 15:59:37 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/cups
|
|
|
|
EGDIR= ${PREFIX}/share/examples/cups
|
2002-01-06 20:41:28 +01:00
|
|
|
PKG_SYSCONFSUBDIR= cups
|
|
|
|
CUPS_CONFDIR= ${PKG_SYSCONFDIR}
|
2007-10-08 13:39:47 +02:00
|
|
|
CUPS_LOGDIR= ${VARBASE}/log/cups
|
|
|
|
CUPS_REQUESTS= ${VARBASE}/spool/cups
|
2000-12-21 15:59:37 +01:00
|
|
|
|
2001-12-15 00:18:15 +01:00
|
|
|
PKG_GROUPS= ${CUPS_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS= ${CUPS_USER}:${CUPS_GROUP}
|
|
|
|
PKG_GECOS.${CUPS_USER}= Common UNIX Printing System user
|
|
|
|
PKG_SHELL.${CUPS_USER}= ${SH}
|
2001-11-19 17:23:08 +01:00
|
|
|
|
2007-06-15 20:15:06 +02:00
|
|
|
SPECIAL_PERMS= ${PREFIX}/bin/lppasswd ${CUPS_USER} ${CUPS_GROUP} 4555
|
Update cups to 1.2.8
ok'ed jlam a while back.
CUPS 1.2.8 adds a French localization, updates the Japanese and Spanish
localizations, and fixes several web interface, printing, and networking
bugs.
CUPS 1.2.7 adds several Mac OS X improvements, implements timeouts in the
SSL negotiation code, and fixes the bounding box generated by the PostScript
filter, bidirectional support in the USB backend, and another case where the
lpstat command could hang.
CUPS 1.2.6 fixes some compile errors, localization of the web interface on
Mac OS X, bugs in the lpc and lpstat commands, and backchannel support in
the parallel backend.
CUPS 1.2.5 fixes minor printing, networking, and documentation issues and
adds support for older versions of DBUS and a translation for Estonian.
CUPS 1.2.4 fixes a number of web interface, scheduler, and CUPS API
issues.
CUPS 1.2.3 fixes a number of web interface, networking, remote printing,
and CUPS API issues.
CUPS 1.2.2 fixes several build, platform, notification, and printing bugs.
CUPS 1.2.1 fixes several build, platform, and printing bugs.
CUPS 1.2.0 is the first stable feature release in the 1.2.x series and
includes over 90 new features and changes since CUPS 1.1.23, including a
greatly improved web interface and "plug-and-print" support for many local
and network printers.
2007-03-14 13:29:03 +01:00
|
|
|
CONF_FILES= ${EGDIR}/cupsd.conf ${CUPS_CONFDIR}/cupsd.conf
|
2005-08-19 20:12:36 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/mime.convs ${CUPS_CONFDIR}/mime.convs
|
|
|
|
CONF_FILES+= ${EGDIR}/mime.types ${CUPS_CONFDIR}/mime.types
|
2001-12-15 00:18:15 +01:00
|
|
|
RCD_SCRIPTS= cupsd
|
2001-11-19 17:23:08 +01:00
|
|
|
|
2001-12-15 00:18:15 +01:00
|
|
|
OWN_DIRS= ${CUPS_CONFDIR}
|
|
|
|
OWN_DIRS+= ${CUPS_CONFDIR}/interfaces
|
|
|
|
OWN_DIRS+= ${CUPS_CONFDIR}/ppd
|
Update cups to 1.2.8
ok'ed jlam a while back.
CUPS 1.2.8 adds a French localization, updates the Japanese and Spanish
localizations, and fixes several web interface, printing, and networking
bugs.
CUPS 1.2.7 adds several Mac OS X improvements, implements timeouts in the
SSL negotiation code, and fixes the bounding box generated by the PostScript
filter, bidirectional support in the USB backend, and another case where the
lpstat command could hang.
CUPS 1.2.6 fixes some compile errors, localization of the web interface on
Mac OS X, bugs in the lpc and lpstat commands, and backchannel support in
the parallel backend.
CUPS 1.2.5 fixes minor printing, networking, and documentation issues and
adds support for older versions of DBUS and a translation for Estonian.
CUPS 1.2.4 fixes a number of web interface, scheduler, and CUPS API
issues.
CUPS 1.2.3 fixes a number of web interface, networking, remote printing,
and CUPS API issues.
CUPS 1.2.2 fixes several build, platform, notification, and printing bugs.
CUPS 1.2.1 fixes several build, platform, and printing bugs.
CUPS 1.2.0 is the first stable feature release in the 1.2.x series and
includes over 90 new features and changes since CUPS 1.1.23, including a
greatly improved web interface and "plug-and-print" support for many local
and network printers.
2007-03-14 13:29:03 +01:00
|
|
|
OWN_DIRS+= ${PREFIX}/libexec/cups/driver
|
2001-12-15 00:18:15 +01:00
|
|
|
OWN_DIRS+= ${CUPS_LOGDIR}
|
|
|
|
OWN_DIRS_PERMS= ${CUPS_CONFDIR}/certs ${CUPS_USER} ${CUPS_GROUP} 0711
|
Update cups to 1.2.8
ok'ed jlam a while back.
CUPS 1.2.8 adds a French localization, updates the Japanese and Spanish
localizations, and fixes several web interface, printing, and networking
bugs.
CUPS 1.2.7 adds several Mac OS X improvements, implements timeouts in the
SSL negotiation code, and fixes the bounding box generated by the PostScript
filter, bidirectional support in the USB backend, and another case where the
lpstat command could hang.
CUPS 1.2.6 fixes some compile errors, localization of the web interface on
Mac OS X, bugs in the lpc and lpstat commands, and backchannel support in
the parallel backend.
CUPS 1.2.5 fixes minor printing, networking, and documentation issues and
adds support for older versions of DBUS and a translation for Estonian.
CUPS 1.2.4 fixes a number of web interface, scheduler, and CUPS API
issues.
CUPS 1.2.3 fixes a number of web interface, networking, remote printing,
and CUPS API issues.
CUPS 1.2.2 fixes several build, platform, notification, and printing bugs.
CUPS 1.2.1 fixes several build, platform, and printing bugs.
CUPS 1.2.0 is the first stable feature release in the 1.2.x series and
includes over 90 new features and changes since CUPS 1.1.23, including a
greatly improved web interface and "plug-and-print" support for many local
and network printers.
2007-03-14 13:29:03 +01:00
|
|
|
OWN_DIRS_PERMS+= ${CUPS_CONFDIR}/ssl ${CUPS_USER} ${CUPS_GROUP} 0700
|
2003-05-28 04:33:59 +02:00
|
|
|
OWN_DIRS_PERMS+= ${CUPS_REQUESTS} ${CUPS_USER} ${CUPS_GROUP} 0710
|
|
|
|
OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${CUPS_USER} ${CUPS_GROUP} 1770
|
Update cups to 1.2.8
ok'ed jlam a while back.
CUPS 1.2.8 adds a French localization, updates the Japanese and Spanish
localizations, and fixes several web interface, printing, and networking
bugs.
CUPS 1.2.7 adds several Mac OS X improvements, implements timeouts in the
SSL negotiation code, and fixes the bounding box generated by the PostScript
filter, bidirectional support in the USB backend, and another case where the
lpstat command could hang.
CUPS 1.2.6 fixes some compile errors, localization of the web interface on
Mac OS X, bugs in the lpc and lpstat commands, and backchannel support in
the parallel backend.
CUPS 1.2.5 fixes minor printing, networking, and documentation issues and
adds support for older versions of DBUS and a translation for Estonian.
CUPS 1.2.4 fixes a number of web interface, scheduler, and CUPS API
issues.
CUPS 1.2.3 fixes a number of web interface, networking, remote printing,
and CUPS API issues.
CUPS 1.2.2 fixes several build, platform, notification, and printing bugs.
CUPS 1.2.1 fixes several build, platform, and printing bugs.
CUPS 1.2.0 is the first stable feature release in the 1.2.x series and
includes over 90 new features and changes since CUPS 1.1.23, including a
greatly improved web interface and "plug-and-print" support for many local
and network printers.
2007-03-14 13:29:03 +01:00
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/cache/cups ${CUPS_USER} ${CUPS_GROUP} 0775
|
2001-06-19 10:39:33 +02:00
|
|
|
|
2004-11-30 18:41:52 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
|
2006-01-06 01:19:44 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= ${WRKDIR}/cups.pam
|
|
|
|
SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
|
2007-10-22 13:56:46 +02:00
|
|
|
SUBST_CLASSES+= rpathfix
|
|
|
|
SUBST_FILES.rpathfix= cups-config.in
|
|
|
|
SUBST_MESSAGE.rpathfix= Adding rpath to cups-config.
|
|
|
|
SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${LOCALBASE}/lib|g'
|
|
|
|
SUBST_STAGE.rpathfix= post-patch
|
|
|
|
|
2007-11-08 21:03:21 +01:00
|
|
|
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
|
|
|
|
INSTALL_ENV+= DSTROOT=${DESTDIR:Q}
|
|
|
|
|
2002-12-19 23:24:51 +01:00
|
|
|
pre-configure:
|
2006-10-05 03:13:00 +02:00
|
|
|
cd ${WRKSRC} && aclocal && autoconf
|
2002-12-19 23:24:51 +01:00
|
|
|
|
2006-01-06 01:19:44 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
|
2000-12-07 21:33:05 +01:00
|
|
|
|
1999-11-29 03:18:53 +01:00
|
|
|
post-install:
|
2007-11-08 21:03:21 +01:00
|
|
|
for file in LICENSE.txt README.txt; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${file} \
|
|
|
|
${DESTDIR}${DOCDIR}/$${file}; \
|
2000-12-21 15:59:37 +01:00
|
|
|
done
|
2008-01-23 00:58:13 +01:00
|
|
|
cd ${WRKSRC}/conf; for file in *.conf mime.convs mime.types; do \
|
2002-10-20 20:57:37 +02:00
|
|
|
case $${file} in \
|
|
|
|
pam.conf) \
|
|
|
|
;; \
|
|
|
|
*) \
|
2007-11-08 21:03:21 +01:00
|
|
|
${INSTALL_DATA} $${file} \
|
|
|
|
${DESTDIR}${EGDIR}/$${file}; \
|
2002-10-20 20:57:37 +02:00
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done
|
2005-05-31 13:24:32 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
2007-11-08 21:03:21 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR}
|
2000-12-12 17:03:13 +01:00
|
|
|
.endif
|
1999-11-29 03:18:53 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|