diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-07-21 19:59:08 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-07-21 19:59:08 +0000 |
commit | aa18f9f0e81ceccb789fa5b941d2de34a0a4d1a5 (patch) | |
tree | 5a435e60e405db94180af91b73cfd6b8f46ffa97 /devel/tcl-memchan | |
parent | Fixed install on bsd.incs.mk aware systems. (diff) |
Catch up to the new bsd.lib.mk API.
Diffstat (limited to 'devel/tcl-memchan')
-rw-r--r-- | devel/tcl-memchan/files/Makefile.bsd | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/devel/tcl-memchan/files/Makefile.bsd b/devel/tcl-memchan/files/Makefile.bsd index e5435a0ca9c4..c2f7338e2edf 100644 --- a/devel/tcl-memchan/files/Makefile.bsd +++ b/devel/tcl-memchan/files/Makefile.bsd @@ -1,6 +1,5 @@ -LIB= Memchan -SHLIB_MAJOR= 2 -SHLIB_MINOR= 2 +LIBNAME= Memchan +SHLIB_NAME= lib${LIBNAME}.so.2 .PATH: ${.CURDIR}/generic @@ -17,16 +16,13 @@ CFLAGS+= -I${LOCALBASE}/include/tcl${TCL_VER} \ LDADD= -L${LOCALBASE}/lib -ltcl${TCL_VER:S/.//} -INTERNALLIB = don't build the useless static version -NOPROFILE = don't care for profiling - -all: ${SHLIB_NAME} pkgIndex.tcl test +all: pkgIndex.tcl test pkgIndex.tcl: - echo 'package ifneeded ${LIB} ${SHLIB_MAJOR}.${SHLIB_MINOR} \ + echo 'package ifneeded ${LIBNAME} ${SHLIB_MAJOR}.${SHLIB_MINOR} \ [list load [file join $$dir $(SHLIB_NAME)]]' > pkgIndex.tcl -DIR = lib/tcl${TCL_VER}/${LIB} +DIR = lib/tcl${TCL_VER}/${LIBNAME} SHLIBDIR = ${PREFIX}/${DIR} MANDIR = ${PREFIX}/man/man @@ -43,7 +39,7 @@ beforeinstall: ${SHLIBDIR} pkgIndex.tcl test: ${SHLIB_NAME} pkgIndex.tcl echo ' set auto_path ${.OBJDIR}; cd ${.CURDIR}/tests; \ - package require ${LIB} ${SHLIB_MAJOR}.${SHLIB_MINOR}; \ + package require ${LIBNAME} ${SHLIB_MAJOR}.${SHLIB_MINOR}; \ if {[catch {source all} msg]} { \ puts stderr $msg; exit -1 \ }' | ${LOCALBASE}/bin/tclsh${TCL_VER} |