aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/bg5ps
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-04-26 17:23:54 +0800
committerbapt <bapt@FreeBSD.org>2013-04-26 17:23:54 +0800
commit749467827d5c3e888c46b1337bbaf212aa76a1bc (patch)
treeae2da985769260bb23bc25c81c014e3f0f5add03 /chinese/bg5ps
parent524f8813b2c432ce839881a3f22ceca59abaec10 (diff)
downloadfreebsd-ports-gnome-749467827d5c3e888c46b1337bbaf212aa76a1bc.tar.gz
freebsd-ports-gnome-749467827d5c3e888c46b1337bbaf212aa76a1bc.tar.zst
freebsd-ports-gnome-749467827d5c3e888c46b1337bbaf212aa76a1bc.zip
In preparation of the removal of USE_FREETYPE from bsd.port.mk: remove
USE_FREETYPE from all ports using it While here trim some headers, and do some conversion to new options framework.
Diffstat (limited to 'chinese/bg5ps')
-rw-r--r--chinese/bg5ps/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/chinese/bg5ps/Makefile b/chinese/bg5ps/Makefile
index 36826771f77f..f403731e8b17 100644
--- a/chinese/bg5ps/Makefile
+++ b/chinese/bg5ps/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: bg5ps
-# Date created: 17 June 1998
-# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
-#
+# Created by: Jing-Tang Keith Jang <keith@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= bg5ps
PORTVERSION= 1.3.0p3
@@ -15,17 +11,20 @@ DISTNAME= bg5ps-1.3.0
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
-USE_FREETYPE= yes
+LIB_DEPENDS= ttf:${PORTSDIR}/print/freetype
+
USE_PYTHON= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/etc/bg5ps.conf.sample
${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${PREFIX}/etc/gb2312-bg5ps.conf.sample
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
.endif