2012-05-17 06:11:23 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.127 2012/05/17 10:11:23 ajacoutot Exp $
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
COMMENT= Common Unix Printing System
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2012-05-17 06:11:23 -04:00
|
|
|
VERSION= 1.5.3
|
2010-03-31 12:20:02 -04:00
|
|
|
DISTNAME= cups-${VERSION}-source
|
2010-07-13 08:50:44 -04:00
|
|
|
PKGNAME= cups-${VERSION}
|
2009-10-10 08:39:29 -04:00
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
CATEGORIES= print sysutils
|
2008-11-19 00:28:30 -05:00
|
|
|
|
2012-02-16 17:12:08 -05:00
|
|
|
# XXX ghostscript needs to dlopen() libcupsimage.so.5 for the cups device.
|
2011-09-08 06:33:12 -04:00
|
|
|
SHARED_LIBS+= cupsimage 5.0
|
|
|
|
SHARED_LIBS+= cups 6.0
|
|
|
|
SHARED_LIBS+= cupscgi 1.0
|
|
|
|
SHARED_LIBS+= cupsdriver 1.0
|
|
|
|
SHARED_LIBS+= cupsmime 1.0
|
|
|
|
SHARED_LIBS+= cupsppdc 1.0
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
HOMEPAGE= http://www.cups.org/
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2008-10-28 08:33:32 -04:00
|
|
|
|
|
|
|
# GPLv2 - LGPLv2
|
2005-01-16 07:36:42 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2011-12-04 10:40:57 -05:00
|
|
|
WANTLIB += asn1 c crypto dbus-1 gssapi jpeg krb5 m png pthread
|
2012-05-17 06:11:23 -04:00
|
|
|
WANTLIB += ssl stdc++ tiff usb-1.0 z
|
2010-03-31 12:20:02 -04:00
|
|
|
|
|
|
|
MASTER_SITES= http://ftp.easysw.com/pub/cups/${VERSION}/ \
|
|
|
|
http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${VERSION}/ \
|
|
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${VERSION}/ \
|
|
|
|
ftp://ftp.easysw.com/pub/cups/${VERSION}/ \
|
|
|
|
ftp://ftp2.easysw.com/pub/cups/${VERSION}/ \
|
|
|
|
ftp://ftp3.easysw.com/pub/cups/${VERSION}/
|
|
|
|
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-source//}
|
|
|
|
|
2010-11-20 04:48:38 -05:00
|
|
|
BUILD_DEPENDS= devel/xdg-utils \
|
2010-03-31 12:20:02 -04:00
|
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
|
|
${MODGNU_AUTOCONF_DEPENDS}
|
|
|
|
|
2010-11-20 04:48:38 -05:00
|
|
|
LIB_DEPENDS= graphics/png \
|
|
|
|
graphics/tiff \
|
2012-05-17 06:11:23 -04:00
|
|
|
devel/libusb1 \
|
2010-11-20 04:48:38 -05:00
|
|
|
x11/dbus
|
2010-03-31 12:20:02 -04:00
|
|
|
|
|
|
|
LIBS_ENV= LIBcups_VERSION=${LIBcups_VERSION} \
|
|
|
|
LIBcupscgi_VERSION=${LIBcupscgi_VERSION} \
|
|
|
|
LIBcupsdriver_VERSION=${LIBcupsdriver_VERSION} \
|
|
|
|
LIBcupsimage_VERSION=${LIBcupsimage_VERSION} \
|
|
|
|
LIBcupsmime_VERSION=${LIBcupsmime_VERSION} \
|
|
|
|
LIBcupsppdc_VERSION=${LIBcupsppdc_VERSION} \
|
|
|
|
|
|
|
|
FAKE_FLAGS= BINMODE=${BINMODE} \
|
|
|
|
SHAREMODE=${SHAREMODE} \
|
|
|
|
DBUSDIR=${DESTDIR}${PREFIX}/share/examples/cups/dbus-1/system.d \
|
|
|
|
ICONDIR=${DESTDIR}${PREFIX}/share/icons \
|
2010-05-16 10:16:36 -04:00
|
|
|
MENUDIR=${DESTDIR}${PREFIX}/share/applications \
|
|
|
|
SERVERROOT=${DESTDIR}${PREFIX}/share/examples/cups
|
2010-03-31 12:20:02 -04:00
|
|
|
|
2012-05-17 06:11:23 -04:00
|
|
|
AUTOCONF_VERSION= 2.68
|
|
|
|
AUTOMAKE_VERSION= 1.10
|
2010-03-31 12:20:02 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2010-12-20 06:39:48 -05:00
|
|
|
USE_GROFF= Yes
|
2010-03-31 12:20:02 -04:00
|
|
|
|
2011-09-08 06:33:12 -04:00
|
|
|
MAKE_ENV= ${LIBS_ENV}
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
2011-11-13 08:54:04 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -pthread" \
|
2011-09-08 06:33:12 -04:00
|
|
|
${LIBS_ENV}
|
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-static \
|
|
|
|
--with-cups-group=_cups \
|
2012-02-16 17:12:08 -05:00
|
|
|
--with-cups-user=_cups \
|
2010-03-31 12:20:02 -04:00
|
|
|
--with-system-groups=wheel \
|
|
|
|
--with-optim="${CFLAGS}" \
|
2012-02-16 17:12:08 -05:00
|
|
|
--with-dbusdir=${SYSCONFDIR}/dbus-1 \
|
2012-02-17 02:45:10 -05:00
|
|
|
--with-pdftops=${LOCALBASE}/bin/gs \
|
2012-02-16 17:12:08 -05:00
|
|
|
--with-perl="/usr/bin/perl" \
|
|
|
|
--with-printcap=${SYSCONFDIR}/cups/printcap \
|
2010-03-31 12:20:02 -04:00
|
|
|
--with-smbconfigfile="samba:///${SYSCONFDIR}/samba/smb.conf" \
|
|
|
|
--enable-dbus \
|
|
|
|
--enable-raw-printing \
|
2010-12-20 06:39:48 -05:00
|
|
|
--enable-libusb \
|
2012-02-16 17:12:08 -05:00
|
|
|
--disable-cdsassl \
|
|
|
|
--disable-default-shared \
|
|
|
|
--disable-dnssd \
|
2010-03-31 12:20:02 -04:00
|
|
|
--disable-gnutls \
|
|
|
|
--disable-launchd \
|
2012-02-16 17:12:08 -05:00
|
|
|
--disable-pam \
|
2010-03-31 12:20:02 -04:00
|
|
|
--disable-pap \
|
|
|
|
--disable-slp \
|
2012-02-16 17:12:08 -05:00
|
|
|
--disable-tcp-wrappers
|
2010-03-31 12:20:02 -04:00
|
|
|
|
2007-03-26 12:33:05 -04:00
|
|
|
FLAVORS= ldap
|
2005-10-14 14:10:15 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2006-10-02 07:48:06 -04:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
2010-03-31 12:20:02 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
2010-11-20 04:48:38 -05:00
|
|
|
WANTLIB += ldap
|
|
|
|
LIB_DEPENDS+= databases/openldap
|
2006-10-02 07:48:06 -04:00
|
|
|
.else
|
2010-03-31 12:20:02 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-ldap
|
2006-10-02 07:48:06 -04:00
|
|
|
.endif
|
|
|
|
|
2009-05-08 16:00:57 -04:00
|
|
|
post-extract:
|
|
|
|
${INSTALL} -m 555 ${FILESDIR}/krb5-config ${WRKDIR}/bin
|
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
pre-configure:
|
2010-11-05 03:51:57 -04:00
|
|
|
cd ${WRKSRC} && AUTOMAKE_VERSION=${AUTOMAKE_VERSION} AUTOCONF_VERSION=${AUTOCONF_VERSION} aclocal -I config-scripts
|
|
|
|
cd ${WRKSRC} && AUTOMAKE_VERSION=${AUTOMAKE_VERSION} AUTOCONF_VERSION=${AUTOCONF_VERSION} autoconf -I config-scripts
|
2010-04-07 09:55:30 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/Makedefs.in
|
2010-03-31 12:20:02 -04:00
|
|
|
|
2005-01-16 07:36:42 -05:00
|
|
|
post-configure:
|
2010-03-31 12:20:02 -04:00
|
|
|
cd ${WRKBUILD} && perl -pi -e 's|\$${DESTDIR}||g' \
|
|
|
|
config.h cups-config man/*.man
|
2005-01-16 07:36:42 -05:00
|
|
|
|
|
|
|
post-install:
|
2010-05-16 10:16:36 -04:00
|
|
|
ln -sf ${LOCALBASE}/bin/smbspool \
|
|
|
|
${PREFIX}/libexec/cups/backend/smb
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2011-12-04 10:40:57 -05:00
|
|
|
# Remove desktop file and icons; we don't really need them (it's just a
|
|
|
|
# launcher for http://localhost:631 and we may actually want to
|
|
|
|
# configure a remote server); this is needed to prevent a dependency
|
|
|
|
# loop: cups->gtk+2,-guic->cups
|
|
|
|
rm -rf ${PREFIX}/share/icons
|
|
|
|
rm -rf ${PREFIX}/share/applications
|
|
|
|
|
2005-01-16 07:36:42 -05:00
|
|
|
.include <bsd.port.mk>
|