Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

33 lines
725 B
Makefile

# $FreeBSD$
PORTNAME= opencollada
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.68
PORTREVISION= 1
CATEGORIES= graphics devel
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library for reading and writing COLLADA files
LICENSE= MIT
BROKEN_sparc64= cannot build: runaway process
LIB_DEPENDS= libpcre.so:devel/pcre
USES= cmake compiler:c++11-lib dos2unix iconv localbase gnome pkgconfig
USE_GNOME= libxml2
USE_GITHUB= yes
GH_ACCOUNT= KhronosGroup
GH_PROJECT= OpenCOLLADA
CFLAGS+= -Wno-narrowing
CMAKE_ON= USE_LIBXML USE_SHARED USE_STATIC
USE_LDCONFIG= ${PREFIX}/lib/opencollada
post-patch:
@${REINPLACE_CMD} -e 's|$${OPENCOLLADA_INST_LIBRARY}/cmake|${PREFIX}/share/cmake/Modules|' ${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>