summaryrefslogtreecommitdiff
path: root/textproc/t1lib/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-06-21 01:58:33 +0000
committerjlam <jlam@pkgsrc.org>2000-06-21 01:58:33 +0000
commit15192aa5f19873ff967d50fb411129ba03ed4a01 (patch)
treeb2f3324191f2aa5849f763c4afd2950dafdb5781 /textproc/t1lib/Makefile
parentf1c5e16769d0bc7eb24ffbe0697ae8a79aadd767 (diff)
downloadpkgsrc-15192aa5f19873ff967d50fb411129ba03ed4a01.tar.gz
USE_LIBTOOL instead of PKGLIBTOOL.
Factor out common post-install code in Makefile and pkg/PLIST into pkg/INSTALL.
Diffstat (limited to 'textproc/t1lib/Makefile')
-rw-r--r--textproc/t1lib/Makefile37
1 files changed, 18 insertions, 19 deletions
diff --git a/textproc/t1lib/Makefile b/textproc/t1lib/Makefile
index 3bc3a575a42..0f52ef50454 100644
--- a/textproc/t1lib/Makefile
+++ b/textproc/t1lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2000/06/01 11:23:42 rh Exp $
+# $NetBSD: Makefile,v 1.9 2000/06/21 01:58:33 jlam Exp $
#
DISTNAME= t1lib-1.0.1
@@ -9,37 +9,36 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE:=libs/graphics/} \
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.neuroinformatik.ruhr-uni-bochum.de/ini/PEOPLE/rmz/t1lib/t1lib.html
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
-USE_PKGLIBTOOL= yes
-USE_X11BASE= yes
+GNU_CONFIGURE= # defined
+USE_GMAKE= # defined
+USE_LIBTOOL= # defined
+USE_X11BASE= # defined
WRKSRC= ${WRKDIR}/T1-1.0.1
MESSAGE_FILE= ${WRKDIR}/MESSAGE
ALL_TARGET= without_doc
post-build:
- ${SED} -e 's|@@PREFIX@@|${PREFIX}|g' < ${PKGDIR}/MESSAGE > ${WRKDIR}/MESSAGE
+ ${SED} -e 's|@@PREFIX@@|${PREFIX}|g' \
+ < ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
post-install:
${MKDIR} ${PREFIX}/share/t1lib
cd ${WRKSRC}; \
- ${PAX} -r -w Fonts ${PREFIX}/share/t1lib; \
+ ${PAX} -rw Fonts ${PREFIX}/share/t1lib; \
${CHMOD} go+r ${PREFIX}/share/t1lib/Fonts/enc/IsoLatin2.enc; \
- ${PAX} -r -w -s "/doc/t1lib/" doc ${PREFIX}/share/doc
+ ${PAX} -rw -s "/doc/t1lib/" doc ${PREFIX}/share/doc
+
${MKDIR} ${PREFIX}/share/examples/t1lib
cd ${WRKSRC}/examples; \
- ${PAX} -r -w FontDataBase README.t1example1 t1example1.c t1lib.config \
+ ${PAX} -rw FontDataBase README.t1example1 t1example1.c t1lib.config \
${PREFIX}/share/examples/t1lib
- ${SED} -e 's|@@X11BASE@@|${X11BASE}|g' -e 's|@@LOCALBASE@@|${LOCALBASE}|g' \
- -e 's|@@PREFIX@@|${PREFIX}|g' < ${FILESDIR}/t1lib.config.netbsd \
- > ${PREFIX}/share/examples/t1lib/t1lib.config.netbsd
- if [ ! -f ${PREFIX}/share/t1lib/t1lib.config ]; then \
- ${CP} ${PREFIX}/share/examples/t1lib/t1lib.config.netbsd \
- ${PREFIX}/share/t1lib/t1lib.config; \
- fi
- if [ ! -f ${PREFIX}/share/t1lib/FontDataBase ]; then \
- ${CP} ${PREFIX}/share/examples/t1lib/FontDataBase ${PREFIX}/share/t1lib; \
- fi
+ ${SED} -e 's|@@X11BASE@@|${X11BASE}|g' \
+ -e 's|@@LOCALBASE@@|${LOCALBASE}|g' \
+ -e 's|@@PREFIX@@|${PREFIX}|g' \
+ < ${FILESDIR}/t1lib.config.netbsd \
+ > ${PREFIX}/share/examples/t1lib/t1lib.config.netbsd
+
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"