asterisk-sounds.port.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: asterisk-sounds.port.mk,v 1.13 2017/05/12 14:19:50 sthen Exp $
  2. # sync with asterisk-sounds/Makefile and asterisk-sounds/*sounds/Makefile
  3. MODAS_CODECS ?= gsm alaw ulaw g722 g729 wav # sln16 siren7 siren14
  4. CATEGORIES += telephony
  5. DISTNAME = ${MODAS_NAME}-${MODAS_LANG:C/(.+)/\1-/}${MODAS_CODEC}-${MODAS_VER}
  6. FULLPKGNAME ?= ${DISTNAME}
  7. MASTER_SITES ?= http://downloads.asterisk.org/pub/telephony/sounds/releases/
  8. HOMEPAGE = http://www.asterisk.org/
  9. COMMENT = ${MODAS_DESC}
  10. EXTRACT_ONLY =
  11. NO_BUILD = Yes
  12. NO_TEST = Yes
  13. PKG_ARCH = *
  14. _LN-en_AU = Australian English
  15. _LN-en = English
  16. _LN-es = Spanish
  17. _LN-fr = French
  18. _LN-it = Italian
  19. _LN-ru = Russian
  20. MODAS_LANGNAME = ${_LN-${MODAS_LANG}}
  21. MODAS_CODEC = ${FLAVOR}
  22. FLAVORS ?= ${MODAS_CODECS}
  23. FLAVOR ?= gsm
  24. .if defined(MODAS_LANG)
  25. . for c in ${MODAS_CODECS}
  26. SUPDISTFILES += ${MODAS_NAME}-${MODAS_LANG}-$c-${MODAS_VER}${EXTRACT_SUFX}
  27. . endfor
  28. .else
  29. . for c in ${MODAS_CODECS}
  30. SUPDISTFILES += ${MODAS_NAME}-$c-${MODAS_VER}${EXTRACT_SUFX}
  31. . endfor
  32. .endif
  33. _T = ${MODAS_NAME:S/asterisk-//}
  34. MODAS_INST ?= share/asterisk/sounds/${MODAS_LANG}
  35. SUBST_VARS += MODAS_INST L MODAS_LANGNAME MODAS_CODEC MODAS_VER
  36. do-install:
  37. ${INSTALL_DATA_DIR} ${PREFIX}/${MODAS_INST}
  38. ${GZIP_CMD} -dc ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
  39. ${TAR} xf - -C ${PREFIX}/${MODAS_INST}