openbsd-ports/devel/scons-py2/Makefile
sthen 9c1f7b9371 oops, my grep skills were poor, scons-py2 was still used by games/thedarkmod
reinstate it. pointed out by op@

thedarkmod is old and has mostly (though not entirely) moved to cmake upstream
in more recent releases, but it will make sense to see what happens with
https://forums.thedarkmod.com/index.php?/topic/21368-freebsd-native-port/
before updating to avoid duplicate work
2022-06-07 11:38:09 +00:00

35 lines
795 B
Makefile

COMMENT= Python-based build system
# XXX: keep version in sync with scons.port.mk
VERSION= 2.5.1
DISTNAME= scons-${VERSION}
PKGNAME= scons-py2-${VERSION}
CATEGORIES= devel
HOMEPAGE= https://www.scons.org/
# MIT
PERMIT_PACKAGE= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scons/}
MODULES= lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
NO_TEST= Yes
SUBST_VARS+= VERSION
MODPY_ADJ_FILES += script/scons script/sconsign script/scons-time
# drop the unversioned executables and rename the manpages so it doesn't
# conflict with devel/scons
post-install:
rm ${PREFIX}/bin/scons{,-configure-cache,-time,ign}
cd ${PREFIX}/man/man1 && \
mv scons-time.1 scons-time-${VERSION}.1 && \
mv scons.1 scons-${VERSION}.1 && \
mv sconsign.1 sconsign-${VERSION}.1
.include <bsd.port.mk>