From 043536e7eeb27140881b41637b09a73b33f2f45d Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 5 Oct 1998 02:52:32 +0000 Subject: [PATCH] Convert to ELF. --- graphics/EZWGL/Makefile | 13 ++++++++++--- graphics/EZWGL/pkg-plist | 5 +++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/graphics/EZWGL/Makefile b/graphics/EZWGL/Makefile index dad791633973..c0e794c31a07 100644 --- a/graphics/EZWGL/Makefile +++ b/graphics/EZWGL/Makefile @@ -3,7 +3,7 @@ # Date created: 4 May 1998 # Whom: Andrey Zakhvatov # -# $Id: Makefile,v 1.9 1998/09/19 01:27:52 hoek Exp $ +# $Id: Makefile,v 1.10 1998/09/19 01:36:18 hoek Exp $ # DISTNAME= EZWGL-1.39 @@ -28,7 +28,8 @@ pre-install: do-install: @ ${INSTALL_DATA} ${WRKSRC}/include/EZ.h ${PREFIX}/include @ ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.a ${PREFIX}/lib - @ ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.so.1.3 ${PREFIX}/lib + @ ${INSTALL_DATA} ${WRKSRC}/lib/libEZ.so.${VERSION} ${PREFIX}/lib + @ ${LN} -sf libEZ.so.${VERSION} ${PREFIX}/lib/libEZ.so .for file in ${MAN3} @ ${INSTALL_MAN} ${WRKSRC}/man3/${file} ${PREFIX}/man/man3 .endfor @@ -46,6 +47,12 @@ do-install: .endif post-install: - ${LDCONFIG} -m ${PREFIX}/lib + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib .include + +.if ${PORTOBJFORMAT} == "elf" +VERSION= 1 +.else +VERSION= 1.3 +.endif diff --git a/graphics/EZWGL/pkg-plist b/graphics/EZWGL/pkg-plist index 252230efbc7d..06b966f0f5af 100644 --- a/graphics/EZWGL/pkg-plist +++ b/graphics/EZWGL/pkg-plist @@ -1,8 +1,9 @@ include/EZ.h lib/libEZ.a +lib/libEZ.so lib/libEZ.so.1.3 -@exec /sbin/ldconfig -m %B -@unexec /sbin/ldconfig -R +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R share/doc/EZ/LICENSE share/doc/EZ/html/index.html share/doc/EZ/html/welcome.html