Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # $OpenBSD: Makefile,v 1.19 2014/01/31 09:34:22 jca Exp $
  2. ONLY_FOR_ARCHS = amd64 i386 macppc
  3. COMMENT-main = OpenArena client
  4. COMMENT-server = OpenArena server
  5. COMMENT-data = OpenArena data for client/server
  6. MULTI_PACKAGES = -main -server -data
  7. CATEGORIES = games x11
  8. V = 0.8.8
  9. E_V = ${V}# engine version
  10. PKGNAME = openarena-${V}
  11. PKGNAME-main = openarena-${V}
  12. PKGNAME-server = openarena-server-${V}
  13. PKGNAME-data = openarena-data-${V}
  14. REVISION-main = 1
  15. REVISION-server = 0
  16. PKG_ARCH-data = *
  17. DISTNAME = openarena-${V}
  18. DISTFILES = ${DISTNAME}.zip openarena-engine-source-${E_V}.tar.bz2:0
  19. HOMEPAGE = http://www.openarena.ws/
  20. MS_PREFIX = http://download.tuxfamily.org/openarena/rel/
  21. MASTER_SITES = ${MS_PREFIX}${V:S/.//g}/ \
  22. ${MS_PREFIX}${E_V:S/.//g}/source/
  23. MASTER_SITES0 = http://files.poulsander.com/~poul19/public_files/oa/dev088/ \
  24. http://openbsd.fi/distfiles/
  25. # GPLv2 but contains software with other (free) licenses as well
  26. PERMIT_PACKAGE_CDROM = Yes
  27. WANTLIB-main = GL c m pthread sndio ogg>=5 SDL>=7 vorbis>=7 \
  28. vorbisfile>=5 curl
  29. WANTLIB-server = c m
  30. LIB_DEPENDS-main = audio/libogg \
  31. audio/libvorbis \
  32. devel/sdl \
  33. net/curl
  34. RUN_DEPENDS-main = ${BASE_PKGPATH},-data
  35. RUN_DEPENDS-server = ${BASE_PKGPATH},-data
  36. USE_GMAKE = Yes
  37. MAKE_FLAGS = USE_OPENAL=0 \
  38. FULLBINEXT='' \
  39. V=1 \
  40. DEFAULT_BASEDIR=${LOCALBASE}/share/openarena
  41. .if ${MACHINE_ARCH} == "powerpc"
  42. MAKE_FLAGS += ARCH=ppc \
  43. COMPILE_ARCH=ppc
  44. .endif
  45. .if ${MACHINE_ARCH} == "i386"
  46. MAKE_FLAGS += PIE_CFLAGS=-fno-pie PIE_LDFLAGS=-nopie
  47. .endif
  48. NO_TEST = Yes
  49. WRKDIST = ${WRKDIR}/openarena-engine-source-${E_V}
  50. ALL_TARGET = release
  51. post-extract:
  52. find ${WRKDIR} -name '*.orig' -print0 | xargs -0r rm -f
  53. mkdir ${WRKSRC}/code/sndio
  54. cp ${FILESDIR}/snd_sndio.c ${WRKSRC}/code/sndio
  55. do-install:
  56. ${INSTALL_PROGRAM} \
  57. ${WRKDIST}/build/release-openbsd/openarena-* \
  58. ${PREFIX}/bin/
  59. ${INSTALL_DATA_DIR} ${PREFIX}/share/openarena/baseoa
  60. ${INSTALL_DATA_DIR} ${PREFIX}/share/openarena/missionpack
  61. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/openarena
  62. ${INSTALL_DATA} \
  63. ${WRKDIR}/openarena-${E_V}/README \
  64. ${WRKDIR}/openarena-${E_V}/COPYING \
  65. ${WRKDIR}/openarena-${E_V}/CHANGES \
  66. ${PREFIX}/share/doc/openarena/
  67. ${INSTALL_DATA} ${WRKDIR}/openarena-${E_V}/baseoa/* \
  68. ${PREFIX}/share/openarena/baseoa/
  69. ${INSTALL_DATA} ${WRKDIR}/openarena-${E_V}/missionpack/* \
  70. ${PREFIX}/share/openarena/missionpack/
  71. .include <bsd.port.mk>