Adjust the (slightly awkward) construction of DISTNAME so that setting

REVISION doesn't change the stem of the package name. Came after some head
scratching after naddy@ reported a PLIST_DB change to telephony/asterisk's
@depend lines which happened after I bumped REVISION on the asterisk-sounds
ports when I tweaked CATEGORIES.
This commit is contained in:
sthen 2013-05-10 16:56:39 +00:00
parent 0728382e60
commit 7d27df4ce8

View File

@ -1,4 +1,4 @@
# $OpenBSD: asterisk-sounds.port.mk,v 1.4 2013/05/09 07:33:17 sthen Exp $
# $OpenBSD: asterisk-sounds.port.mk,v 1.5 2013/05/10 16:56:39 sthen Exp $
# strictly speaking not, as they are just sound files, but packaging
# these on !shared arch is just a total waste of cycles as asterisk itself
@ -8,8 +8,7 @@ SHARED_ONLY = Yes
MODAS_CODECS ?= gsm alaw ulaw g722 sln16 wav # g729 siren7 siren14
CATEGORIES += telephony
_N = ${MODAS_NAME}-${MODAS_LANG}-${MODAS_CODEC}-${MODAS_VER}
DISTNAME = ${_N:S/--/-/g:S/-$//}
DISTNAME = ${MODAS_NAME}-${MODAS_LANG:C/(.+)/\1-/}${MODAS_CODEC}-${MODAS_VER}
FULLPKGNAME ?= ${DISTNAME}
MASTER_SITES ?= http://downloads.asterisk.org/pub/telephony/sounds/releases/
HOMEPAGE = http://www.asterisk.org/