Makefile 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.35 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT= record and analyze your meals for nutrient composition
  3. V= 20.1
  4. REVISION= 0
  5. DISTNAME= nut-${V}
  6. PKGNAME= nutdb-${V}
  7. CATEGORIES= biology
  8. HOMEPAGE= http://nut.sourceforge.net/
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += X11 Xau Xcursor Xdmcp Xext Xfixes Xft Xpm Xinerama
  12. WANTLIB += c fltk fontconfig m pthread ${LIBCXX}
  13. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nut/}
  14. NO_TEST= Yes
  15. LIB_DEPENDS= x11/fltk
  16. MAKE_FLAGS+= CC="${CC}" \
  17. CXX="${CXX}" \
  18. OPT="" \
  19. prefix=${PREFIX} \
  20. libdir=${PREFIX}/lib/nutdb
  21. USE_GMAKE= Yes
  22. pre-configure:
  23. perl -pi -e 's,\b(?:nut)\b,nutdb,g;s,\b(?:NUT)\b,NUTDB,g' ${WRKSRC}/nut.1
  24. do-install:
  25. ${INSTALL_PROGRAM} ${WRKSRC}/nut ${PREFIX}/bin/nutdb
  26. ${INSTALL_PROGRAM} ${WRKSRC}/fltk/Nut ${PREFIX}/bin/Nutdb
  27. ${INSTALL_MAN} ${WRKSRC}/nut.1 ${PREFIX}/man/man1/nutdb.1
  28. ${INSTALL_DATA_DIR} ${PREFIX}/lib/nutdb
  29. ${INSTALL_DATA} ${WRKSRC}/raw.data/* ${PREFIX}/lib/nutdb
  30. .include <bsd.port.mk>