52a527227f
Widelands is a free, open source real-time strategy game with singleplayer campaigns and a multiplayer mode. The game was inspired by Settlers II but has significantly more variety and depth to it. Still, it is easy to get started through playable tutorials.
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.1 2019/08/06 19:42:20 nia Exp $
|
|
|
|
DISTNAME= widelands-build20
|
|
PKGNAME= widelands-20
|
|
CATEGORIES= games
|
|
MASTER_SITES= https://launchpad.net/widelands/${PKGVERSION_NOREV}/${PKGVERSION_NOREV}/+download/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.widelands.org/
|
|
COMMENT= Fantasy real-time strategy game
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_CMAKE= yes
|
|
USE_LANGUAGES= c c++11
|
|
|
|
# C++11
|
|
GCC_REQD+= 4.8
|
|
|
|
CONFIGURE_DIRS= build
|
|
CMAKE_ARG_PATH= ..
|
|
|
|
CMAKE_ARGS+= -DWL_INSTALL_BASEDIR=${PREFIX}
|
|
CMAKE_ARGS+= -DWL_INSTALL_DATADIR=${PREFIX}/share/widelands
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror=shadow
|
|
|
|
# too much spam from boost headers
|
|
BUILDLINK_TRANSFORM+= rm:-Wold-style-cast
|
|
BUILDLINK_TRANSFORM+= rm:-Wundef
|
|
|
|
PYTHON_FOR_BUILD_ONLY= yes
|
|
|
|
INSTALLATION_DIRS+= bin
|
|
INSTALLATION_DIRS+= share/doc/widelands
|
|
|
|
pre-configure:
|
|
${PRINTF} '#include <libintl.h>\n' > ${WRKSRC}/src/third_party/gettext/gettext.h
|
|
${MKDIR} ${WRKSRC}/build
|
|
|
|
post-install:
|
|
${MV} ${DESTDIR}${PREFIX}/widelands \
|
|
${DESTDIR}${PREFIX}/wl_map_object_info \
|
|
${DESTDIR}${PREFIX}/wl_map_info \
|
|
${DESTDIR}${PREFIX}/bin
|
|
${MV} ${DESTDIR}${PREFIX}/VERSION \
|
|
${DESTDIR}${PREFIX}/ChangeLog \
|
|
${DESTDIR}${PREFIX}/CREDITS \
|
|
${DESTDIR}${PREFIX}/COPYING \
|
|
${DESTDIR}${PREFIX}/share/doc/widelands
|
|
|
|
.include "../../audio/SDL2_mixer/buildlink3.mk"
|
|
.include "../../devel/SDL2/buildlink3.mk"
|
|
.include "../../devel/boost-libs/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../fonts/SDL2_ttf/buildlink3.mk"
|
|
.include "../../graphics/SDL2_image/buildlink3.mk"
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
.include "../../graphics/glew/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../lang/python/pyversion.mk"
|
|
.include "../../textproc/icu/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|