comms/opencbm-plugin-xa1541: Fix run depends

The XA1541 plugin must depend on the exact same version of opencbm base.

* Make sure both ports use the same PORTREVISION by defining it in
  comms/opencbm/Makefile.inc and enforcing no explicit definition in the
  port Makefiles.
* Use PKGVERSION instead of PORTVERSION to construct the dependency.

Reported by:	pkg-fallout
This commit is contained in:
Felix Palmen 2023-11-05 12:09:01 +01:00
parent 71d020c9ce
commit 131067d9a2
3 changed files with 11 additions and 3 deletions

View File

@ -9,8 +9,8 @@ WWW= http://opencbm.sourceforge.net/
LICENSE= GPLv2
BUILD_DEPENDS= cc65:devel/cc65
RUN_DEPENDS= opencbm=${PORTVERSION}:comms/opencbm \
opencbm-kmod=${PORTVERSION}:comms/opencbm-kmod
RUN_DEPENDS= opencbm=${PKGVERSION}:comms/opencbm \
opencbm-kmod>0:comms/opencbm-kmod
USES= gmake pkgconfig
USE_LDCONFIG= yes

View File

@ -1,6 +1,5 @@
PORTNAME= opencbm
PORTVERSION= ${OCBM_VERSION}
PORTREVISION= 1
CATEGORIES= comms archivers
MAINTAINER= zirias@FreeBSD.org

View File

@ -1,4 +1,5 @@
OCBM_VERSION= 0.4.99.104
OCBM_REVISION= 1
DISTVERSIONPREFIX= v
DISTINFO_FILE= ${.CURDIR}/../opencbm/distinfo
@ -17,3 +18,11 @@ PLIST_SUB= OCBM_VERSION=${OCBM_VERSION}
PORTSCOUT= limit:^v\d
PLUGINBASENAME= ${PREFIX}/lib/opencbm/plugin/libopencbm-
.if ${PORTNAME:Nopencbm-kmod}
. if defined(PORTREVISION)
IGNORE= PORTREVISION must not be defined explicitly
. else
PORTREVISION= ${OCBM_REVISION}
. endif
.endif