diff options
author | asami <asami@FreeBSD.org> | 1998-10-07 04:52:47 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1998-10-07 04:52:47 +0800 |
commit | 4df4ced20399b601d978f06d36a2d041b5d7dd6d (patch) | |
tree | 76f1e2bda9b3637c3f9f7d7bffadfff24454cc7a /japanese/gd1 | |
parent | 0d8c500988a1a63147b65003a64c533ca4607da6 (diff) | |
download | freebsd-ports-graphics-4df4ced20399b601d978f06d36a2d041b5d7dd6d.tar.gz freebsd-ports-graphics-4df4ced20399b601d978f06d36a2d041b5d7dd6d.tar.zst freebsd-ports-graphics-4df4ced20399b601d978f06d36a2d041b5d7dd6d.zip |
Make this work in the ELF world.
Diffstat (limited to 'japanese/gd1')
-rw-r--r-- | japanese/gd1/Makefile | 12 | ||||
-rw-r--r-- | japanese/gd1/pkg-plist | 5 |
2 files changed, 10 insertions, 7 deletions
diff --git a/japanese/gd1/Makefile b/japanese/gd1/Makefile index cb8fb2e2d09..8aad370fd78 100644 --- a/japanese/gd1/Makefile +++ b/japanese/gd1/Makefile @@ -3,7 +3,7 @@ # Date created: 19 Aug 1998 # Whom: ichiro@ichiro.org # -# $Id$ +# $Id: Makefile,v 1.1.1.1 1998/09/10 14:17:47 kuriyama Exp $ # DISTNAME= gd1.3 @@ -31,8 +31,12 @@ do-install: ${INSTALL} -c -o bin -g bin -m 555 ${WRKSRC}/$$i \ ${PREFIX}/lib; \ done - (cd ${PREFIX}/lib; ${LN} -sf libgd.so.1.3 libgd.so.1; \ - ${LN} -sf libgd.so.1 libgd.so) + 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 for i in gddemo giftogd webgif; do \ ${INSTALL} -c -o bin -g bin -m 755 ${WRKSRC}/$$i \ ${PREFIX}/bin; \ @@ -47,6 +51,6 @@ do-install: done post-install: - ${LDCONFIG} -m ${PREFIX}/lib + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib .include <bsd.port.mk> diff --git a/japanese/gd1/pkg-plist b/japanese/gd1/pkg-plist index 690bfaf2cea..27882d528c3 100644 --- a/japanese/gd1/pkg-plist +++ b/japanese/gd1/pkg-plist @@ -9,11 +9,10 @@ include/gd/gdfonts.h include/gd/gdfontt.h lib/libgd.a lib/libgd.so -lib/libgd.so.1 lib/libgd.so.1.3 share/examples/gd/demoin.gif share/examples/gd/index.html @dirrm include/gd @dirrm share/examples/gd -@exec /sbin/ldconfig -m %D/lib -@unexec /sbin/ldconfig -R +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R |