some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
108 lines
3.4 KiB
Makefile
108 lines
3.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.20 2018/10/24 14:28:13 sthen Exp $
|
|
|
|
COMMENT = fast, real time 3D engine
|
|
DISTNAME = irrlicht-1.8.4
|
|
REVISION = 3
|
|
|
|
SO_VERSION = 3.0
|
|
SHARED_LIBS = Irrlicht ${SO_VERSION}
|
|
|
|
CATEGORIES = x11 games
|
|
|
|
HOMEPAGE = http://irrlicht.sourceforge.net/
|
|
|
|
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
|
|
|
|
# BSD-style (zlib/libpng)
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += GL Xxf86vm bz2 jpeg m png ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=irrlicht/}
|
|
|
|
EXTRACT_SUFX = .zip
|
|
|
|
LIB_DEPENDS = graphics/png \
|
|
graphics/jpeg \
|
|
archivers/bzip2
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
MAKE_ENV += CC="${CC}" \
|
|
CFLAGS="${CFLAGS}" \
|
|
CXX="${CXX}" \
|
|
CXXFLAGS="${CXXFLAGS}" \
|
|
CPPFLAGS="-DNO_IRR_USE_NON_SYSTEM_JPEG_LIB_ \
|
|
-DNO_IRR_USE_NON_SYSTEM_LIB_PNG_ \
|
|
-DNO_IRR_USE_NON_SYSTEM_ZLIB_ \
|
|
-DNO_IRR_USE_NON_SYSTEM_BZLIB_ \
|
|
-DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_" \
|
|
NDEBUG=1 \
|
|
SO_VERSION="${SO_VERSION}"
|
|
MAKE_FLAGS += CXXINCS="-I../../include -I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
NO_TEST = Yes
|
|
|
|
WRKSRC = ${WRKDIST}/source/Irrlicht
|
|
|
|
ALL_TARGET = sharedlib staticlib
|
|
|
|
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 14.Win32Window 15.LoadIrrFile \
|
|
16.Quake3MapShader 17.HelloWorld_Mobile 18.SplitScreen \
|
|
19.MouseAndJoystick 20.ManagedLights 21.Quake3Explorer \
|
|
22.MaterialViewer 23.SMeshHandling Demo
|
|
|
|
pre-patch:
|
|
@perl -pi -e 's/\015//g' ${WRKSRC}/*.{cpp,h} ${WRKSRC}/Makefile \
|
|
${WRKDIST}/include/*.h
|
|
. for DIR in ${EXAMPLEDIRS}
|
|
find ${WRKDIST}/examples/${DIR} -type f \( -name "*.cpp" -or -name \
|
|
"*.h" -or -name Makefile \) -exec perl -pi -e 's/\015//g' \
|
|
"{}" \;
|
|
. endfor
|
|
cd ${WRKDIST}/doc && perl -pi -e 's/\015//g' aesGladman.txt \
|
|
bzip2-license.txt readme.txt upgrade-guide.txt
|
|
cd ${WRKDIST}/media && perl -pi -e 's/\015//g' config.xml d3d8.[pv]sh \
|
|
d3d9.{hlsl,psh,vsh} dwarf-Read-Me.txt earth.x map-20kdm2.txt \
|
|
ninja\ animation\ ranges.txt opengl.{frag,psh,vert,vsh}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/irrlicht
|
|
${INSTALL_DATA} ${WRKDIST}/include/*.h ${PREFIX}/include/irrlicht/
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/lib/OpenBSD/libIrrlicht.a ${PREFIX}/lib/
|
|
${INSTALL_DATA} ${WRKDIST}/lib/OpenBSD/libIrrlicht.so.${LIBIrrlicht_VERSION} \
|
|
${PREFIX}/lib/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/irrlicht
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/irrlicht/doc
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/irrlicht/doc/html
|
|
cd ${WRKDIST}/doc && ${INSTALL_DATA} aesGladman.txt bzip2-license.txt \
|
|
readme.txt upgrade-guide.txt \
|
|
${PREFIX}/share/doc/irrlicht/doc
|
|
find ${WRKDIST}/doc/html -type f -exec ${INSTALL_DATA} "{}" \
|
|
${PREFIX}/share/doc/irrlicht/doc/html/ \;
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/irrlicht/media
|
|
find ${WRKDIST}/media -type f -exec ${INSTALL_DATA} "{}" \
|
|
${PREFIX}/share/doc/irrlicht/media/ \;
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/irrlicht/examples
|
|
${INSTALL_DATA} ${WRKDIST}/examples/Makefile \
|
|
${PREFIX}/share/doc/irrlicht/examples/
|
|
. for DIR in ${EXAMPLEDIRS}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/irrlicht/examples/${DIR}
|
|
find ${WRKDIST}/examples/${DIR} -type f \( -name "*.cpp" -or -name \
|
|
"*.h" -or -name Makefile \) -exec ${INSTALL_DATA} "{}" \
|
|
${PREFIX}/share/doc/irrlicht/examples/${DIR}/ \;
|
|
. endfor
|
|
|
|
|
|
.include <bsd.port.mk>
|