Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # $OpenBSD: Makefile,v 1.2 2017/03/27 09:59:58 fcambus Exp $
  2. COMMENT = interpreter for BBC Basic (Basic V)
  3. DISTNAME = brandy-1.20.1
  4. REVISION = 0
  5. CATEGORIES = lang
  6. HOMEPAGE = http://jaguar.orpheusweb.co.uk/branpage.html
  7. MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB += SDL c m
  11. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=brandy/}
  12. LIB_DEPENDS += devel/sdl
  13. CFLAGS += -I${LOCALBASE}/include/SDL
  14. LDFLAGS += -L${LOCALBASE}/lib
  15. MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}"
  16. MAKE_FILE = makefile
  17. NO_TEST = Yes
  18. post-build:
  19. cd ${WRKSRC}; \
  20. ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f makefile.text
  21. do-install:
  22. ${INSTALL_PROGRAM} ${WRKSRC}/tbrandy ${PREFIX}/bin/brandy
  23. ${INSTALL_PROGRAM} ${WRKSRC}/brandy ${PREFIX}/bin/brandy-sdl
  24. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/brandy
  25. ${INSTALL_DATA} ${WRKSRC}/docs/basic ${PREFIX}/share/doc/brandy
  26. ${INSTALL_DATA} ${WRKSRC}/docs/messages ${PREFIX}/share/doc/brandy
  27. ${INSTALL_DATA} ${WRKSRC}/docs/use ${PREFIX}/share/doc/brandy
  28. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/brandy
  29. ${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/brandy
  30. .include <bsd.port.mk>