Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $OpenBSD: Makefile,v 1.45 2017/05/31 08:08:15 espie Exp $
  2. BROKEN-hppa = undefined reference to __sync atomic ops
  3. BROKEN-mips64 = undefined reference to __sync atomic ops
  4. BROKEN-mips64el = undefined reference to __sync atomic ops
  5. COMMENT = cross-platform 3D audio API
  6. V = 1.16.0
  7. EPOCH = 0
  8. DISTNAME = openal-soft-$V
  9. PKGNAME = openal-$V
  10. CATEGORIES = audio
  11. SHARED_LIBS = openal 2.2
  12. REVISION = 0
  13. HOMEPAGE = http://kcat.strangesoft.net/openal.html
  14. MAINTAINER = David Carlier <devnexen@gmail.com>
  15. # LGPLv2+
  16. PERMIT_PACKAGE_CDROM = Yes
  17. WANTLIB += c m pthread sndio ${LIBECXX}
  18. MASTER_SITES = ${HOMEPAGE:S,.html,-releases/,}
  19. EXTRACT_SUFX = .tar.bz2
  20. CONFIGURE_ARGS =-DCMAKE_BUILD_TYPE=OpenBSD \
  21. -DALSOFT_SYSCONFDIR=${SYSCONFDIR} \
  22. -DALSOFT_CONFIG_DESTINATION=share/examples/openal \
  23. -DALSOFT_DLOPEN=Off \
  24. -DALSOFT_UTILS=On \
  25. -DALSOFT_EXAMPLES=Off \
  26. -DALSOFT_REQUIRE_SNDIO=On \
  27. -DALSOFT_BACKEND_ALSA=Off \
  28. -DALSOFT_BACKEND_COREAUDIO=Off \
  29. -DALSOFT_BACKEND_DSOUND=Off \
  30. -DALSOFT_BACKEND_JACK=Off \
  31. -DALSOFT_BACKEND_MMDEVAPI=Off \
  32. -DALSOFT_BACKEND_OPENSL=Off \
  33. -DALSOFT_BACKEND_OSS=Off \
  34. -DALSOFT_BACKEND_PORTAUDIO=Off \
  35. -DALSOFT_BACKEND_PULSEAUDIO=Off \
  36. -DALSOFT_BACKEND_QSA=Off \
  37. -DALSOFT_BACKEND_SOLARIS=Off \
  38. -DALSOFT_BACKEND_WAVE=Off \
  39. -DALSOFT_BACKEND_WINMM=Off \
  40. -DALSOFT_NO_CONFIG_UTIL=On
  41. MODULES = devel/cmake
  42. COMPILER = clang gcc
  43. # clang fails on those architectures
  44. MODGCC4_ARCHS = sparc64 powerpc
  45. MODCLANG_ARCHS = aarch64 amd64 arm i386 mips64 mips64el
  46. SEPARATE_BUILD =Yes
  47. NO_TEST = Yes
  48. pre-build:
  49. @${SUBST_CMD} ${WRKSRC}/Alc/alcConfig.c ${WRKSRC}/alsoftrc.sample
  50. post-install:
  51. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openal
  52. ${INSTALL_DATA} ${WRKSRC}/alsoftrc.sample \
  53. ${PREFIX}/share/examples/openal
  54. .include <bsd.port.mk>