Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $OpenBSD: Makefile,v 1.4 2017/05/06 02:51:13 espie Exp $
  2. COMMENT = improved opensource version of Dune 2
  3. DISTNAME = dunelegacy-0.96.3-src
  4. PKGNAME = ${DISTNAME:S/-src//}
  5. REVISION = 0
  6. CATEGORIES = games x11
  7. HOMEPAGE = http://dunelegacy.sourceforge.net/
  8. MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
  9. # GPLv2/CC-BY-SA
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB = SDL SDL_mixer c enet m pthread ${LIBCXX}
  12. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dunelegacy/}
  13. MASTER_SITES0 = http://www.myway.de/richieland/
  14. EXTRACT_SUFX = .tar.bz2
  15. LIB_DEPENDS = devel/sdl-mixer \
  16. net/enet
  17. RUN_DEPENDS = devel/desktop-file-utils
  18. TEST_DEPENDS = devel/cppunit
  19. .include <bsd.port.arch.mk>
  20. .if ${PROPERTIES:Mclang}
  21. # XXX clang requires c++11 for functional to be complete (in particular
  22. # std::bind) but this turns on narrowing errors, which break dunelegacy
  23. CXXFLAGS += -std=c++11 -Wno-c++11-narrowing
  24. .endif
  25. MAKE_FLAGS += CXXFLAGS="${CXXFLAGS} -DXTHREADS"
  26. CONFIGURE_STYLE = gnu
  27. CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL \
  28. -I${X11BASE}/include"
  29. WRKDIST = ${WRKDIR}/${PKGNAME}
  30. post-extract:
  31. rm -r ${WRKSRC}/include/enet
  32. post-install:
  33. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dunelegacy/
  34. ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dunelegacy/
  35. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  36. ${INSTALL_DATA} ${WRKSRC}/dunelegacy.desktop ${PREFIX}/share/applications/
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
  38. ${INSTALL_DATA} ${WRKSRC}/dunelegacy.png ${PREFIX}/share/pixmaps/dunelegacy.png
  39. .include <bsd.port.mk>