mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
54458a0a0e
Reported by: repology
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
PORTNAME= irrlicht
|
|
PORTVERSION= 1.8.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-toolkits graphics
|
|
MASTER_SITES= SF/${PORTNAME}/Irrlicht%20SDK/${PORTVERSION:R}/${PORTVERSION}/
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= High performance realtime 3D engine
|
|
WWW= https://irrlicht.sourceforge.io/
|
|
|
|
LICENSE= ZLIB
|
|
LICENSE_FILE= ${WRKSRC}/readme.txt
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
USES= alias cpe dos2unix gl gmake jpeg zip xorg
|
|
USE_CXXSTD= gnu++11
|
|
DOS2UNIX_GLOB= Makefile *.cpp *.h *.txt
|
|
USE_GL= gl
|
|
USE_XORG= x11 xxf86vm
|
|
USE_LDCONFIG= yes
|
|
|
|
ALL_TARGET= sharedlib
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION} SOVERSION=${PORTVERSION:R}
|
|
SUB_FILES= pkg-message
|
|
BUILD_WRKSRC= ${WRKSRC}/source/Irrlicht
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
EXAMPLEDIRS= 01.HelloWorld 02.Quake3Map 03.CustomSceneNode 04.Movement \
|
|
05.UserInterface 06.2DGraphics 07.Collision 08.SpecialFX \
|
|
09.Meshviewer 10.Shaders 11.PerPixelLighting \
|
|
12.TerrainRendering 13.RenderToTexture 15.LoadIrrFile Demo
|
|
|
|
OPTIONS_DEFINE= DEBUG EXAMPLES
|
|
|
|
DEBUG_MAKE_ENV_OFF= NDEBUG=1
|
|
|
|
post-extract:
|
|
.for bundled in bzip2 jpeglib libpng zlib
|
|
@${RM} -r ${WRKSRC}/source/Irrlicht/${bundled}
|
|
.endfor
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/#define.*_IRR_USE_NON_SYSTEM_JPEG_LIB_/ d' \
|
|
-e '/#define.*_IRR_USE_NON_SYSTEM_LIB_PNG_/ d' \
|
|
-e '/#define.*_IRR_USE_NON_SYSTEM_ZLIB_/ d' \
|
|
-e '/#define.*_IRR_USE_NON_SYSTEM_BZLIB_/ d' \
|
|
-e '/#define.*_IRR_COMPILE_WITH_JOYSTICK_EVENTS_/ d' \
|
|
${WRKSRC}/include/IrrCompileConfig.h
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libIrrlicht.so
|
|
|
|
post-install-EXAMPLES-on:
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} "${EXAMPLEDIRS}" \
|
|
${STAGEDIR}${EXAMPLESDIR} \
|
|
"( -name Makefile -or -name *\.cpp -or -name *\.h )"
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} media ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|