summaryrefslogtreecommitdiff
path: root/games/libshhcards/Makefile
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-09-28 02:09:00 +0000
committerSteve Price <steve@FreeBSD.org>1998-09-28 02:09:00 +0000
commit0e58a72c59658581835875735b98650e180f9811 (patch)
tree1324ad37c1a5f0ed723f968536c5b2f5c6c74a09 /games/libshhcards/Makefile
parentoriginal distribution updated (0.85) (diff)
Conver to ELF.
Notes
Notes: svn path=/head/; revision=13489
Diffstat (limited to 'games/libshhcards/Makefile')
-rw-r--r--games/libshhcards/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/games/libshhcards/Makefile b/games/libshhcards/Makefile
index 689ed4a29919..90391fe298d4 100644
--- a/games/libshhcards/Makefile
+++ b/games/libshhcards/Makefile
@@ -3,7 +3,7 @@
# Date created: 12 April 1998
# Whom: Andrey Zakhvatov
#
-# $Id: Makefile,v 1.1.1.1 1998/05/02 18:02:43 mph Exp $
+# $Id: Makefile,v 1.2 1998/08/05 09:30:56 asami Exp $
#
DISTNAME= shhcards-1.0.3
@@ -16,13 +16,21 @@ MAINTAINER= andy@icc.surw.chel.su
USE_GMAKE= yes
USE_X_PREFIX= yes
+SOLIB= libshhcards.so
do-install:
@ ${INSTALL_DATA} ${WRKSRC}/shhcards.h ${PREFIX}/include
- @ ${INSTALL_DATA} ${WRKSRC}/libshhcards.so.1.0.3 ${PREFIX}/lib
- @ ln -s ${PREFIX}/lib/libshhcards.so.1.0.3 ${PREFIX}/lib/libshhcards.so
+ @ ${INSTALL_DATA} ${WRKSRC}/${SOLIB}.${SOVERSION} ${PREFIX}/lib
+ @ ${LN} -sf ${SOLIB}.${SOVERSION} ${PREFIX}/lib/${SOLIB}
@ ${MKDIR} ${PREFIX}/share/doc/libshhcards
@ ${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/libshhcards
@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/libshhcards
+ @ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>
+
+.if ${PORTOBJFORMAT} == "elf"
+SOVERSION= 1
+.else
+SOVERSION= 1.0
+.endif