From a9b87dca9d30cfe5e932b9899d027e5077ba8445 Mon Sep 17 00:00:00 2001 From: "Jason E. Hale" Date: Mon, 30 Jun 2014 12:06:19 +0000 Subject: [PATCH] - Support staging [1] - Simplify MASTER_SITES - Add LICENSE (GPLv2) - Convert CJK knob to an option - Strip binaries - Rename patch with ':' in filename PR: 190078 [1] (based on) Submitted by: Matthieu Volat [1] Approved by: maintainer timeout / portmgr blanket --- print/cups-pstoraster/Makefile | 31 +++++++++---------- ...rc:unixinst.mak => patch-src__unixinst.mk} | 0 2 files changed, 15 insertions(+), 16 deletions(-) rename print/cups-pstoraster/files/{patch-src:unixinst.mak => patch-src__unixinst.mk} (100%) 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 diff --git a/print/cups-pstoraster/files/patch-src:unixinst.mak b/print/cups-pstoraster/files/patch-src__unixinst.mk similarity index 100% rename from print/cups-pstoraster/files/patch-src:unixinst.mak rename to print/cups-pstoraster/files/patch-src__unixinst.mk