From 253379a643eade07fcd91de97a1bddf39562c417 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Tue, 6 Oct 1998 20:52:47 +0000 Subject: Make this work in the ELF world. --- japanese/gd/Makefile | 12 ++++++++---- japanese/gd/pkg-plist | 5 ++--- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'japanese/gd') diff --git a/japanese/gd/Makefile b/japanese/gd/Makefile index cb8fb2e2d09b..8aad370fd781 100644 --- a/japanese/gd/Makefile +++ b/japanese/gd/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 diff --git a/japanese/gd/pkg-plist b/japanese/gd/pkg-plist index 690bfaf2cead..27882d528c38 100644 --- a/japanese/gd/pkg-plist +++ b/japanese/gd/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 -- cgit v1.2.3