mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
Add INSTALL and DEINSTALL scripts.
Fix mkfontdir problem (Port's 'make install' doesn't execute mkfontdir). Auto-execute 'xset fp rehash' in INSTALL/DEINSTALL script. Submitted by: TAOKA Satoshi <taoka@infonets.hiroshima-u.ac.jp>
This commit is contained in:
parent
ac3667b456
commit
fe1f7ae281
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20814
@ -3,7 +3,7 @@
|
||||
# Date created: 23 September 1998
|
||||
# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
|
||||
#
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.1.1.1 1999/08/18 14:00:03 shige Exp $
|
||||
#
|
||||
|
||||
DISTNAME= bitmap-mule-${BITMAP_VER}
|
||||
@ -17,6 +17,8 @@ MAINTAINER= shige@FreeBSD.org
|
||||
BITMAP_VER= 7.18
|
||||
BITMAP_FONT= etl8x16-bitmap
|
||||
FONTSDIR= lib/X11/fonts/local
|
||||
PKGINSTALL= ${WRKDIR}/INSTALL
|
||||
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
|
||||
@ -29,6 +31,11 @@ do-build:
|
||||
bdftopcf ${BITMAP_FONT}.bdf > ${BITMAP_FONT}.pcf ; \
|
||||
${GZIP_CMD} ${BITMAP_FONT}.pcf ; \
|
||||
)
|
||||
@for file in INSTALL DEINSTALL; do \
|
||||
${SED} -e 's,%%FONTSDIR%%,${FONTSDIR},g' \
|
||||
< ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \
|
||||
done
|
||||
|
||||
|
||||
pre-install:
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
@ -39,4 +46,8 @@ do-install:
|
||||
${INSTALL_DATA} ${BITMAP_FONT}.pcf.gz ${PREFIX}/${FONTSDIR} ; \
|
||||
)
|
||||
|
||||
post-install:
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
12
x11-fonts/bitmap-fonts/files/DEINSTALL.tmpl
Normal file
12
x11-fonts/bitmap-fonts/files/DEINSTALL.tmpl
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "x$2" = "xPOST-DEINSTALL" ]; then
|
||||
cd ${PKG_PREFIX}/%%FONTSDIR%%; ${PKG_PREFIX}/bin/mkfontdir
|
||||
${PKG_PREFIX}/bin/xset fp rehash ||
|
||||
(
|
||||
echo "**********************************************************"
|
||||
echo "You should restart X server or do 'xset fp rehash' command"
|
||||
echo "to enable this update."
|
||||
echo "**********************************************************"
|
||||
)
|
||||
fi
|
12
x11-fonts/bitmap-fonts/files/INSTALL.tmpl
Normal file
12
x11-fonts/bitmap-fonts/files/INSTALL.tmpl
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "x$2" = "xPOST-INSTALL" ]; then
|
||||
cd ${PKG_PREFIX}/%%FONTSDIR%%; ${PKG_PREFIX}/bin/mkfontdir
|
||||
${PKG_PREFIX}/bin/xset fp rehash ||
|
||||
(
|
||||
echo "**********************************************************"
|
||||
echo "You should restart X server or do 'xset fp rehash' command"
|
||||
echo "to enable this update."
|
||||
echo "**********************************************************"
|
||||
)
|
||||
fi
|
@ -1,3 +1 @@
|
||||
%%FONTSDIR%%/%%BITMAP_FONT%%.pcf.gz
|
||||
@exec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
|
||||
@unexec cd %D/%%FONTSDIR%% ; %D/bin/mkfontdir
|
||||
|
@ -19,9 +19,4 @@ if [ "$2x" = "INSTALLx" -a ! -d ${FONTDIR} ]; then
|
||||
mkdir ${FONTDIR}
|
||||
fi
|
||||
|
||||
echo "**********************************************************"
|
||||
echo "You should restart X server or do 'xset fp rehash' command"
|
||||
echo "to enable this update."
|
||||
echo "**********************************************************"
|
||||
|
||||
exit 0;
|
||||
|
Loading…
Reference in New Issue
Block a user