Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # $OpenBSD: Makefile,v 1.16 2017/06/12 10:57:57 ajacoutot Exp $
  2. BROKEN-i386= need to free up a register
  3. ONLY_FOR_ARCHS= amd64 i386
  4. COMMENT= clone of the original Quake III Arena
  5. DISTNAME= ioquake3-2017.05.31
  6. GH_ACCOUNT= ioquake
  7. GH_PROJECT= ioq3
  8. GH_COMMIT= 8a50e2aa09e05149f4d0b72b148da12caa56f73f
  9. REVISION= 0
  10. CATEGORIES= games
  11. HOMEPAGE= http://ioquake3.org/
  12. MAINTAINER= Aaron Bieber <abieber@openbsd.org>
  13. # GPLv2+
  14. PERMIT_PACKAGE_CDROM= Yes
  15. # openal is statically linked
  16. WANTLIB += GL SDL2 c curl m ogg openal pthread
  17. LIB_DEPENDS= audio/libogg \
  18. audio/openal \
  19. devel/sdl2 \
  20. net/curl
  21. MAKE_ENV= V=1 USE_INTERNAL_OGG=0 CC="${CC}" TOOLS_CC="${CC}"
  22. ALL_TARGET= "release"
  23. USE_GMAKE= Yes
  24. NO_TEST= Yes
  25. CFLAGS+= -pthread -g
  26. QUAKE_ARCH= ${ARCH:S/amd64/x86_64/:S/i386/x86/}
  27. SUBST_VARS+= QUAKE_ARCH
  28. do-install:
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/ioquake3/
  30. ${INSTALL_DATA_DIR} ${PREFIX}/share/ioquake3/{baseq3,missionpack}/
  31. ${INSTALL_PROGRAM} \
  32. ${WRKSRC}/build/release-openbsd-${QUAKE_ARCH}/baseq3/{cgame,qagame,ui}${QUAKE_ARCH}.so \
  33. ${PREFIX}/share/ioquake3/baseq3/
  34. ${INSTALL_PROGRAM} \
  35. ${WRKSRC}/build/release-openbsd-${QUAKE_ARCH}/missionpack/{cgame,qagame,ui}${QUAKE_ARCH}.so \
  36. ${PREFIX}/share/ioquake3/missionpack/
  37. ${INSTALL_PROGRAM} \
  38. ${WRKSRC}/build/release-openbsd-${QUAKE_ARCH}/renderer_opengl{1,2}_${QUAKE_ARCH}.so \
  39. ${PREFIX}/share/ioquake3/
  40. ${INSTALL_PROGRAM} \
  41. ${WRKSRC}/build/release-openbsd-${QUAKE_ARCH}/ioq3ded.${QUAKE_ARCH} \
  42. ${PREFIX}/bin/ioq3ded
  43. ${INSTALL_PROGRAM} \
  44. ${WRKSRC}/build/release-openbsd-${QUAKE_ARCH}/ioquake3.${QUAKE_ARCH} \
  45. ${PREFIX}/bin/ioquake3
  46. .include <bsd.port.mk>