Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: Makefile,v 1.26 2017/05/27 07:55:27 fcambus Exp $
  2. COMMENT = Atari 2600 VCS emulator
  3. V = 3.9
  4. DISTNAME = stella-${V}
  5. REVISION = 1
  6. CATEGORIES = emulators
  7. DISTFILES = ${DISTNAME}-src.tar.gz
  8. HOMEPAGE = https://stella-emu.github.io/
  9. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  10. # GPLv2
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB = c ${LIBCXX} m z pthread SDL>=1.2 png
  13. MASTER_SITES = https://github.com/stella-emu/stella/releases/download/release-${V}/
  14. LIB_DEPENDS = devel/sdl \
  15. graphics/png
  16. CXXFLAGS += -I${X11BASE}/include -I${LOCALBASE}/include
  17. LDFLAGS += -L${LOCALBASE}/lib
  18. CONFIGURE_STYLE = simple
  19. CONFIGURE_ARGS += --disable-gl
  20. USE_GMAKE = Yes
  21. NO_TEST = Yes
  22. DOCSBASE = ${WRKDIST}/docs
  23. HTMLDOCS = ${DOCSBASE}/*.html
  24. HTMLGRAPHICS = ${DOCSBASE}/graphics/*.png
  25. DOCSDIR = ${PREFIX}/share/doc/stella
  26. do-install:
  27. ${INSTALL_PROGRAM} ${WRKDIST}/stella ${PREFIX}/bin
  28. post-install:
  29. ${INSTALL_DATA_DIR} ${DOCSDIR}
  30. ${INSTALL_DATA} ${HTMLDOCS} ${DOCSDIR}
  31. ${INSTALL_DATA_DIR} ${DOCSDIR}/graphics
  32. ${INSTALL_DATA} ${HTMLGRAPHICS} ${DOCSDIR}/graphics/
  33. .include <bsd.port.mk>