Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $OpenBSD: Makefile,v 1.34 2017/05/31 08:08:16 espie Exp $
  2. ONLY_FOR_ARCHS= amd64 i386
  3. COMMENT= 3D realtime strategy on a future earth
  4. DISTNAME= warzone2100-3.2.3
  5. CATEGORIES= games
  6. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=warzone2100/}
  7. EXTRACT_SUFX= .tar.xz
  8. HOMEPAGE= http://wz2100.net/
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += GL GLEW GLU Qt5Core Qt5Gui Qt5Script Qt5Widgets SDL2 X11
  12. WANTLIB += Xrandr c crypto fontconfig freetype fribidi harfbuzz iconv
  13. WANTLIB += intl m ogg openal physfs png pthread theora vorbis
  14. WANTLIB += vorbisfile z ${LIBECXX}
  15. MODULES= x11/qt5
  16. COMPILER = gcc
  17. LIB_DEPENDS= audio/libogg \
  18. audio/libvorbis \
  19. audio/openal>=20110627 \
  20. devel/fribidi \
  21. devel/physfs \
  22. devel/sdl2 \
  23. graphics/glew \
  24. graphics/png \
  25. multimedia/libtheora \
  26. x11/qt5/qtscript
  27. BUILD_DEPENDS= archivers/unzip \
  28. archivers/zip \
  29. textproc/asciidoc
  30. RUN_DEPENDS= devel/desktop-file-utils
  31. SEPARATE_BUILD= Yes
  32. USE_GMAKE= Yes
  33. CONFIGURE_STYLE= autoconf
  34. AUTOCONF_VERSION= 2.69
  35. CONFIGURE_ARGS+= --with-distributor="OpenBSD"
  36. CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  37. LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
  38. ac_cv_path_MOC4="${LOCALBASE}/bin/moc4" \
  39. ac_cv_path_UIC4="${LOCALBASE}/bin/uic4"
  40. # XXX this is a horrible hack to make sure we get to our glm
  41. # which is 100% incompatible with ports glm
  42. MAKE_FLAGS += "DEFS=-DHAVE_CONFIG_H -I${WRKSRC}/includefirst"
  43. pre-configure:
  44. mkdir -p ${WRKSRC}/includefirst
  45. ln -sf ${WRKSRC}/3rdparty/glm ${WRKSRC}/includefirst/glm
  46. .for _prog in git svn svnversion
  47. @cd ${WRKDIR}/bin && ln -sf /usr/bin/true ${_prog}
  48. .endfor
  49. @cd ${WRKDIR}/bin && ln -sf ${LOCALBASE}/bin/gflex flex
  50. .include <bsd.port.mk>