diff options
author | dinoex <dinoex@FreeBSD.org> | 2009-05-16 16:52:36 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2009-05-16 16:52:36 +0800 |
commit | 5069873c0d648fefecb73e7071cb4558e1da0ac1 (patch) | |
tree | 05ff0e71ec9de8733351486afca3607980b1f839 /print | |
parent | b5ab82c800ddcbc1ef51bb01475c6059727093e8 (diff) | |
download | freebsd-ports-gnome-5069873c0d648fefecb73e7071cb4558e1da0ac1.tar.gz freebsd-ports-gnome-5069873c0d648fefecb73e7071cb4558e1da0ac1.tar.zst freebsd-ports-gnome-5069873c0d648fefecb73e7071cb4558e1da0ac1.zip |
- new slave port CUPS_IMAGE
Diffstat (limited to 'print')
-rw-r--r-- | print/cups-base/Makefile | 33 | ||||
-rw-r--r-- | print/cups-base/pkg-plist.image | 16 |
2 files changed, 42 insertions, 7 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile index 78a887d91368..0ea163cbc1d4 100644 --- a/print/cups-base/Makefile +++ b/print/cups-base/Makefile @@ -60,21 +60,31 @@ CUPSSYSGRP= wheel .include <bsd.port.pre.mk> .if defined(CUPS_CLIENT) -USE_LDCONFIG= yes CUPS_SUFFIX= -client -PLIST= ${MASTERDIR}/pkg-plist.client INSTALL_WRKSRC= ${WRKSRC}/cups +PLIST= ${MASTERDIR}/pkg-plist.client +USE_LDCONFIG= yes +.elif defined(CUPS_IMAGE) +CUPS_SUFFIX= -image +LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \ + png.5:${PORTSDIR}/graphics/png \ + tiff.4:${PORTSDIR}/graphics/tiff \ + cups.2:${PORTSDIR}/${PKGCATEGORY}/cups-client +CONFIGURE_ARGS+= --disable-pdftops +INSTALL_WRKSRC= ${WRKSRC}/filter +PLIST= ${MASTERDIR}/pkg-plist.image +USE_LDCONFIG= yes .else CUPS_SUFFIX= -base -USE_RC_SUBR= cupsd -USE_GHOSTSCRIPT= yes -CONFIGURE_ARGS+= --enable-pdftops --with-pdftops=gs LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png \ tiff.4:${PORTSDIR}/graphics/tiff \ cups.2:${PORTSDIR}/${PKGCATEGORY}/cups-client # force build if old cups is installed. BUILD_DEPENDS+= ${LOCALBASE}/lib/libcups.a:${PORTSDIR}/${PKGCATEGORY}/cups-client +USE_GHOSTSCRIPT= yes +USE_RC_SUBR= cupsd +CONFIGURE_ARGS+= --enable-pdftops --with-pdftops=gs .endif .if defined(CUPS_OVERWRITE_BASE) @@ -149,6 +159,7 @@ RUN_DEPENDS+= xdg-open:${PORTSDIR}/devel/xdg-utils .if defined(CUPS_CLIENT) MAN1= cups-config.1 +.elif defined(CUPS_IMAGE) .else MAN1= cancel.1 \ cupstestdsc.1 \ @@ -216,6 +227,14 @@ post-patch: -e 's|conf data doc $$.FONTS.ppd templates||' \ -e '/share/s|/usr/share|${PREFIX}/share|g' \ ${WRKSRC}/Makefile +.elif defined(CUPS_IMAGE) + @${REINPLACE_CMD} \ + -e 's|cups backend berkeley cgi-bin filter locale man monitor |filter |' \ + -e 's|notifier scheduler systemv test ||' \ + -e 's|$$.PHPDIR. ||' \ + -e 's|conf data doc $$.FONTS.ppd templates||' \ + -e '/share/s|/usr/share|${PREFIX}/share|g' \ + ${WRKSRC}/Makefile .else @${REINPLACE_CMD} \ -e 's|cups backend|backend|' \ @@ -234,7 +253,7 @@ pre-build: ${CP} -p ${LOCALBASE}/lib/libcups.so.2 ${WRKSRC}/cups/ .endif -.if !defined(CUPS_CLIENT) +.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) pre-su-install: @${INSTALL} -d ${DESKTOPDIR}/ if ! pw groupshow ${CUPSGRP}; then pw groupadd ${CUPSGRP} -g 193; fi @@ -264,7 +283,7 @@ post-install: ${CHOWN} root:${CUPSGRP} /var/cache/cups/ .endif -.if defined(CUPS_CLIENT) +.if defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) post-install: ${INSTALL_SCRIPT} ${WRKSRC}/cups-config ${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/cups/libcups.a ${PREFIX}/lib/ diff --git a/print/cups-base/pkg-plist.image b/print/cups-base/pkg-plist.image new file mode 100644 index 000000000000..6a2258afa368 --- /dev/null +++ b/print/cups-base/pkg-plist.image @@ -0,0 +1,16 @@ +include/cups/image.h +include/cups/raster.h +lib/libcupsimage.so +lib/libcupsimage.so.2 +libexec/cups/filter/gziptoany +libexec/cups/filter/hpgltops +libexec/cups/filter/imagetops +libexec/cups/filter/imagetoraster +libexec/cups/filter/pstops +libexec/cups/filter/rastertodymo +libexec/cups/filter/rastertoepson +libexec/cups/filter/rastertohp +libexec/cups/filter/rastertolabel +libexec/cups/filter/texttops +@dirrm libexec/cups/filter +@dirrm libexec/cups |