From owner-svn-ports-all@FreeBSD.ORG Sun Nov 17 20:07:07 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFB70193; Sun, 17 Nov 2013 20:07:07 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BF505207B; Sun, 17 Nov 2013 20:07:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAHK77Bt043851; Sun, 17 Nov 2013 20:07:07 GMT (envelope-from mandree@svn.freebsd.org) Received: (from mandree@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAHK77IY043850; Sun, 17 Nov 2013 20:07:07 GMT (envelope-from mandree@svn.freebsd.org) Message-Id: <201311172007.rAHK77IY043850@svn.freebsd.org> From: Matthias Andree Date: Sun, 17 Nov 2013 20:07:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334119 - head/graphics/rawtherapee X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 20:07:08 -0000 Author: mandree Date: Sun Nov 17 20:07:07 2013 New Revision: 334119 URL: http://svnweb.freebsd.org/changeset/ports/334119 Log: Miscellaneous fixes. - Add desktop-file-utils to the USES list, bumping PORTREVISION. - Force USE_GCC only on OSVERSION < 1000024, to avoid running into a libc++/libstdc++ mismatch in glibmm-2.4 on FreeBSD 10 (which caused linker troubles in the Glib:: namespace due to libc++-based different mangling - glibmm is compiled to use libc++ on 10-STABLE, so we cannot USE_GCC there). - Force disable OpenMP option on non-GCC systems, because clang does not yet support it. - In order to be able to use clang, force ipsharpen.cc to be compiled with -O1 only because -O2 or higher optimization levels lead to excessive compile times, so long that I never waited for the compile to complete (over 10 minutes on a Phenom II at 2.5 GHz). - Quench unused-command-line-arguments warnings on clang. This should fix the compile on 10-STABLE and HEAD. Whether the software actually works I cannot currently test due to lack of a full desktop install of 10-STABLE. Modified: head/graphics/rawtherapee/Makefile Modified: head/graphics/rawtherapee/Makefile ============================================================================== --- head/graphics/rawtherapee/Makefile Sun Nov 17 19:39:42 2013 (r334118) +++ head/graphics/rawtherapee/Makefile Sun Nov 17 20:07:07 2013 (r334119) @@ -3,7 +3,7 @@ PORTNAME= rawtherapee PORTVERSION= 4.0.11 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE @@ -23,12 +23,10 @@ LIB_DEPENDS= libgtkmm-2.4.so:${PORTSDIR} libfftw3f.so:${PORTSDIR}/math/fftw3-float \ libcanberra-gtk3.so:${PORTSDIR}/audio/libcanberra-gtk3 -USES= cmake:outsource pkgconfig +USES= cmake:outsource pkgconfig compiler:features desktop-file-utils USE_XZ= yes USE_GNOME= gtk20 glib20 USE_LDCONFIG= yes -# base GCC and clang in 9.1-RELEASE are insufficient: -USE_GCC= yes CFLAGS+= -I${LOCALBASE}/include -fPIC ${PTHREAD_CFLAGS} CXXFLAGS+= -I${LOCALBASE}/include -fPIC ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} @@ -47,9 +45,17 @@ INSTALLS_ICONS= yes RTDIR= ${PREFIX}/libdata/${PORTNAME} -OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENMP +OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENMP OPTIONS_DEFAULT= OPTIMIZED_CFLAGS OPENMP -OPENMP_DESC= Enable multicore processing using OpenMP +OPENMP_DESC= Enable multicore processing using OpenMP + +.include + +.if ${OSVERSION} < 1000024 +USE_GCC= yes +.endif + +.include post-patch: @${REINPLACE_CMD} -e 's###g' \ @@ -58,13 +64,28 @@ post-patch: @${REINPLACE_CMD} -e 's#DESTINATION "$${CMAKE_INSTALL_PREFIX}/share/man/man1"#DESTINATION "${MANPREFIX}/man/man1/"#' \ ${WRKSRC}/CMakeLists.txt +.if ${COMPILER_TYPE} != gcc +pre-build: + # must compile ipsharpen.cc with lower optimization else the compilation time is excessive + # this is clang-specific and does not affect GCC. + ${REINPLACE_CMD} -e 's,-o CMakeFiles/rtengine.dir/ipsharpen.cc.o,-O1 &,' \ + ${CONFIGURE_WRKSRC}/rtengine/CMakeFiles/rtengine.dir/build.make +.if ${PORT_OPTIONS:MOPENMP} + @${ECHO_CMD} "WARNING: ignoring OpenMP option, not supported on clang." ; sleep 5 +.endif +.endif + +.if ${COMPILER_TYPE} == clang +CFLAGS+= -Qunused-arguments +CXXFLAGS+= -Qunused-arguments +.endif + # paranoia: run rawtherapee --help to be sure it finds all its # shared libraries (this hinges on proper RPATH setting and propagation) post-install: ${SETENV} HOME=/dev/null ${STAGEDIR}${PREFIX}/bin/rawtherapee --help 2>&1 \ | ${EGREP} -q "RawTherapee, version ${PKGVERSION:C/_.*//:C/,.*//}" -.include .if ${ARCH} == "amd64" || ${ARCH} == "i386" .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} @@ -75,10 +96,11 @@ CXXFLAGS+= -O3 -ffast-math -fexpensive-o .endif .endif -.if ${PORT_OPTIONS:MOPENMP} -CMAKE_ARGS+= -DOPTION_OMP:BOOL=ON -.else -CMAKE_ARGS+= -DOPTION_OMP:BOOL=OFF +_OpenMP_args= -DOPTION_OMP:BOOL=OFF +.if ${PORT_OPTIONS:MOPENMP} && ${COMPILER_TYPE} == gcc +_OpenMP_args= -DOPTION_OMP:BOOL=ON .endif +CMAKE_ARGS+= ${_OpenMP_args} + .include