1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/textproc/wordnet/files/src.wnb.Makefile
Kevin Lo 7fdba4ae57 - Bump TCL/TK verson
- Fix a bug documented on the software's site
- Add WWW

PR: 21709
Submitted by: MAINTAINER
2000-10-03 15:17:16 +00:00

42 lines
1.1 KiB
Makefile

PREFIX?= /usr/local
TCL_DVER?= 8.3
TCL_VER= ${TCL_DVER:S/.//g}
TCL_INCDIR?= ${PREFIX}/include/tcl${TCL_DVER}
CFLAGS+= -DUNIX -DDEFAULTPATH="\"${PREFIX}/share/wordnet-1.6\"" \
-DDEFAULTBIN="\"${PREFIX}/bin\""
CFLAGS+= -I${.CURDIR}/../../include -I$(TCL_INCDIR)
LDADD= -L../lib -lwn1 -L${PREFIX}/lib -ltcl${TCL_VER} -ltk${TCL_VER}
LIB= tclwn1
SHLIB_MAJOR= 6
SHLIB_MINOR= 0
SRCS= stubs.c
INTERNALLIB= True # To avoid building the useless static library
all: ${SHLIB_NAME} pkgIndex.tcl
pkgIndex.tcl:
echo "package ifneeded Wordnet 1.6 [list load \
[file join ${PREFIX}/lib ${SHLIB_NAME}] Wordnet]" \
> pkgIndex.tcl
LIBDIR= ${PREFIX}/lib
RESDIR= ${PREFIX}/share/wordnet-1.6/wnres
${LIBDIR} ${RESDIR} ${LIBDIR}/tcl${TCL_DVER}/Wordnet:
mkdir -p ${.TARGET}
beforeinstall: ${LIBDIR} ${RESDIR} ${LIBDIR}/tcl${TCL_DVER}/Wordnet
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
pkgIndex.tcl ${LIBDIR}/tcl${TCL_DVER}/Wordnet
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/../lib/wnres/*.* ${RESDIR}
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 755 \
wnb ${PREFIX}/bin
.include <bsd.lib.mk>