summaryrefslogtreecommitdiff
path: root/japanese/gd1
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1998-11-14 09:43:39 +0000
committerSatoshi Asami <asami@FreeBSD.org>1998-11-14 09:43:39 +0000
commit96bc8048c3217bb231f2f30eadeb628134b557f5 (patch)
treec75d5bd5a6faba5d6ec73da367e4bfe5b0d4285d /japanese/gd1
parentChecksum changed.... (diff)
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.
Notes
Notes: svn path=/head/; revision=14512
Diffstat (limited to 'japanese/gd1')
-rw-r--r--japanese/gd1/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/japanese/gd1/Makefile b/japanese/gd1/Makefile
index 2e4aace509a1..1acf667d3417 100644
--- a/japanese/gd1/Makefile
+++ b/japanese/gd1/Makefile
@@ -3,7 +3,7 @@
# Date created: 19 Aug 1998
# Whom: ichiro@ichiro.org
#
-# $Id: Makefile,v 1.2 1998/10/06 20:52:44 asami Exp $
+# $Id: Makefile,v 1.3 1998/10/07 06:08:23 asami Exp $
#
DISTNAME= gd1.3
@@ -24,6 +24,8 @@ BROKEN_ELF= linker command line
FETCH_BEFORE_ARGS= -b
+.include <bsd.port.pre.mk>
+
pre-install:
${MKDIR} ${PREFIX}/include/gd
${MKDIR} ${PREFIX}/share/examples/gd
@@ -33,12 +35,12 @@ do-install:
${INSTALL} -c -o bin -g bin -m 555 ${WRKSRC}/$$i \
${PREFIX}/lib; \
done
- if [ "${PORTOBJFORMAT}" = "aout" ]; then \
- (cd ${PREFIX}/lib; ${LN} -sf libgd.so.1.3 libgd.so); \
- else \
- (cd ${PREFIX}/lib; ${MV} -sf libgd.so.1.3 libgd.so.1; \
- ${LN} -sf libgd.so.1 libgd.so); \
- fi
+.if ${PORTOBJFORMAT} == "aout"
+ cd ${PREFIX}/lib; ${LN} -sf libgd.so.1.3 libgd.so
+.else
+ cd ${PREFIX}/lib; ${MV} -sf libgd.so.1.3 libgd.so.1
+ ${LN} -sf libgd.so.1 libgd.so
+.endif
for i in gddemo giftogd webgif; do \
${INSTALL} -c -o bin -g bin -m 755 ${WRKSRC}/$$i \
${PREFIX}/bin; \
@@ -55,4 +57,4 @@ do-install:
post-install:
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>