diff options
-rw-r--r-- | graphics/EZWGL/Makefile | 13 | ||||
-rw-r--r-- | graphics/EZWGL/pkg-plist | 5 |
2 files changed, 13 insertions, 5 deletions
diff --git a/graphics/EZWGL/Makefile b/graphics/EZWGL/Makefile index dad79163397..c0e794c31a0 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 <bsd.port.mk> + +.if ${PORTOBJFORMAT} == "elf" +VERSION= 1 +.else +VERSION= 1.3 +.endif diff --git a/graphics/EZWGL/pkg-plist b/graphics/EZWGL/pkg-plist index 252230efbc7..06b966f0f5a 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 |