blob: 1761272c97f9751163f00cf5baeb723d938e65c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
PORTNAME= WordNet
PORTVERSION= 3.0
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://wordnetcode.princeton.edu/${PORTVERSION}/:code \
http://wordnetcode.princeton.edu/:dict
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:code wn3.1.dict.tar.gz:dict
MAINTAINER= mi@aldan.algebra.com
COMMENT= Dictionaries and thesauri with devel. libraries (C, TCL) and browsers
WWW= https://wordnet.princeton.edu/
EXTRACT_ONLY= ${DISTFILES:M*code:S/:code//}
EXTRACT_AFTER_ARGS=--exclude dict
USES= tcl uidfix tar:bzip2
SCRIPTS_ENV+= TCL_DVER=${TCL_VER} VER=${PORTVERSION}
MAKE_ENV+= TCL_DVER=${TCL_VER} VER=${PORTVERSION} STAGEDIR="${STAGEDIR}"
PLIST_SUB+= TCL_DVER=${TCL_VER} VER=${PORTVERSION}
REINPLACE_ARGS= -i ""
USE_LDCONFIG= yes
SUB_FILES= pkg-message
SUB_LIST+= TCL_VER=${TCL_VER}
# Fix build on recent current
CFLAGS+= -fcommon
post-patch:
${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' \
${WRKSRC}/src/wnb ${WRKSRC}/doc/man/*.?
${REINPLACE_CMD} -e 's, *\\n,\\n,' ${WRKSRC}/include/wn.h
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${TAR} -C ${STAGEDIR}${DATADIR} -x --no-same-owner \
--strip-components 1 \
-f ${_DISTDIR}${DISTFILES:M*dict:S/:dict//} \
`${SED} -n -e '/\.xbm/d' -e 's,^%%DATADIR%%/,dict/,p' ${PLIST}`
.include <bsd.port.mk>
|