summaryrefslogtreecommitdiff
path: root/lang/tcl80/Makefile
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-09-17 22:30:11 +0000
committerSteve Price <steve@FreeBSD.org>1998-09-17 22:30:11 +0000
commitd9a03dd68af62458410e115c8670a912174fc396 (patch)
treefe38fc2026623d451dc538781cc72c2ab6eff3e4 /lang/tcl80/Makefile
parentActivate ko-pgp.language. (diff)
Make this build in an ELF world.
Reviewed by: jkh
Notes
Notes: svn path=/head/; revision=13208
Diffstat (limited to 'lang/tcl80/Makefile')
-rw-r--r--lang/tcl80/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/tcl80/Makefile b/lang/tcl80/Makefile
index e5ce84d0dfb1..873790850830 100644
--- a/lang/tcl80/Makefile
+++ b/lang/tcl80/Makefile
@@ -3,7 +3,7 @@
# Date created: 19 August 1997
# Whom: jkh
#
-# $Id: Makefile,v 1.6 1998/07/03 23:06:48 steve Exp $
+# $Id: Makefile,v 1.7 1998/07/27 21:14:46 hoek Exp $
#
DISTNAME= tcl8.0p2
@@ -21,6 +21,7 @@ CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
SHLIB_MAJOR= 1
SHLIB_MINOR= 2
MAKEFILE= makefile
+TCL_LIB= libtcl80.so
post-configure:
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
@@ -31,7 +32,8 @@ pre-build:
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
post-install:
- ${LDCONFIG} -m ${PREFIX}/lib
+ ${LN} -sf ${TCL_LIB_FILE} ${PREFIX}/lib/${TCL_LIB}
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.if exists(${PKGDIR}/INSTALL.tclsh)
${SH} ${PKGDIR}/INSTALL.tclsh
.endif
@@ -42,3 +44,9 @@ test:
.include <bsd.port.mk>
PKG_ARGS+= -i ${PKGDIR}/INSTALL.tclsh
+
+.if ${PORTOBJFORMAT} == "elf"
+TCL_LIB_FILE= ${TCL_LIB}.${SHLIB_MAJOR}
+.else
+TCL_LIB_FILE= ${TCL_LIB}.${SHLIB_MAJOR}.${SHLIB_MINOR}
+.endif