ports/182046: Make OpenCV build on powerpc64

Justin Hibbits jhibbits at FreeBSD.org
Thu Sep 12 17:20:00 UTC 2013


>Number:         182046
>Category:       ports
>Synopsis:       Make OpenCV build on powerpc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 17:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Justin Hibbits
>Release:        10-CURRENT
>Organization:
>Environment:
>Description:
opencv makefile uses '-mcpu=G3', but gcc complains '64-bit CPU required'.  Removing this fixes the build, and has no adverse affect on the ppc32 build.
>How-To-Repeat:

>Fix:
Apply attached patch.

Patch attached with submission follows:

--- /usr/local/poudriere/ports/default/graphics/opencv/Makefile	2013-09-01 15:50:06.000000000 -0700
+++ Makefile	2013-09-12 07:06:54.000000000 -0700
@@ -208,6 +208,7 @@
 		-e 's:-pthread:${PTHREAD_LIBS}:g' \
 		-e 's:$${OPENCV_LIB_INSTALL_PATH}/pkgconfig:$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig:g' \
 		-e 's:share/OpenCV/doc:share/doc/opencv:g' \
+		-e 's:-mcpu=G3::g' \
 		${WRKSRC}/CMakeLists.txt
 	@${REINPLACE_CMD} -e 's|${PORTNAME}/samples|examples/${PORTNAME}|g' \
 		${WRKSRC}/samples/*/CMakeLists.txt \


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list