freebsd-ports/multimedia/assimp/Makefile
Mark Linimon c5b96b3aa8 Provide more descriptive error messages for ports failing on powerpc64.
Approved by:	portmgr (tier-2 blanket)
2017-04-30 01:12:10 +00:00

39 lines
1 KiB
Makefile

# Created by: Yuri <yuri@tsoft.com>
# $FreeBSD$
PORTNAME= assimp
PORTVERSION= 3.3.1
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= multimedia
MAINTAINER= yuri@rawbw.com
COMMENT= Library to import various 3D model formats in a uniform manner
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_powerpc64= Does not build: error: ByteSwap has not been declared
USES= cmake compiler:c++11-lib pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
# CMAKE_ARGS instructs cmake to skip runtime path removal during install
CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=ON -DASSIMP_BUILD_TESTS:BOOL=OFF
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
# GCC C++11 support is broken on FreeBSD (see PR 193528 for details)
CXXFLAGS+= -D_GLIBCXX_USE_C99
.endif
post-patch: .SILENT
${REINPLACE_CMD} -e '/zzip-zlib-config/d' \
${WRKSRC}/cmake-modules/FindZLIB.cmake
${REINPLACE_CMD} -e '/working branch$$/,/^)/d ; /minizip/d ; \
s|$${ASSIMP_LIB_INSTALL_DIR}/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.post.mk>