aboutsummaryrefslogtreecommitdiffstats
path: root/devel/tcl-memchan
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-07-22 03:59:08 +0800
committerru <ru@FreeBSD.org>2002-07-22 03:59:08 +0800
commit180d2fe5e1a745b32e0b421225bfa9c0a6efb6d5 (patch)
tree21e461fced48f0628a56ca63e79fdb13c54bb045 /devel/tcl-memchan
parentcc537a0a57e0837b835c4e8a4859b1c9d3dfc2e6 (diff)
downloadfreebsd-ports-gnome-180d2fe5e1a745b32e0b421225bfa9c0a6efb6d5.tar.gz
freebsd-ports-gnome-180d2fe5e1a745b32e0b421225bfa9c0a6efb6d5.tar.zst
freebsd-ports-gnome-180d2fe5e1a745b32e0b421225bfa9c0a6efb6d5.zip
Catch up to the new bsd.lib.mk API.
Diffstat (limited to 'devel/tcl-memchan')
-rw-r--r--devel/tcl-memchan/files/Makefile.bsd16
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}