Update multimedia/assimp to version 3.3.1_1
[dports.git] / multimedia / assimp / Makefile
1 # Created by: Yuri <yuri@tsoft.com>
2 # $FreeBSD$
3
4 PORTNAME=       assimp
5 PORTVERSION=    3.3.1
6 DISTVERSIONPREFIX=      v
7 PORTREVISION=   1
8 CATEGORIES=     multimedia
9
10 MAINTAINER=     yuri@rawbw.com
11 COMMENT=        Library to import various 3D model formats in a uniform manner
12
13 LICENSE=        BSD3CLAUSE
14 LICENSE_FILE=   ${WRKSRC}/LICENSE
15
16 BROKEN_aarch64=         Does not compile: error: non-constant-expression cannot be narrowed from type int8_t to char
17 BROKEN_armv6=           Does not compile: error: non-constant-expression cannot be narrowed from type int8_t to char
18 BROKEN_powerpc64=       Does not build
19 BROKEN_armv6=           Does not compile: error: ByteSwap has not been declared
20
21 USES=           cmake compiler:c++11-lib pkgconfig
22 USE_GITHUB=             yes
23 USE_LDCONFIG=   yes
24
25 # CMAKE_ARGS instructs cmake to skip runtime path removal during install
26 CMAKE_ARGS+=    -DCMAKE_SKIP_RPATH:BOOL=ON -DASSIMP_BUILD_TESTS:BOOL=OFF
27
28 .include <bsd.port.pre.mk>
29
30 .if ${CHOSEN_COMPILER_TYPE} == gcc
31 # GCC C++11 support is broken on FreeBSD (see PR 193528 for details)
32 CXXFLAGS+=      -D_GLIBCXX_USE_C99
33 .endif
34
35 post-patch: .SILENT
36         ${REINPLACE_CMD} -e '/zzip-zlib-config/d' \
37                 ${WRKSRC}/cmake-modules/FindZLIB.cmake
38         ${REINPLACE_CMD} -e '/working branch$$/,/^)/d ; /minizip/d ; \
39                 s|$${ASSIMP_LIB_INSTALL_DIR}/pkgconfig|libdata/pkgconfig|' \
40                 ${WRKSRC}/CMakeLists.txt
41
42 .include <bsd.port.post.mk>