Make this work in the ELF world.
This commit is contained in:
parent
db5041299a
commit
253379a643
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13694
4 changed files with 20 additions and 14 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue