mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
70 lines
1.9 KiB
Makefile
70 lines
1.9 KiB
Makefile
# Created by: Oliver Lehmann <oliver@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ogre3d
|
|
PORTVERSION= 1.8.1
|
|
CATEGORIES= graphics devel
|
|
MASTER_SITES= SF/ogre/ogre/${PORTVERSION:C/.[0-9]$//g}/${PORTVERSION}
|
|
DISTNAME= ogre_src_v${PORTVERSION:S/./-/g}
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
COMMENT= A scene-oriented, flexible 3D engine written in C++
|
|
|
|
LIB_DEPENDS= zzip.13:${PORTSDIR}/devel/zziplib \
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
freeimage.3:${PORTSDIR}/graphics/freeimage
|
|
|
|
OPTIONS_DEFINE= BOOST
|
|
|
|
USE_LDCONFIG= YES
|
|
USE_BZIP2= YES
|
|
USES= cmake
|
|
USE_SDL= sdl
|
|
USE_XORG= xaw xrandr
|
|
USE_GCC= 4.7+
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MBOOST}
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
|
|
RUND_DEPENDS+= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
|
|
PLIST_SUB+= BOOSTTRUE=""
|
|
PLIST_SUB+= BOOSTFALSE="@comment "
|
|
.else
|
|
PLIST_SUB+= BOOSTTRUE="@comment "
|
|
PLIST_SUB+= BOOSTFALSE=""
|
|
.endif
|
|
|
|
.if ${ARCH} == "powerpc"
|
|
BROKEN= Does not install on powerpc
|
|
.endif
|
|
|
|
post-patch:
|
|
.if ! ${PORT_OPTIONS:MBOOST}
|
|
@${REINPLACE_CMD} -e 's|Boost|No_Boost|g' \
|
|
${WRKSRC}/CMake/Dependencies.cmake
|
|
.endif
|
|
# disable OIS, POCO, TBB detection
|
|
@${REINPLACE_CMD} -e 's|include(FindPkgMacros)|return()|g' \
|
|
${WRKSRC}/CMake/Packages/FindOIS.cmake \
|
|
${WRKSRC}/CMake/Packages/FindPOCO.cmake \
|
|
${WRKSRC}/CMake/Packages/FindTBB.cmake
|
|
@${REINPLACE_CMD} -e 's|\(OGRE_RW_MUTEX[^;]*\)$$|\1;|g' \
|
|
${WRKSRC}/OgreMain/include/OgreWorkQueue.h
|
|
@${REINPLACE_CMD} -e 's|\(OGRE_RW_MUTEX.*\);$$|\1|g' \
|
|
${WRKSRC}/OgreMain/include/Threading/OgreThreadDefinesBoost.h
|
|
@${REINPLACE_CMD} -e '\
|
|
s,defined(__x86_64__),& || defined(__powerpc__) || defined(__sparc64__) || defined(__amd64__),' \
|
|
${WRKSRC}/OgreMain/include/OgrePlatform.h
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for docfile in README COPYING AUTHORS
|
|
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|