2018-04-29 23:31:17 +02:00
# $NetBSD: Makefile,v 1.21 2018/04/29 21:31:41 adam Exp $
2010-12-17 10:20:52 +01:00
#
2014-01-01 03:46:49 +01:00
DISTNAME = supertuxkart-0.8.1-src
2010-12-17 10:20:52 +01:00
PKGNAME = ${ DISTNAME : S /-src// }
2018-04-29 23:31:17 +02:00
PKGREVISION = 11
2010-12-17 10:20:52 +01:00
CATEGORIES = games
MASTER_SITES = ${ MASTER_SITE_SOURCEFORGE : =supertuxkart/ }
EXTRACT_SUFX = .tar.bz2
MAINTAINER = pkgsrc-users@NetBSD.org
HOMEPAGE = http://supertuxkart.sourceforge.net/
COMMENT = Free 3D kart racing game
#LICENSE= gnu-gpl-v3 AND Creative-Commons-Attribution AND Creative-Commons-BY-SA AND Creative-Commons-Sampling+ AND FreeArt License AND SoundSnap license AND Public Domain AND Image*After terms
2014-01-01 03:46:49 +01:00
WRKSRC = ${ WRKDIR } /SuperTuxKart-0.8.1
2013-01-06 16:16:20 +01:00
USE_CMAKE = yes
#USE_PKGLOCALEDIR= yes
2010-12-17 10:20:52 +01:00
USE_LANGUAGES = c c++
USE_TOOLS += gmake
2013-01-06 16:16:20 +01:00
CXXFLAGS += -DNO_IRR_USE_NON_SYSTEM_JPEG_LIB_= 1
CXXFLAGS += -DNO_IRR_USE_NON_SYSTEM_LIB_PNG_= 1
CXXFLAGS += -DNO_IRR_USE_NON_SYSTEM_ZLIB_= 1
CXXFLAGS += -DNO_IRR_USE_NON_SYSTEM_BZLIB_= 1
2016-12-10 09:16:23 +01:00
NOT_PAX_ASLR_SAFE += bin/supertuxkart
NOT_PAX_MPROTECT_SAFE += bin/supertuxkart
2013-01-06 16:16:20 +01:00
# Debug nob for STK
#CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug
2018-01-14 18:33:57 +01:00
SUBST_CLASSES += dos_eol
SUBST_MESSAGE.dos_eol = Removing DOS line-ends
SUBST_STAGE.dos_eol = post-extract
SUBST_FILES.dos_eol = lib/irrlicht/source/Irrlicht/Makefile
SUBST_FILES.dos_eol += lib/irrlicht/source/Irrlicht/os.cpp
SUBST_FILES.dos_eol += lib/irrlicht/source/Irrlicht/COSOperator.cpp
SUBST_FILES.dos_eol += lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
2013-01-06 16:16:20 +01:00
SUBST_FILTER_CMD.dos_eol = ${ TR } -d '\r'
2014-01-01 03:46:49 +01:00
CMAKE_ARGS += -DUSE_WIIUSE= OFF
. i n c l u d e "../../mk/bsd.prefs.mk"
. i f ${OPSYS} != "Linux"
SUBST_CLASSES += js
SUBST_STAGE.js = pre-configure
SUBST_MESSAGE.js = Disable Linux joystick support.
SUBST_FILES.js += lib/irrlicht/include/IrrCompileConfig.h
SUBST_SED.js += -e '/define.*_IRR_COMPILE_WITH_JOYSTICK_EVENTS_/d'
. e n d i f
2013-01-06 16:16:20 +01:00
# for irrlicht debugging
#pre-build:
# cd ${WRKSRC}/lib/irrlicht/source/Irrlicht && \
2013-01-22 12:26:02 +01:00
# ${MAKE_ENV} DEBUG=1 make ${_MAKE_JOBS}
2013-01-06 16:16:20 +01:00
pre-build :
cd ${ WRKSRC } /lib/irrlicht/source/Irrlicht && \
2013-01-22 12:26:02 +01:00
${ MAKE_ENV } NDEBUG = 1 make ${ _MAKE_JOBS }
2013-01-06 16:16:20 +01:00
. i n c l u d e "../../archivers/bzip2/buildlink3.mk"
2016-07-16 02:00:25 +02:00
. i n c l u d e "../../audio/openal-soft/buildlink3.mk"
2010-12-17 10:20:52 +01:00
. i n c l u d e "../../audio/libvorbis/buildlink3.mk"
2013-01-06 16:16:20 +01:00
. i n c l u d e "../../converters/fribidi/buildlink3.mk"
2010-12-17 10:20:52 +01:00
. i n c l u d e "../../devel/SDL/buildlink3.mk"
2013-01-06 16:16:20 +01:00
. i n c l u d e "../../devel/zlib/buildlink3.mk"
2010-12-17 10:20:52 +01:00
. i n c l u d e "../../games/plib/buildlink3.mk"
2013-01-06 16:16:20 +01:00
. i n c l u d e "../../mk/jpeg.buildlink3.mk"
. i n c l u d e "../../graphics/png/buildlink3.mk"
2010-12-17 10:20:52 +01:00
. i n c l u d e "../../multimedia/libogg/buildlink3.mk"
. i n c l u d e "../../sysutils/desktop-file-utils/desktopdb.mk"
2013-01-06 16:16:20 +01:00
. i n c l u d e "../../www/curl/buildlink3.mk"
2015-03-31 17:39:07 +02:00
. i n c l u d e "../../x11/libXxf86vm/buildlink3.mk"
2010-12-17 10:20:52 +01:00
. i n c l u d e "../../mk/bsd.pkg.mk"