1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- new slave port CUPS_IMAGE

This commit is contained in:
Dirk Meyer 2009-05-16 08:52:36 +00:00
parent 3432ed2c50
commit 8d16c7b533
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233985
2 changed files with 42 additions and 7 deletions

View File

@ -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/

View File

@ -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