diff options
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> |