freebsd-ports/games/redeclipse-data/Makefile
Stefan Eßer 5933ac0b09 */*: Remove redundant '-[0-9]*' from CONFLICTS_INSTALL
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Approved by: portmgr (blanket)
2021-11-23 23:11:40 +01:00

37 lines
990 B
Makefile

PORTNAME= redeclipse-data
PORTVERSION= 2.0.0
DISTVERSIONPREFIX= v
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Data files for Red Eclipse first-person shooter
CONFLICTS_INSTALL=redeclipse-data16
USE_GITHUB= nodefault
.include "${.CURDIR}/Makefile.tuples"
NO_BUILD= yes
NO_ARCH= yes
DATADIR= ${PREFIX}/share/redeclipse
PORTDATA= *
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
Makefile.tuples::
@${ECHO_CMD} '# $$Free''BSD$$' > ${.CURDIR}/Makefile.tuples
@${RM} -rf ${WRKDIR}/.maintainer.checkout
@${MKDIR} ${WRKDIR}/.maintainer.checkout \
&& cd ${WRKDIR}/.maintainer.checkout \
&& git clone --depth=1 --branch=${DISTVERSIONPREFIX}${PORTVERSION} \
https://github.com/redeclipse/base.git . \
&& git submodule \
| awk '{print substr($$1,2,7), substr($$2,6)}' \
| awk '{printf("%sredeclipse:%s:%s:%s/%s \\\n", NR==1 ? "GH_TUPLE=\t" : "\t\t", $$2, $$1, $$2, $$2, $$2)}' \
>> ${.CURDIR}/Makefile.tuples
.include <bsd.port.mk>