[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / assaultcube

File: [cvs.NetBSD.org] / pkgsrc / games / assaultcube / Makefile (download)

Revision 1.16, Wed Oct 26 10:31:25 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.15: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.16 2022/10/26 10:31:25 wiz Exp $

PKGNAME=	assaultcube-1.2.0.2
PKGREVISION=	13
DISTNAME=	AssaultCube_v${PKGVERSION_NOREV}
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=assaultcube/}
EXTRACT_SUFX=	.tar.bz2
GITHUB_PROJECT=	AC
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://assault.cubers.net/
COMMENT=	Cube-based FPS with realistic environments
LICENSE=	zlib AND x11 AND cc-by-nc-nd-v2.5-license

BUILD_DIRS=	source/src
BUILD_TARGET=	client master server
USE_TOOLS+=	gmake pax pkg-config
USE_LANGUAGES=	c c++

# GCC precompiled headers...
RELRO_SUPPORTED=	no

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	libexec
INSTALLATION_DIRS+=	share/applications
INSTALLATION_DIRS+=	share/assaultcube/config
INSTALLATION_DIRS+=	share/assaultcube/packages
INSTALLATION_DIRS+=	share/assaultcube/scripts
INSTALLATION_DIRS+=	share/icons/hicolor/256x256/apps

pre-configure:
	${RM} -f ${WRKSRC}/source/include/libintl.h
.for prog in client master server
	${SED}  -e 's,@PREFIX@,${PREFIX},g' \
                < ${FILESDIR}/assaultcube.sh.in > \
                ${WRKDIR}/ac_${prog}
.endfor

do-install:
.for prog in client master server
	${INSTALL_SCRIPT} ${WRKDIR}/ac_${prog} \
            ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/source/src/ac_${prog} \
	    ${DESTDIR}${PREFIX}/libexec
.endfor
.for f in config packages scripts
	cd ${WRKSRC}/${f} && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/assaultcube/${f}
.endfor
	${INSTALL_DATA} ${WRKSRC}/docs/images/icon.png \
	    ${DESTDIR}${PREFIX}/share/icons/hicolor/256x256/apps/assaultcube.png
	${INSTALL_DATA} ${FILESDIR}/assaultcube.desktop \
	    ${DESTDIR}${PREFIX}/share/applications

.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/openal-soft/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../net/enet/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"