aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2014-06-30 12:06:19 +0000
committerJason E. Hale <jhale@FreeBSD.org>2014-06-30 12:06:19 +0000
commita9b87dca9d30cfe5e932b9899d027e5077ba8445 (patch)
tree0a71aab7d12300921305c23861bd183c601a343d
parent8952e4e413e31663d65b4c902e2a1475804e42e6 (diff)
downloadports-a9b87dca9d30cfe5e932b9899d027e5077ba8445.tar.gz
ports-a9b87dca9d30cfe5e932b9899d027e5077ba8445.zip
Notes
-rw-r--r--print/cups-pstoraster/Makefile31
-rw-r--r--print/cups-pstoraster/files/patch-src__unixinst.mk (renamed from print/cups-pstoraster/files/patch-src:unixinst.mak)0
2 files changed, 15 insertions, 16 deletions
diff --git a/print/cups-pstoraster/Makefile b/print/cups-pstoraster/Makefile
index 58b35ad33a93..4c8dd05902c4 100644
--- a/print/cups-pstoraster/Makefile
+++ b/print/cups-pstoraster/Makefile
@@ -3,23 +3,18 @@
PORTNAME= cups-pstoraster
PORTVERSION= 8.15.4
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= print
-MASTER_SITES= ${MASTER_SITE_EASYSW}
-MASTER_SITE_SUBDIR= ghostscript/${PORTVERSION}
+MASTER_SITES= EASYSW/ghostscript/${PORTVERSION}
DISTNAME= espgs-${ESPGS_VER}-source
DIST_SUBDIR= ghostscript
MAINTAINER= rea@FreeBSD.org
COMMENT= Postscript interpreter for CUPS printing to non-PS printers
-LIB_DEPENDS= cupsimage.2:${PORTSDIR}/print/cups-image
+LICENSE= GPLv2
-.if defined(WITH_CJK)
-RUN_DEPENDS+= ${LOCALBASE}/share/fonts/std.ja_JP/Ryumin-Light:${PORTSDIR}/japanese/font-std \
- ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-lib_cidfmap
-.endif
+LIB_DEPENDS= libcupsimage.so:${PORTSDIR}/print/cups-image
ESPGS_VER= ${PORTVERSION}
GS_VERSION= 8.15
@@ -39,13 +34,12 @@ MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
PLIST_SUB= GS_VERSION="${GS_VERSION}"
-NO_STAGE= yes
-pre-everything::
-.if !defined(WITH_CJK)
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Define WITH_CJK to enable Japanese PostScript documents processing"
- @${ECHO_MSG} ""
-.endif
+OPTIONS_DEFINE= CJK
+
+CJK_DESC= Japanese PostScript documents processing
+CJK_RUN_DEPENDS= ${LOCALBASE}/share/fonts/std.ja_JP/Ryumin-Light:${PORTSDIR}/japanese/font-std \
+ ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
+CJK_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-lib_cidfmap
pre-configure:
${RM} -f ${WRKSRC}/ijs/config.guess ${WRKSRC}/ijs/missing ${WRKSRC}/ijs/config.sub ${WRKSRC}/ijs/install-sh ${WRKSRC}/ijs/ltmain.sh
@@ -54,6 +48,8 @@ pre-configure:
post-patch:
${LN} -sf ${WRKSRC}/pstoraster/gdevcups.c ${WRKSRC}/src
${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
+ ${FIND} ${WRKSRC} -name "*.mak" -type f | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|$$(install_prefix)|$$(DESTDIR)$$(install_prefix)|g'
.for file in pstopxl pstoraster
${REINPLACE_CMD} -e 's:@prefix@:${PREFIX}:g ; \
s:@exec_prefix@:${PREFIX}:g ; \
@@ -73,4 +69,7 @@ pre-build:
${MKDIR} ${WRKSRC}/bin
${MKDIR} ${WRKSRC}/obj
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/espgs
+
.include <bsd.port.mk>
diff --git a/print/cups-pstoraster/files/patch-src:unixinst.mak b/print/cups-pstoraster/files/patch-src__unixinst.mk
index e132b816cb75..e132b816cb75 100644
--- a/print/cups-pstoraster/files/patch-src:unixinst.mak
+++ b/print/cups-pstoraster/files/patch-src__unixinst.mk