diff options
Diffstat (limited to 'lang/tcl80/Makefile')
-rw-r--r-- | lang/tcl80/Makefile | 12 |
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 |