diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2010-02-08 19:40:24 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2010-02-08 19:40:24 +0000 |
commit | 8fed68f53b521e89373b6fdad77d982883aaf544 (patch) | |
tree | bb35a58eefdb3df5913714e959845052734cf93d /print/openprinting/Makefile | |
parent | 556b88566f0d9229c7883bf2227284fd12f7fb47 (diff) |
Notes
Diffstat (limited to 'print/openprinting/Makefile')
-rw-r--r-- | print/openprinting/Makefile | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/print/openprinting/Makefile b/print/openprinting/Makefile new file mode 100644 index 000000000000..304053619b05 --- /dev/null +++ b/print/openprinting/Makefile @@ -0,0 +1,115 @@ +# New ports collection makefile for: openprinting +# Date created: 6 February 2010 +# Whom: Bruce M Simpson <bms@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= openprinting +PORTVERSION= 1.0 +CATEGORIES= print net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR=\ + openprinting/papi/1.0%20Beta +DISTNAME= papi-${PORTVERSION}_beta +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= bms@FreeBSD.org +COMMENT= Sun's implementation of the OpenPrinting API (PAPI) + +WRKSRC= ${WRKDIR}/papi-${PORTVERSION}_beta + +USE_BZIP2= yes +USE_GMAKE= yes +USE_GETTEXT= yes +USE_ICONV= yes + +USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/libexec + +GNU_CONFIGURE= yes +MAKE_JOBS_SAFE= yes + +USE_AUTOTOOLS= aclocal:19 autoconf:262 autoheader:262 automake:19 libtool:22 +ACLOCAL_ARGS+= -I ${LOCALBASE}/share/aclocal +AUTOMAKE_ARGS+= -a -c + +# Really disable building static libraries; the package does not use +# its own libtool, and we have to tell it to stop. +# Static libraries are not very useful in this package. +MAKE_ARGS= LIBTOOL="${LIBTOOL} --tag=disable-static" + +# TODO: Get mod_ipp to actually work; Sun's example seems to be broken +# under both Apache 1.3/2.0, this could be a papi issue; does not build +# w/Apache 2.2. +# TODO: Fix Apache module install target to instead use APXS +# from this file; it is intended only as an example. +# TODO: CUPS integration is broken in distfiles (missing papi_int.h). +#OPTIONS=\ +# MOD_IPP "Build example mod_ipp.so for Apache" Off +# PSM_CUPS "Build psm_cups.so for printing to CUPS" Off + +.include <bsd.port.options.mk> + +# NOTE: hard dependency on gettext() in distfiles. +CONFIGURE_ARGS+=\ + LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-lintl" + +# NOTE: This has only been tested with www/apache20, with integrated APR. +.if defined(WITH_MOD_IPP) +USE_APACHE= 2.0 +CONFIGURE_ARGS+=--with-apache=${LOCALBASE} +.else +CONFIGURE_ARGS+=--without-apache +.endif + +.if defined(WITH_PSM_CUPS) +LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client +CONFIGURE_ARGS+=--with-cups=${LOCALBASE} +.else +CONFIGURE_ARGS+=--without-cups +.endif + +MANCOMPRESSED= no +MAN5= psm-ipp.5 + +PLIST_FILES+=\ + include/papi.h \ + include/ipp.h \ + include/debug.h \ + include/http.h \ + include/http-private.h \ + include/ipp-listener.h \ + lib/libpapi-common.so.0 \ + lib/libpapi-common.la \ + lib/libpapi.so.0 \ + lib/libpapi.la \ + lib/libipp-core.so.0 \ + lib/libipp-core.la \ + lib/libipp-listener.so.0 \ + lib/libipp-listener.la \ + libexec/psm-lpd.so \ + libexec/psm-lpd.la \ + libexec/psm-ipp.so \ + libexec/psm-ipp.la \ + libexec/lpd-port + +.if defined(WITH_PSM_CUPS) +PLIST_FILES+=\ + libexec/psm-cups.so \ + libexec/psm-cups.la +.endif + +.if defined(WITH_MOD_IPP) +PLIST_FILES+=\ + lib/mod_ipp.so \ + lib/mod_ipp.la +.endif + +.include <bsd.port.pre.mk> + +pre-configure: + cd ${WRKSRC}; ./autogen.sh + +.include <bsd.port.post.mk> |