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

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

Revision 1.17, Tue Aug 18 17:57:48 2020 UTC (3 years, 3 months ago) by leot
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3
Changes since 1.16: +2 -1 lines

*: revbump for libsndfile

# $NetBSD: Makefile,v 1.17 2020/08/18 17:57:48 leot Exp $

DISTNAME=	7kaa-2.15.4p1
PKGREVISION=	1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=the3dfxdude/}
EXTRACT_SUFX=	.tar.xz
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	cfkoch@edgebsd.org
HOMEPAGE=	https://7kfans.com/
COMMENT=	Seven Kingdoms: Ancient Adversaries
LICENSE=	gnu-gpl-v2

TOOL_DEPENDS+=	icoutils-[0-9]*:../../graphics/icoutils

USE_LANGUAGES+=	c c++11
GNU_CONFIGURE=	yes
USE_TOOLS+=	msgfmt msgmerge xgettext
USE_TOOLS+=	pkg-config

# C++11
GCC_REQD+=	4.6

LDFLAGS+=	${BUILDLINK_LDADD.gettext}

CONFIGURE_ARGS+=	--disable-sdltest

INSTALLATION_DIRS+=	share/applications
INSTALLATION_DIRS+=	share/pixmaps

# https://www.7kfans.com/forums/viewtopic.php?f=13&t=1150&p=8652
# (bug report; requires login)
BUILDLINK_TRANSFORM+=	rm:-Werror=char-subscripts

post-extract:
	${PREFIX}/bin/icotool -x -i 1 ${WRKSRC}/src/7k.ico -o ${WRKDIR}/7kaa.png

post-install:
	${INSTALL_DATA} ${FILESDIR}/7kaa.desktop \
	    ${DESTDIR}${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKDIR}/7kaa.png \
	    ${DESTDIR}${PREFIX}/share/pixmaps

.include "../../audio/openal-soft/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../net/enet/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"