Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.13 2016/04/09 11:42:09 sthen Exp $
  2. COMMENT= browser for a large lexical database of English
  3. V= 3.0
  4. DISTNAME= WordNet-$V
  5. PKGNAME= wordnet-$V
  6. REVISION= 6
  7. CATEGORIES= misc
  8. HOMEPAGE= http://wordnet.princeton.edu/
  9. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  10. # BSD
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB += X11 Xau Xdmcp Xext Xft Xrender Xss c expat fontconfig
  13. WANTLIB += freetype m pthread-stubs xcb z ${MODTK_WANTLIB}
  14. MASTER_SITES= http://wordnet.princeton.edu/3.0/
  15. MODULES= x11/tk
  16. RUN_DEPENDS += devel/desktop-file-utils
  17. LIB_DEPENDS += ${MODTK_LIB_DEPENDS}
  18. CONFIGURE_STYLE= simple
  19. CONFIGURE_ARGS= --prefix='${PREFIX}/share/wordnet' \
  20. --exec-prefix='${PREFIX}' \
  21. --sysconfdir='${SYSCONFDIR}' \
  22. --mandir='${PREFIX}/man' \
  23. --includedir='${PREFIX}/include' \
  24. --with-tcl=${MODTCL_LIBDIR} \
  25. --with-tk=${MODTK_LIBDIR}
  26. CFLAGS+= -I${MODTK_INCDIR} -I${MODTCL_INCDIR}
  27. CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
  28. NO_TEST= Yes
  29. pre-configure:
  30. @${SUBST_CMD} ${WRKSRC}/include/wn.h ${WRKSRC}/src/wnb
  31. @perl -pi -e 's,/usr/local/WordNet-3.0,${PREFIX}/share/wordnet,; \
  32. s,([0-9])WN,$$1,g' \${WRKSRC}/doc/man/*.[1-9]
  33. post-install:
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  35. ${SUBST_DATA} ${FILESDIR}/wordnet.desktop \
  36. ${PREFIX}/share/applications/wordnet.desktop
  37. .include <bsd.port.mk>