diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1998-11-14 09:43:39 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1998-11-14 09:43:39 +0000 |
commit | 96bc8048c3217bb231f2f30eadeb628134b557f5 (patch) | |
tree | c75d5bd5a6faba5d6ec73da367e4bfe5b0d4285d /japanese/gd | |
parent | 637c4e8f19438274164c0673ec85af739aba205b (diff) | |
download | freebsd-ports-96bc8048c3217bb231f2f30eadeb628134b557f5.zip |
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/gd')
-rw-r--r-- | japanese/gd/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/japanese/gd/Makefile b/japanese/gd/Makefile index 2e4aace509a1..1acf667d3417 100644 --- a/japanese/gd/Makefile +++ b/japanese/gd/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> |