c982f5faf1
the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command. Use command macros where appropriate.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# New ports collection makefile for: ghostscript
|
|
# Date created: 14 Jan 2002
|
|
# Whom: Mita Yoshio <mita@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ghostscript
|
|
PORTVERSION= 6.52
|
|
CATEGORIES= korean print
|
|
MASTER_SITES= # nonexistent
|
|
PKGNAMESUFFIX= -gnu-cjk
|
|
DISTNAME= # nonexistent
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= mita@FreeBSD.org
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/Resource/cid.sh:${PORTSDIR}/print/ghostscript-gnu-cjk \
|
|
${LOCALBASE}/share/ghostscript/fonts/Munhwa-Bold:${PORTSDIR}/korean/munhwafonts-cid
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
GSLIB_DIR= ${PREFIX}/share/ghostscript/${PORTVERSION}/lib
|
|
PLIST_SUB= GS_VERSION=${PORTVERSION}
|
|
FONTS= Munhwa-Bold Munhwa-Regular \
|
|
MunhwaGothic-Bold MunhwaGothic-Regular
|
|
|
|
do-install:
|
|
.for i in ${FONTS}
|
|
${LN} -sf ${PREFIX}/share/ghostscript/fonts/${i} \
|
|
${PREFIX}/share/ghostscript/Resource/CIDFont/
|
|
.endfor
|
|
${INSTALL_DATA} ${FILESDIR}/CIDFnmap.ko ${GSLIB_DIR}
|
|
${MV} ${GSLIB_DIR}/CIDFnmap ${GSLIB_DIR}/CIDFnmap.orig.ko
|
|
${GREP} -v -e "CIDFnmap.ko" ${GSLIB_DIR}/CIDFnmap.orig.ko > \
|
|
${GSLIB_DIR}/CIDFnmap
|
|
${ECHO_CMD} '(CIDFnmap.ko) .runlibfile' >> ${GSLIB_DIR}/CIDFnmap
|
|
|
|
.include <bsd.port.mk>
|