mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
cad/openvsp: fix compilation in 10.1
The port broke on 10.1 since the update to gcc 4.9. Now we enforce gcc 4.8 on FreeBSD 10.1. PR: 215307 Submitted by: fernando.apesteguia@gmail.com (maintainer) Approved by: mentors (implict) MFH: 2016Q4
This commit is contained in:
parent
2e69f2617c
commit
2d4def715c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428665
@ -4,7 +4,7 @@
|
||||
PORTNAME= openvsp
|
||||
PORTVERSION= 3.9.1
|
||||
DISTVERSIONPREFIX= ${GH_PROJECT}_
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= cad
|
||||
|
||||
MAINTAINER= fernando.apesteguia@gmail.com
|
||||
@ -39,7 +39,20 @@ WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_PROJECT}_${PORTVERSION}
|
||||
|
||||
CMAKE_SOURCE_PATH= ${WRKSRC}/SuperProject
|
||||
CMAKE_INSTALL_PREFIX= ${STAGEDIR}${PREFIX}
|
||||
USES= cmake:outsource compiler:gcc-c++11-lib jpeg
|
||||
USES= cmake:outsource jpeg
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OSVERSION} == 1001000
|
||||
# Fails to build with GCC 4.9 in 10.1
|
||||
USE_GCC= 4.8
|
||||
LDFLAGS+= -L${LOCALBASE}/lib/c++
|
||||
CXXFLAGS+= -nostdinc++ -isystem ${LOCALBASE}/include/c++/v1
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++
|
||||
.else
|
||||
USES += compiler:gcc-c++11-lib
|
||||
.endif
|
||||
|
||||
CMAKE_ARGS= -DVSP_USE_SYSTEM_CMINPACK:BOOLEAN=yes \
|
||||
-DVSP_USE_SYSTEM_CPPTEST:BOOLEAN=yes \
|
||||
-DVSP_USE_SYSTEM_LIBXML2:BOOLEAN=yes \
|
||||
|
Loading…
Reference in New Issue
Block a user