- zip (DE)INSTALL scripts
- remove ttfm dependency
This commit is contained in:
parent
60d945871e
commit
d9709bbcb9
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.10 2004/02/03 07:28:12 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.11 2004/12/03 04:04:10 kevlo Exp $
|
||||
|
||||
COMMENT= "chinese big5/gb truetype fonts"
|
||||
|
||||
DISTNAME= zh-arphicttf-2.11
|
||||
PKGNAME= zh-fonts-arphicttf-2.11
|
||||
PKGNAME= zh-fonts-arphicttf-2.11p0
|
||||
CATEGORIES= chinese x11
|
||||
|
||||
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
||||
@ -16,8 +16,6 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/ \
|
||||
ftp://ftp.shellhung.org/pub/OpenBSD/packages/chinese/
|
||||
|
||||
BUILD_DEPENDS= ::chinese/ttfm
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
PKG_ARCH= *
|
||||
@ -31,5 +29,7 @@ FONTS= bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${FONTDIR}
|
||||
cd ${WRKSRC}/font; ${INSTALL_DATA} ${FONTS} ${FONTDIR}
|
||||
${X11BASE}/bin/mkfontscale ${FONTDIR}
|
||||
${X11BASE}/bin/mkfontdir ${FONTDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/01/21 15:07:55 kevlo Exp $
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
TTFM=${PREFIX}/bin/ttfm.sh
|
||||
FONTDIR=${PREFIX}/lib/X11/fonts/TrueType
|
||||
FONTS="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"
|
||||
|
||||
if [ "$2" != "DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for f in $FONTS; do
|
||||
$TTFM --remove xttfm ${FONTDIR}/$f
|
||||
done
|
||||
|
||||
exit 0
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2001/01/21 15:07:55 kevlo Exp $
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
TTFM=${PREFIX}/bin/ttfm.sh
|
||||
FONTPATH=${WKRSRC}/font
|
||||
FONTDIR=${PREFIX}/lib/X11/fonts/TrueType
|
||||
FONTS="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"
|
||||
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for f in ${FONTPATH}/$FONTS; do
|
||||
$TTFM --add xttfm $FONTDIR/$f
|
||||
done
|
||||
|
||||
exit 0
|
@ -1,8 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2004/09/14 23:21:38 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.5 2004/12/03 04:04:12 kevlo Exp $
|
||||
lib/X11/fonts/
|
||||
@fontdir lib/X11/fonts/TrueType/
|
||||
lib/X11/fonts/TrueType/bkai00mp.ttf
|
||||
lib/X11/fonts/TrueType/bsmi00lp.ttf
|
||||
lib/X11/fonts/TrueType/fonts.dir
|
||||
lib/X11/fonts/TrueType/fonts.scale
|
||||
lib/X11/fonts/TrueType/gbsn00lp.ttf
|
||||
lib/X11/fonts/TrueType/gkai00mp.ttf
|
||||
@unexec rm lib/X11/fonts/TrueType/fonts.scale
|
||||
|
Loading…
Reference in New Issue
Block a user