freebsd-ports/games/openarena/Makefile
Stefan Eßer 4ddd2f00d3 games/openarena: fix version number going backwards
This ports needs to always define the PORTREVISION macro to some value
to prevent it from defaulting to the PORTREVISION set in the ioquake3
port.

Since the ioquake3 port was at PORTREVISION 17, and this setting had
leaked into the openarena and openarena-server ports, setting the
PORTREVISION to 1 in openarena caused the version number to decrease.

Set PORTREVISION to 18 (1 higher than the current value in ioquake3)
to make its version compare higher than before the recent port update.

This commit fixes the version number in both openarena and
openarena-server.
2022-09-19 16:53:33 +02:00

46 lines
1.2 KiB
Makefile

PORTNAME= openarena
PORTVERSION= ${GAMEVERSION}.s${SVNREVISION}
PORTREVISION= 18 # keep and reset to 0 on version upgrade
PORTEPOCH= 2
MASTER_SITES= SF/oarena/src \
http://files.poulsander.com/~poul19/public_files/oa/dev088/
DISTNAME= ${PORTNAME}-engine-source-${GAMEVERSION}
EXTRACT_SUFX= .tar.bz2 # override master port
MAINTAINER= ports@FreeBSD.org
COMMENT= Quake3 total conversion based on the ioquake3 engine
WWW= http://openarena.ws/
LICENSE?= GPLv2
RUN_DEPENDS= ${LOCALBASE}/${DATADIR_REL}/${Q3BASE}/pak0.pk3:games/openarena-data
USES= tar:bzip2
MASTERDIR= ${.CURDIR}/../ioquake3
DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr
DISTINFO_FILE= ${.CURDIR}/../${PORTNAME}/distinfo
PATCHDIR= ${.CURDIR}/../${PORTNAME}/files
PKGMESSAGE= ${.CURDIR}/../${PORTNAME}/pkg-message
IOQ3?= CLIENT
IOQ3ARCH?= ${ARCH}
IOQ3SDL= sdl
# OpenArena doc is too messy to bother
OPTIONS_EXCLUDE= DOCS
GAMEVERSION= 0.8.8
SVNREVISION= 1910
Q3ENGINEVER= SVN${SVNREVISION}+${GAMEVERSION}
Q3TOTALCONV= yes
Q3CLIENT= openarena
Q3SERVER= oa_ded
Q3BASE= baseoa
Q3DIR= ${DATADIR}
# No icon included with OpenArena
Q3ICON=
pre-patch:
@${FIND} ${WRKSRC} -name \*.orig -delete
.include "${MASTERDIR}/Makefile"