diff options
Diffstat (limited to 'x11-toolkits/irrlicht/Makefile')
-rw-r--r-- | x11-toolkits/irrlicht/Makefile | 83 |
1 files changed, 45 insertions, 38 deletions
diff --git a/x11-toolkits/irrlicht/Makefile b/x11-toolkits/irrlicht/Makefile index 46a52c2060f9..7c22f599447f 100644 --- a/x11-toolkits/irrlicht/Makefile +++ b/x11-toolkits/irrlicht/Makefile @@ -6,69 +6,76 @@ # PORTNAME= irrlicht -PORTVERSION= 0.12.0 +PORTVERSION= 1.2 CATEGORIES= x11-toolkits graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= acm@FreeBSD.org COMMENT= High performance realtime 3D engine LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png -USE_GL= yes USE_ZIP= yes -WRKBASE= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -WRKSRC= ${WRKBASE}/source/Irrlicht +USE_DOS2UNIX= yes +USE_GMAKE= yes +USE_GL= yes +USE_XLIB= yes USE_LDCONFIG= yes -SHARED_LIB_VER= 2 +MAKE_ENV+= CXX="${CXX}" + PLIST_SUB+= SHARED_LIB_VER=${SHARED_LIB_VER} +SUB_FILES= pkg-message +BUILD_WRKSRC= ${WRKSRC}/source/Irrlicht +SHARED_LIB_VER= 1.2.0 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 Demo + 11.PerPixelLighting 12.TerrainRendering 13.RenderToTexture 15.LoadIrrFile \ + Demo + +OPTIONS= EXAMPLES "Install example files" on .include <bsd.port.pre.mk> -.if (${ARCH} == amd64) || (${ARCH} == ia64) -CFLAGS+= -fPIC +.if ${OSVERSION} < 500000 +IGNORE= does not build on FreeBSD 4.x .endif -# g++ 2.95.4 does not support the language features used by Irrlicht -USE_GCC= 3.3+ - -PORTDOCS= examples media +.if (${ARCH} == "amd64") || (${ARCH} == "ia64") +CFLAGS+= -fPIC +.endif -# The source resides in a zip file inside the distribution archive -post-extract: - @cd ${WRKBASE}/source && \ - ${UNZIP_CMD} -a source.zip > /dev/null - @${RM} -rf ${WRKSRC}/zlib ${WRKSRC}/jpeglib ${WRKSRC}/libpng +.if !defined(WITHOUT_EXAMPLES) +PLIST_SUB+= EXAMPLES="" +.else +PLIST_SUB+= EXAMPLES="@comment " +.endif do-install: - ${MKDIR} ${PREFIX}/lib - ${INSTALL_PROGRAM} ${WRKSRC}/libIrrlicht.so.${PORTVERSION} ${PREFIX}/lib/libIrrlicht.so.${SHARED_LIB_VER} - cd ${PREFIX}/lib && ${RM} -f libIrrlicht.so && ${LN} libIrrlicht.so.${SHARED_LIB_VER} libIrrlicht.so - ${MKDIR} ${PREFIX}/include/irrlicht - ${FIND} ${WRKSRC}/include -name "*.h" -exec ${INSTALL_DATA} {} \ - ${PREFIX}/include/irrlicht \; + ${MKDIR} ${PREFIX}/include/${PORTNAME} + cd ${WRKSRC}/include && \ + ${INSTALL_DATA} *.h ${PREFIX}/include/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/lib/FreeBSD/libIrrlicht.a ${PREFIX}/lib + ${INSTALL_PROGRAM} ${WRKSRC}/lib/FreeBSD/libIrrlicht.so.${SHARED_LIB_VER} \ + ${PREFIX}/lib && ${LN} -s ${PREFIX}/lib/libIrrlicht.so.${SHARED_LIB_VER} \ + ${PREFIX}/lib/libIrrlicht.so -.if !defined(NOPORTDOCS) -# These are example applications. -.for dir in ${EXAMPLEDIRS} - ${MKDIR} ${DOCSDIR}/examples/${dir} - ${REINPLACE_CMD} -e 's|../../include|${PREFIX}/include/${PORTNAME}|' \ - -e 's|../../lib/Linux|${PREFIX}/lib|' \ - ${WRKBASE}/examples/${dir}/Makefile - ${INSTALL_DATA} ${WRKBASE}/examples/${dir}/Makefile \ - ${DOCSDIR}/examples/${dir} - ${FIND} ${WRKBASE}/examples/${dir} \( -name "*.cpp" -or -name "*.h" \) \ - -exec ${INSTALL_DATA} {} ${DOCSDIR}/examples/${dir} \; +.if !defined(WITHOUT_EXAMPLES) +.for DIRE in ${EXAMPLEDIRS} + ${MKDIR} ${EXAMPLESDIR}/${DIRE} + ${INSTALL_DATA} ${WRKSRC}/examples/${DIRE}/Makefile \ + ${EXAMPLESDIR}/${DIRE} + ${FIND} ${WRKSRC}/examples/${DIRE} \( -name "*.cpp" -or -name "*.h" \) \ + -exec ${INSTALL_DATA} "{}" ${EXAMPLESDIR}/${DIRE} \; .endfor - ${MKDIR} ${DOCSDIR}/media - ${FIND} ${WRKBASE}/media -type f \ - -exec ${INSTALL_DATA} {} ${DOCSDIR}/media \; + ${MKDIR} ${EXAMPLESDIR}/media + ${FIND} ${WRKSRC}/media -type f \ + -exec ${INSTALL_DATA} "{}" ${EXAMPLESDIR}/media \; .endif +post-install: + @${CAT} ${PKGMESSAGE} + .include <bsd.port.post.mk> |