1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

Remove conditions with USE_GCC (not needed anymore)

This commit is contained in:
Martin Matuska 2011-06-29 13:15:26 +00:00
parent 32c4e4b39f
commit e7d91d6398
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276663

View File

@ -202,23 +202,6 @@ CMAKE_ARGS+= -DBUILD_TESTS:BOOL=Off \
.include <bsd.port.pre.mk>
# This whole block looks a bit hackish, but it works...
.if ${ARCH} == "amd64" && ${OSVERSION} < 700042
USE_GCC= 4.2+
.else
CMAKE_OUTSOURCE= yes
.if ${ARCH} == "i386" && ${OSVERSION} >= 700042 && ${OSVERSION} < 800107
USE_GCC= 4.4+
.endif
.endif
# Any other way to override CFLAGS and CXXFLAGS?
.ifdef(USE_GCC)
CMAKE_SOURCE_PATH= -DCMAKE_C_FLAGS:STRING="${CFLAGS:C/-Wl[^ ]*//g}" \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS:C/-Wl[^ ]*//g}" \
${WRKSRC}
.endif
post-patch:
@${MKDIR} ${CONFIGURE_WRKSRC}
@${REINPLACE_CMD} -e 's:set(OPENCV_SOVERSION.*:set(OPENCV_SOVERSION "$${OPENCV_VERSION_MAJOR}"):' \