1 # Created by: Bruce M Simpson <bms@FreeBSD.org>
8 MASTER_SITES= SF/openprinting/papi/1.0%20Beta
9 DISTNAME= papi-${PORTVERSION}_beta
10 DIST_SUBDIR= ${PORTNAME}
12 MAINTAINER= ports@FreeBSD.org
13 COMMENT= Sun's implementation of the OpenPrinting API (PAPI)
15 WRKSRC= ${WRKDIR}/papi-${PORTVERSION}_beta
17 USES= gettext gmake iconv libtool tar:bzip2
20 INSTALL_TARGET= install-strip
23 CPPFLAGS+= -I${LOCALBASE}/include
24 LIBS+= -L${LOCALBASE}/lib -lintl
26 # TODO: Get mod_ipp to actually work; Sun's example seems to be broken
27 # under both Apache 1.3/2.0, this could be a papi issue; does not build
29 # TODO: Fix Apache module install target to instead use APXS
30 # from this file; it is intended only as an example.
31 # TODO: CUPS integration is broken in distfiles (missing papi_int.h).
33 # MOD_IPP "Build example mod_ipp.so for Apache" Off
34 # PSM_CUPS "Build psm_cups.so for printing to CUPS" Off
36 .include <bsd.port.options.mk>
38 # NOTE: This has only been tested with www/apache20, with integrated APR.
39 .if defined(WITH_MOD_IPP)
40 IGNORE= no supported apache versions available
42 #CONFIGURE_ARGS+=--with-apache=${LOCALBASE}
44 CONFIGURE_ARGS+=--without-apache
47 .if defined(WITH_PSM_CUPS)
48 LIB_DEPENDS+= libcups.so:print/cups
49 CONFIGURE_ARGS+=--with-cups=${LOCALBASE}
51 CONFIGURE_ARGS+=--without-cups
56 include/http-private.h \
58 include/ipp-listener.h \
62 lib/libipp-core.so.0 \
63 lib/libipp-core.so.0.0.0 \
64 lib/libipp-listener.so \
65 lib/libipp-listener.so.0 \
66 lib/libipp-listener.so.0.0.0 \
67 lib/libpapi-common.so \
68 lib/libpapi-common.so.0 \
69 lib/libpapi-common.so.0.0.0 \
72 lib/libpapi.so.0.0.0 \
78 .if defined(WITH_PSM_CUPS)
79 PLIST_FILES+= libexec/psm-cups.so
82 .if defined(WITH_MOD_IPP)
83 PLIST_FILES+= lib/mod_ipp.so
87 @${REINPLACE_CMD} '/^LIBS =/s,$$, ../libpapi-common/libpapi-common.la @LIBS@,' \
88 ${WRKSRC}/source/bsd-sysv-commands/Makefile.in \
89 ${WRKSRC}/source/examples/Makefile.in
90 @${REINPLACE_CMD} -e 's/-ldl//' -e 's/-lnsl//' \
91 ${WRKSRC}/source/libpapi-cups/Makefile.in \
92 ${WRKSRC}/source/libpapi-dynamic/Makefile.in
95 .for unneeded in bin sbin man/man1 man/mani share
96 @${RM} -r ${STAGEDIR}${PREFIX}/${unneeded}
99 .include <bsd.port.mk>