2010-04-01 03:14:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.70 2010/04/01 07:14:43 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
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
VERSION= 1.4.3
|
|
|
|
DISTNAME= cups-${VERSION}-source
|
2010-04-01 03:14:43 -04:00
|
|
|
PKGNAME= cups-${VERSION}p0
|
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
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
# XXX ghostscript needs to dlopen() libcupsimage.so.4
|
|
|
|
SHARED_LIBS+= cupsimage 4.0
|
|
|
|
SHARED_LIBS+= cups 5.0
|
|
|
|
SHARED_LIBS+= cupscgi 0.0
|
|
|
|
SHARED_LIBS+= cupsdriver 0.0
|
|
|
|
SHARED_LIBS+= cupsmime 0.0
|
|
|
|
SHARED_LIBS+= cupsppdc 0.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
|
|
|
|
|
2010-03-31 12:20:02 -04:00
|
|
|
WANTLIB += asn1 c crypto dbus-1 gssapi jpeg krb5 m pthread ssl
|
|
|
|
WANTLIB += stdc++ z
|
|
|
|
|
|
|
|
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//}
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ::devel/xdg-utils \
|
|
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
|
|
${MODGNU_AUTOCONF_DEPENDS}
|
|
|
|
|
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils \
|
|
|
|
::devel/xdg-utils
|
|
|
|
|
|
|
|
LIB_DEPENDS= png.>=3::graphics/png \
|
|
|
|
tiff.>=35::graphics/tiff \
|
|
|
|
avahi-client,avahi-common::net/avahi
|
|
|
|
|
|
|
|
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} \
|
|
|
|
|
|
|
|
MAKE_ENV= ${LIBS_ENV}
|
|
|
|
|
|
|
|
FAKE_FLAGS= BINMODE=${BINMODE} \
|
|
|
|
SHAREMODE=${SHAREMODE} \
|
|
|
|
DBUSDIR=${DESTDIR}${PREFIX}/share/examples/cups/dbus-1/system.d \
|
|
|
|
ICONDIR=${DESTDIR}${PREFIX}/share/icons \
|
|
|
|
MENUDIR=${DESTDIR}${PREFIX}/share/applications
|
|
|
|
|
|
|
|
AUTOCONF_VERSION= 2.62
|
|
|
|
AUTOMAKE_VERSION= 1.9
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-static \
|
|
|
|
--with-cups-user=_cups \
|
|
|
|
--with-cups-group=_cups \
|
|
|
|
--with-system-groups=wheel \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--without-java \
|
|
|
|
--with-perl="/usr/bin/perl" \
|
|
|
|
--with-optim="${CFLAGS}" \
|
|
|
|
--with-smbconfigfile="samba:///${SYSCONFDIR}/samba/smb.conf" \
|
|
|
|
--with-pdftops="${LOCALBASE}/bin/gs" \
|
|
|
|
--without-php \
|
|
|
|
--without-python \
|
|
|
|
--enable-avahi \
|
|
|
|
--enable-image \
|
|
|
|
--enable-tcp-wrappers \
|
|
|
|
--enable-dbus \
|
|
|
|
--enable-texttops \
|
|
|
|
--enable-raw-printing \
|
|
|
|
--enable-gssapi \
|
|
|
|
--enable-openssl \
|
|
|
|
--disable-gnutls \
|
|
|
|
--disable-libusb \
|
|
|
|
--disable-pam \
|
|
|
|
--disable-launchd \
|
|
|
|
--disable-pap \
|
|
|
|
--disable-slp \
|
|
|
|
--disable-default-shared
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -pthread" \
|
|
|
|
${LIBS_ENV}
|
2005-01-16 07:36:42 -05:00
|
|
|
|
2009-11-22 11:47:35 -05:00
|
|
|
# gcc 3.3.5 internal compiler error
|
2010-02-09 07:23:59 -05:00
|
|
|
.if ${MACHINE_ARCH:Mmips64*}
|
2009-11-22 11:47:35 -05:00
|
|
|
CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
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-04-01 03:14:43 -04:00
|
|
|
LIB_DEPENDS+= ldap::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:
|
|
|
|
cd ${WRKSRC} && AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal -I config-scripts
|
|
|
|
cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} autoconf -I config-scripts
|
|
|
|
|
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-03-31 12:20:02 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cups/
|
|
|
|
cd ${WRKINST}${SYSCONFDIR}/cups/ && mv * \
|
2005-01-16 07:36:42 -05:00
|
|
|
${PREFIX}/share/examples/cups
|
2010-03-31 12:20:02 -04:00
|
|
|
@rmdir ${WRKINST}${SYSCONFDIR}/cups/
|
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
|
|
|
|
|
2009-12-10 05:57:06 -05:00
|
|
|
# Create a link to foomatic drivers database ; we do it here instead of
|
|
|
|
# using --enable-ppds-to-cups in the foomatic-db port so that we don't
|
|
|
|
# need to depend on it (other printer driver packages install PPDs under
|
|
|
|
# ${PREFIX}/share/foomatic/db/source/PPD too, e.g. foo2zjs, hpijs...).
|
|
|
|
ln -sf ${LOCALBASE}/share/foomatic/db/source/PPD \
|
|
|
|
${PREFIX}/share/cups/model/foomatic-db-ppds
|
|
|
|
|
2005-01-16 07:36:42 -05:00
|
|
|
.include <bsd.port.mk>
|