2009-04-27 04:25:39 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.45 2009/04/27 08:25:39 bernd Exp $
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2007-09-09 10:53:05 -04:00
|
|
|
COMMENT= Common Unix Printing System
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2009-04-27 04:25:39 -04:00
|
|
|
VERSION= 1.3.10
|
2005-01-16 07:36:42 -05:00
|
|
|
DISTNAME= cups-${VERSION}-source
|
2009-04-27 04:25:39 -04:00
|
|
|
PKGNAME= cups-${VERSION}
|
2005-01-16 07:36:42 -05:00
|
|
|
CATEGORIES= print sysutils
|
2008-11-19 00:28:30 -05:00
|
|
|
|
2009-04-27 04:25:39 -04:00
|
|
|
SHARED_LIBS+= cups 4.0
|
|
|
|
# XXX ghostscript needs to dlopen() libcupsimage.so.3
|
|
|
|
SHARED_LIBS+= cupsimage 3.0
|
2005-01-16 07:36:42 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.cups.org/
|
|
|
|
|
2009-04-09 04:47:24 -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
|
|
|
|
|
2009-04-27 04:25:39 -04:00
|
|
|
WANTLIB += c gcrypt gpg-error jpeg m pthread tasn1 z
|
2005-01-16 07:36:42 -05: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
|
|
|
|
|
2009-04-09 04:47:24 -04:00
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2008-10-30 11:07:05 -04:00
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils \
|
|
|
|
::devel/xdg-utils
|
2006-08-03 19:28:11 -04:00
|
|
|
LIB_DEPENDS= png.>=3::graphics/png \
|
2009-03-23 11:04:41 -04:00
|
|
|
tiff.>=35::graphics/tiff \
|
2009-04-09 04:47:24 -04:00
|
|
|
dbus-1.>=7::x11/dbus \
|
|
|
|
gnutls.>=14::security/gnutls
|
2005-01-16 07:36:42 -05:00
|
|
|
|
|
|
|
FAKE_FLAGS= BINMODE=${BINMODE} \
|
2009-03-23 11:04:41 -04:00
|
|
|
SHAREMODE=${SHAREMODE} \
|
2009-04-27 04:25:39 -04:00
|
|
|
ICONDIR=${DESTDIR}${PREFIX}/share/icons \
|
|
|
|
MENUDIR=${DESTDIR}${PREFIX}/share/applications \
|
|
|
|
DBUSDIR=${WRKINST}/${TRUEPREFIX}/share/examples/cups/dbus-1/system.d \
|
|
|
|
PDFTOPS="pdftops"
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2006-02-05 05:20:57 -05:00
|
|
|
MAKE_ENV+= LIBcups_VERSION=${LIBcups_VERSION} \
|
|
|
|
LIBcupsimage_VERSION=${LIBcupsimage_VERSION}
|
|
|
|
|
2009-03-23 11:04:41 -04:00
|
|
|
# UTF8 desktop file patch
|
|
|
|
DIFF_ARGS= -a
|
|
|
|
|
2005-01-16 07:36:42 -05:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
AUTOCONF_VERSION= 2.59
|
|
|
|
CONFIGURE_ARGS+= --with-cups-user=_cups \
|
|
|
|
--with-cups-group=_cups \
|
|
|
|
${CONFIGURE_SHARED} \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--without-java \
|
|
|
|
--without-perl \
|
|
|
|
--without-php \
|
2007-03-26 12:33:05 -04:00
|
|
|
--without-python \
|
2009-04-27 04:25:39 -04:00
|
|
|
--enable-dbus \
|
|
|
|
--disable-pdftops
|
2009-04-09 04:47:24 -04:00
|
|
|
|
|
|
|
# XXX we need to use GnuTLS instead of OpenSSL because of conflicting
|
|
|
|
# symbols with Mozilla NSS which can lead to crashes
|
|
|
|
CONFIGURE_ARGS+= --enable-gnutls=yes
|
2005-01-16 07:36:42 -05:00
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
|
|
|
DSOFLAGS="-L${LOCALBASE}/lib" \
|
2009-03-23 11:04:41 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -pthread" \
|
2006-02-05 05:20:57 -05:00
|
|
|
LIBcups_VERSION=${LIBcups_VERSION} \
|
2009-04-09 04:47:24 -04:00
|
|
|
LIBcupsimage_VERSION=${LIBcupsimage_VERSION} \
|
2009-04-27 04:25:39 -04:00
|
|
|
LIBGNUTLSCONFIG="pkg-config gnutls" \
|
|
|
|
ac_cv_path_CUPS_GHOSTSCRIPT="${LOCALBASE}/bin/gs"
|
2005-01-16 07:36:42 -05:00
|
|
|
|
|
|
|
CFLAGS+= "-I${LOCALBASE}/include" \
|
|
|
|
"-I${LOCALBASE}/include/libpng"
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-source//}
|
2006-10-01 06:43:38 -04:00
|
|
|
USE_GMAKE= Yes
|
2005-01-16 07:36:42 -05:00
|
|
|
|
|
|
|
REGRESS_FLAGS= LOCALBASE=${LOCALBASE}
|
|
|
|
|
|
|
|
REGRESS_DEPENDS= ::print/htmldoc
|
|
|
|
REGRESS_IS_INTERACTIVE= Yes
|
|
|
|
|
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}
|
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
|
|
|
LIB_DEPENDS+= ldap,lber::databases/openldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
.endif
|
|
|
|
|
2005-01-16 07:36:42 -05:00
|
|
|
post-configure:
|
2006-10-01 06:43:38 -04:00
|
|
|
cd ${WRKBUILD} && perl -pi -e 's|\$${DESTDIR}||g' init/cups.sh \
|
|
|
|
config.h cups-config conf/cupsd.conf man/*.man
|
2008-10-30 09:26:41 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/Makefile
|
2005-01-16 07:36:42 -05:00
|
|
|
|
|
|
|
post-install:
|
2009-04-27 04:25:39 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cups/init
|
|
|
|
cd ${WRKINST}${SYSCONFDIR}/cups && cp -R * \
|
2005-01-16 07:36:42 -05:00
|
|
|
${PREFIX}/share/examples/cups
|
2009-04-27 04:25:39 -04:00
|
|
|
rm -r ${WRKINST}${SYSCONFDIR}/cups ${WRKINST}/var/run \
|
2006-10-01 12:02:24 -04:00
|
|
|
${WRKINST}/var/cache
|
2009-04-27 04:25:39 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/init/cups.sh ${PREFIX}/share/cups/init
|
2005-01-16 07:36:42 -05:00
|
|
|
.for file in cups-enable cups-disable
|
2009-04-27 04:25:39 -04:00
|
|
|
cp ${FILESDIR}/${file} ${WRKBUILD}
|
|
|
|
${SUBST_CMD} ${WRKBUILD}/${file}
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/${file} ${PREFIX}/sbin
|
2005-01-16 07:36:42 -05:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|