Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: Makefile,v 1.17 2017/05/31 08:08:16 espie Exp $
  2. COMMENT = Context Free Design Grammar
  3. VERSION = 3.0.9
  4. DISTNAME = ContextFreeSource${VERSION}
  5. PKGNAME = cfdg-${VERSION}
  6. CATEGORIES = graphics
  7. HOMEPAGE = http://www.contextfreeart.org/
  8. MAINTAINER = jared r r spiegel <jrrs@ice-nine.org>
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MASTER_SITES = http://www.contextfreeart.org/download/
  12. EXTRACT_SUFX = .tgz
  13. WANTLIB = c m png z
  14. BUILD_DEPENDS = devel/bison
  15. LIB_DEPENDS = graphics/png
  16. COMPILER = gcc
  17. USE_GMAKE = Yes
  18. WRKDIST = ${WRKDIR}/context-free-${VERSION}
  19. MAKE_ENV += CPPFLAGS="${CFLAGS}"
  20. MAKE_FLAGS = CXX=c++ CC=c++ LIBCXX="${LIBCXX}"
  21. EXAMPLEDIR = ${PREFIX}/share/examples/cfdg
  22. # Work-around bad installation of FlexLexer.h
  23. post-extract:
  24. test -f /usr/include/FlexLexer.h || \
  25. cp /usr/include/g++/FlexLexer.h ${WRKSRC}/src-unix/
  26. do-install:
  27. ${INSTALL_PROGRAM} ${WRKBUILD}/cfdg ${PREFIX}/bin
  28. ${INSTALL_DATA_DIR} ${EXAMPLEDIR}/input
  29. ${INSTALL_DATA} ${WRKSRC}/README ${EXAMPLEDIR}
  30. ${INSTALL_DATA} ${WRKSRC}/input/*.cfdg ${EXAMPLEDIR}/input
  31. .include <bsd.port.mk>