mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
2b92bd7057
PR: 278267
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
PORTNAME= WordNet
|
|
PORTVERSION= 3.0
|
|
PORTREVISION= 6
|
|
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= ports@virtual-estates.net
|
|
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>
|