summaryrefslogtreecommitdiffstats
path: root/japanese/canna-lib
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1998-11-14 09:43:39 +0000
committerasami <asami@FreeBSD.org>1998-11-14 09:43:39 +0000
commit521807d38becba50804a00710cfa1b51c759a4f4 (patch)
tree26cfeb8a991d32014f9a30277d2ade973f1a937f /japanese/canna-lib
parentf4c70db8f8fed4684d8013755f0d23c5da34733e (diff)
downloadFreeBSD-ports-521807d38becba50804a00710cfa1b51c759a4f4.zip
FreeBSD-ports-521807d38becba50804a00710cfa1b51c759a4f4.tar.gz
Use bsd.port.{pre,post}.mk to move PORTOBJFORMAT to front, or change
shell loops to make loops. Use EXTRA_PKG_FLAGS to add install scripts instead of adding it to PKG_FLAGS after bsd.port.mk.
Diffstat (limited to 'japanese/canna-lib')
-rw-r--r--japanese/canna-lib/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile
index ae91cb6..f470d02 100644
--- a/japanese/canna-lib/Makefile
+++ b/japanese/canna-lib/Makefile
@@ -4,7 +4,7 @@
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
# NIIMI Satoshi <sa2c@and.or.jp>
#
-# $Id: Makefile,v 1.21 1998/09/21 22:31:23 steve Exp $
+# $Id: Makefile,v 1.22 1998/10/10 15:27:26 kuriyama Exp $
#
DISTNAME= Canna32p2
@@ -33,17 +33,19 @@ MANCOMPRESSED= no
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh
+.include <bsd.port.pre.mk>
+
pre-install:
${MKDIR} /var/run/canna
chown bin.bin /var/run/canna
post-install:
- if [ "${PORTOBJFORMAT}" = "aout" ]; then \
- ${LN} -sf libRKC.so.1.0 ${PREFIX}/lib/libRKC.so; \
- ${LN} -sf libRKC16.so.1.0 ${PREFIX}/lib/libRKC16.so; \
- ${LN} -sf libcanna.so.1.0 ${PREFIX}/lib/libcanna.so; \
- ${LN} -sf libcanna16.so.1.0 ${PREFIX}/lib/libcanna16.so; \
- fi
+.if ${PORTOBJFORMAT} == "aout"
+ ${LN} -sf libRKC.so.1.0 ${PREFIX}/lib/libRKC.so
+ ${LN} -sf libRKC16.so.1.0 ${PREFIX}/lib/libRKC16.so
+ ${LN} -sf libcanna.so.1.0 ${PREFIX}/lib/libcanna.so
+ ${LN} -sf libcanna16.so.1.0 ${PREFIX}/lib/libcanna16.so
+.endif
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
echo "Installing ${STARTUP_SCRIPT} startup file."; \
@@ -63,4 +65,4 @@ post-install:
fi
@${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud