Index: head/Mk/Uses/cmake.mk =================================================================== --- head/Mk/Uses/cmake.mk (revision 394571) +++ head/Mk/Uses/cmake.mk (revision 394572) @@ -1,123 +1,120 @@ # $FreeBSD$ # # Provide support for CMake based projects # # Feature: cmake # Usage: USES=cmake or USES=cmake:ARGS # Valid ARGS: outsource # ARGS description: # outsource perform an out-of-source build # # # Additional variables that affect cmake behaviour: # # User defined variables: # CMAKE_VERBOSE - Enable verbose build output # Default: not set, unless BATCH or PACKAGE_BUILDING is defined # CMAKE_NOCOLOR - Disable colour build output # Default: not set, unless BATCH or PACKAGE_BUILDING is defined # CMAKE_NINJA - Use ninja instead of make(1) # # Variables for ports: -# CMAKE_ENV - Environment passed to cmake. -# Default: ${CONFIGURE_ENV} # CMAKE_ARGS - Arguments passed to cmake # Default: see below # CMAKE_BUILD_TYPE - Type of build (cmake predefined build types). # Projects may have their own build profiles. # CMake supports the following types: Debug, # Release, RelWithDebInfo and MinSizeRel. # Debug and Release profiles respect system # CFLAGS, RelWithDebInfo and MinSizeRel will set # CFLAGS to "-O2 -g" and "-Os -DNDEBUG". # Default: Release, if WITH_DEBUG is not set, # Debug otherwise # CMAKE_SOURCE_PATH - Path to the source directory # Default: ${WRKSRC} # # MAINTAINER: kde@FreeBSD.org .if !defined(_INCLUDE_USES_CMAKE_MK) _INCLUDE_USES_CMAKE_MK= yes _valid_ARGS= outsource run # Sanity check .for arg in ${cmake_ARGS} . if empty(_valid_ARGS:M${arg}) IGNORE= Incorrect 'USES+= cmake:${cmake_ARGS}' usage: argument [${arg}] is not recognized . endif .endfor CMAKE_BIN= ${LOCALBASE}/bin/cmake BUILD_DEPENDS+= ${CMAKE_BIN}:${PORTSDIR}/devel/cmake .if ${cmake_ARGS:Mrun} RUN_DEPENDS+= ${CMAKE_BIN}:${PORTSDIR}/devel/cmake .endif .if defined(WITH_DEBUG) CMAKE_BUILD_TYPE?= Debug .else CMAKE_BUILD_TYPE?= Release .endif #defined(WITH_DEBUG) PLIST_SUB+= CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:tl}" .if defined(STRIP) && ${STRIP} != "" && !defined(WITH_DEBUG) INSTALL_TARGET?= install/strip .endif -CMAKE_ENV?= ${CONFIGURE_ENV} CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \ -DCMAKE_CXX_COMPILER:STRING="${CXX}" \ -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ -DCMAKE_C_FLAGS_DEBUG:STRING="${CFLAGS}" \ -DCMAKE_C_FLAGS_RELEASE:STRING="${CFLAGS}" \ -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \ -DCMAKE_CXX_FLAGS_DEBUG:STRING="${CXXFLAGS}" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="${CXXFLAGS}" \ -DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_MODULE_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_SHARED_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_INSTALL_PREFIX:PATH="${CMAKE_INSTALL_PREFIX}" \ -DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES CMAKE_INSTALL_PREFIX?= ${PREFIX} .if defined(BATCH) || defined(PACKAGE_BUILDING) CMAKE_VERBOSE= yes CMAKE_NOCOLOR= yes .endif .if defined(CMAKE_VERBOSE) CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON .endif .if defined(CMAKE_NOCOLOR) CMAKE_ARGS+= -DCMAKE_COLOR_MAKEFILE:BOOL=OFF .endif .if defined(CMAKE_NINJA) .include "${USESDIR}/ninja.mk" .endif _CMAKE_MSG= "===> Performing in-source build" CMAKE_SOURCE_PATH?= ${WRKSRC} .if ${cmake_ARGS:Moutsource} _CMAKE_MSG= "===> Performing out-of-source build" CONFIGURE_WRKSRC= ${WRKDIR}/.build BUILD_WRKSRC= ${CONFIGURE_WRKSRC} INSTALL_WRKSRC= ${CONFIGURE_WRKSRC} .endif .if !target(do-configure) do-configure: @${ECHO_MSG} ${_CMAKE_MSG} ${MKDIR} ${CONFIGURE_WRKSRC} - @cd ${CONFIGURE_WRKSRC}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_SOURCE_PATH} + @cd ${CONFIGURE_WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_SOURCE_PATH} .endif .endif #!defined(_INCLUDE_USES_CMAKE_MK) Index: head/comms/gnuradio/Makefile =================================================================== --- head/comms/gnuradio/Makefile (revision 394571) +++ head/comms/gnuradio/Makefile (revision 394572) @@ -1,113 +1,113 @@ # $FreeBSD$ PORTNAME= gnuradio PORTVERSION= 3.7.7.1 CATEGORIES= comms astro hamradio MASTER_SITES= http://gnuradio.org/releases/gnuradio/ \ LOCAL/db MAINTAINER= hamradio@FreeBSD.org COMMENT= Amateur Radio Software defined radio LICENSE= GPLv3 BUILD_DEPENDS= sdl-config:${PORTSDIR}/devel/sdl12 \ swig2.0:${PORTSDIR}/devel/swig20 \ cheetah:${PORTSDIR}/devel/py-cheetah \ ${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \ ${PYTHON_PKGNAMEPREFIX}qt4>0:${PORTSDIR}/devel/py-qt4 \ xdg-open:${PORTSDIR}/devel/xdg-utils \ guile:${PORTSDIR}/lang/guile \ aconnect:${PORTSDIR}/audio/alsa-utils \ git:${PORTSDIR}/devel/git \ ${PYNUMPY} \ ${PYTHON_SITELIBDIR}/ephem/__init__.py:${PORTSDIR}/astro/pyephem LIB_DEPENDS= libcppunit.so:${PORTSDIR}/devel/cppunit \ libfftw3.so:${PORTSDIR}/math/fftw3 \ libfftw3f.so:${PORTSDIR}/math/fftw3-float \ libqwt.so:${PORTSDIR}/x11-toolkits/qwt5 \ libboost_python.so:${PORTSDIR}/devel/boost-python-libs \ libportaudio.so:${PORTSDIR}/audio/portaudio \ libjack.so:${PORTSDIR}/audio/jack \ libasound.so:${PORTSDIR}/audio/alsa-lib \ libgsl.so:${PORTSDIR}/math/gsl RUN_DEPENDS:= ${BUILD_DEPENDS} USES= cmake:outsource iconv perl5 python:2.7 shebangfix SHEBANG_FILES= grc/freedesktop/grc_setup_freedesktop.in -CMAKE_ENV+= LD_PRELOAD="${GCC_LIBS}/libstdc++.so:${GCC_LIBS}/libgcc_s.so.1" +CONFIGURE_ENV+= LD_PRELOAD="${GCC_LIBS}/libstdc++.so:${GCC_LIBS}/libgcc_s.so.1" CMAKE_ARGS+= -DSWIG_EXECUTABLE:STRING="${LOCALBASE}/bin/swig2.0" CMAKE_ARGS+= -DICONV_PREFIX:STRING="${ICONV_PREFIX}" \ -DICONV_LIB:STRING="X${ICONV_LIB}" \ -DENABLE_GR_CTRLPORT="YES" # for detailed debugging uncomment the next two lines as needed #CMAKE_ARGS+= --debug-output --trace MAJOR_SUB_VER= 3.7.7 DOCSDIR= share/doc/${PORTNAME}-${MAJOR_SUB_VER} USE_GNOME= pygtk2 USE_GCC= yes USE_WX= 3.0+ USE_QT4= gui xml qmake moc rcc uic WX_COMPS= wx wx:build wx:run python:build python:run USE_LDCONFIG= yes PLIST_SUB+= MAJOR_VERSION="3" PLIST_SUB+= MAJOR_SUB_VER="${MAJOR_SUB_VER}" OPTIONS_DEFINE= USRP TESTING # Unfortunately building docs on i386 fails ##OPTIONS_EXCLUDE_${i386}= DOCS # Yay. building docs is broken on 10 and HEAD too so turn them all off OPTIONS_EXCLUDE= DOCS OPTIONS_DEFAULT= USRP USRP_DESC= Include USRP support (UHD) from Ettus TESTING_DESC= Include testing support PLIST_SUB+= PORTVERSION=${PORTVERSION} VP= ${GCC_DEFAULT:S/.//} GCC_LIBS= ${LOCALBASE}/lib/gcc${VP} .include .if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \ ${LOCALBASE}/bin/sphinx-apidoc:${PORTSDIR}/textproc/py-sphinx \ dot:${PORTSDIR}/graphics/graphviz \ xmlto:${PORTSDIR}/textproc/xmlto \ freefont-ttf>0:${PORTSDIR}/x11-fonts/freefont-ttf CMAKE_ARGS+= -DENABLE_DOXYGEN:STRING="ON" CMAKE_ARGS+= -DENABLE_DOCS:STRING="ON" CMAKE_ARGS+= -DENABLE_BAD_BOOST="ON" HAVE_PORTDOCS= YES .else CMAKE_ARGS+= -DENABLE_DOXYGEN:STRING="OFF" CMAKE_ARGS+= -DENABLE_DOCS:STRING="OFF" CMAKE_ARGS+= -DENABLE_BAD_BOOST="ON" .endif .if ${PORT_OPTIONS:MUSRP} CMAKE_ARGS+= -DENABLE_GR_UHD:STRING="ON" BUILD_DEPENDS+= ${LOCALBASE}/include/uhd/config.hpp:${PORTSDIR}/comms/usrp PLIST_SUB+= UHD="" .else CMAKE_ARGS+= -DENABLE_GR_UHD:STRING="OFF" PLIST_SUB+= UHD="@comment " .endif .if ${PORT_OPTIONS:MTESTING} CMAKE_ARGS+= -DENABLE_TESTING:STRING="ON" BUILD_DEPENDS+= cppunit-config:${PORTSDIR}/devel/cppunit .else CMAKE_ARGS+= -DENABLE_TESTING:STRING="OFF" .endif post-patch: @${FIND} ${WRKSRC}/.. -name CMakeLists.txt | \ ${XARGS} ${REINPLACE_CMD} -e \ "s|{GR_LIBRARY_DIR}/pkgconfig|{GR_PKGCONFIG_DIR}/pkgconfig|g" @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \ ${WRKSRC}/docs/doxygen/Doxyfile.in @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/cmake/Modules/FindPortaudio.cmake .include Index: head/databases/sqliteman/Makefile =================================================================== --- head/databases/sqliteman/Makefile (revision 394571) +++ head/databases/sqliteman/Makefile (revision 394572) @@ -1,23 +1,22 @@ # Created by: Wen Heping # $FreeBSD$ PORTNAME= sqliteman PORTVERSION= 1.2.2 PORTREVISION= 6 CATEGORIES= databases MASTER_SITES= SF MAINTAINER= wen@FreeBSD.org COMMENT= Admin's GUI tool for Sqlite3 LIB_DEPENDS= libqscintilla2.so:${PORTSDIR}/devel/qscintilla2 USES= cmake USE_SQLITE= yes -CMAKE_ENV+= QMAKESPEC=${QMAKESPEC} USE_QT4= qmake_build gui moc_build rcc_build uic_build xml sql GNU_CONFIGURE= yes USE_LDCONFIG= yes .include Index: head/devel/freeocl/Makefile =================================================================== --- head/devel/freeocl/Makefile (revision 394571) +++ head/devel/freeocl/Makefile (revision 394572) @@ -1,36 +1,35 @@ # Created by: Oliver Hartmann # $FreeBSD$ PORTNAME= freeocl PORTVERSION= 0.3.6 PORTREVISION= 6 CATEGORIES= devel MASTER_SITES= GOOGLE_CODE DISTNAME= FreeOCL-${PORTVERSION}-src MAINTAINER= ohartman@zedat.fu-berlin.de COMMENT= Free Open Computing Language (OpenCL) implementation for CPU LICENSE= LGPL3 BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:${PORTSDIR}/devel/libatomic_ops \ ${LOCALBASE}/include/CL/opencl.h:${PORTSDIR}/devel/opencl CONFLICTS= ocl-icd[0-9]* opencl-icd[0-9]* pocl[0-9]* WRKSRC= ${WRKDIR}/FreeOCL-${PORTVERSION}-Source USE_GCC= any USES= cmake compiler:c++11-lib USE_LDCONFIG= yes CXXFLAGS+= -pthread -std=gnu++0x -CMAKE_ENV+= FREEOCL_CXX_COMPILER="${CXX}" CFLAGS_i386= -msse post-patch: ${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKSRC}/src/icd/icd_loader.cpp \ ${WRKSRC}/CMakeLists.txt .include Index: head/devel/qca/Makefile =================================================================== --- head/devel/qca/Makefile (revision 394571) +++ head/devel/qca/Makefile (revision 394572) @@ -1,38 +1,38 @@ # Created by: Vsevolod Stakhov # $FreeBSD$ PORTNAME= qca PORTVERSION= 2.1.0 PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://delta.affinix.com/download/qca/2.0/ MAINTAINER= kde@FreeBSD.org COMMENT= Cross-platform crypto API for Qt BUILD_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss USES= cmake:outsource CMAKE_ARGS= -DBUILD_PLUGINS=none -DBUILD_TESTS=no -DQT4_BUILD=yes \ -DPKGCONFIG_INSTALL_PREFIX=${PREFIX}/libdata/pkgconfig \ -DQCA_FEATURE_INSTALL_DIR=${QT_MKSPECDIR}/features \ -DQCA_MAN_INSTALL_DIR=${MANPREFIX}/man -CMAKE_ENV= QC_CERTSTORE_PATH=${LOCALBASE}/share/certs/ca-root-nss.crt +CONFIGURE_ENV= QC_CERTSTORE_PATH=${LOCALBASE}/share/certs/ca-root-nss.crt USE_LDCONFIG= yes USE_QT4= corelib moc_build qmake_build rcc_build OPTIONS_DEFINE= GNUPG OPENSSL SASL OPTIONS_DEFAULT=GNUPG OPENSSL OPTIONS_SUB= yes GNUPG_CMAKE_ON= -DWITH_gnupg_PLUGIN=yes GNUPG_RUN_DEPENDS= gpg2:${PORTSDIR}/security/gnupg OPENSSL_CMAKE_ON= -DWITH_ossl_PLUGIN=yes OPENSSL_USE= OPENSSL=yes SASL_CMAKE_ON= -DWITH_cyrus-sasl_PLUGIN=yes SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 .include Index: head/devel/qca-qt5/Makefile =================================================================== --- head/devel/qca-qt5/Makefile (revision 394571) +++ head/devel/qca-qt5/Makefile (revision 394572) @@ -1,39 +1,39 @@ # Created by: Vsevolod Stakhov # $FreeBSD$ PORTNAME= qca PORTVERSION= 2.1.0 CATEGORIES= devel MASTER_SITES= http://delta.affinix.com/download/qca/2.0/ PKGNAMESUFFIX= -qt5 MAINTAINER= pawel@FreeBSD.org COMMENT= Cross-platform crypto API for Qt5 BUILD_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss USES= cmake:outsource CMAKE_ARGS= -DBUILD_PLUGINS=none -DBUILD_TESTS=no -DQT5_BUILD=yes \ -DPKGCONFIG_INSTALL_PREFIX=${PREFIX}/libdata/pkgconfig \ -DQCA_FEATURE_INSTALL_DIR=${QT_MKSPECDIR}/features \ -DQCA_MAN_INSTALL_DIR=${MANPREFIX}/man \ -DQCA_SUFFIX=qt5 -CMAKE_ENV= QC_CERTSTORE_PATH=${LOCALBASE}/share/certs/ca-root-nss.crt +CONFIGURE_ENV= QC_CERTSTORE_PATH=${LOCALBASE}/share/certs/ca-root-nss.crt USE_LDCONFIG= yes USE_QT5= buildtools_build core network qmake_build OPTIONS_DEFINE= GNUPG OPENSSL SASL OPTIONS_DEFAULT=GNUPG OPENSSL OPTIONS_SUB= yes GNUPG_CMAKE_ON= -DWITH_gnupg_PLUGIN=yes GNUPG_RUN_DEPENDS= gpg2:${PORTSDIR}/security/gnupg OPENSSL_CMAKE_ON= -DWITH_ossl_PLUGIN=yes OPENSSL_USE= OPENSSL=yes SASL_CMAKE_ON= -DWITH_cyrus-sasl_PLUGIN=yes SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 .include Index: head/emulators/tpm-emulator/Makefile =================================================================== --- head/emulators/tpm-emulator/Makefile (revision 394571) +++ head/emulators/tpm-emulator/Makefile (revision 394572) @@ -1,36 +1,36 @@ # Created by: Sebastian Schuetz # $FreeBSD$ PORTNAME= tpm-emulator PORTVERSION= 0.7.4 CATEGORIES= emulators security MASTER_SITES= SF/${PORTNAME}.berlios DISTNAME= ${PORTNAME:S,-,_,}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Trusted Platform Module (TPM) emulator LICENSE= GPLv2 LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp CONFLICTS= trousers-tddl-[0-9]* USES= cmake:outsource USE_RC_SUBR= tpmd -CMAKE_ENV= PREFIX="${PREFIX}" +CONFIGURE_ENV= PREFIX="${PREFIX}" CMAKE_ARGS= -DTPM_INCLUDE_DIRS:STRING="${LOCALBASE}/include" \ -DTPM_LIBRARY_DIRS:STRING="${LOCALBASE}/lib" USE_LDCONFIG= yes USERS= _tss GROUPS= _tss SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}" PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}" BROKEN_powerpc= Does not compile on powerpc post-install: @${MKDIR} ${STAGEDIR}/var/run/tpm @${MKDIR} ${STAGEDIR}${PREFIX}/var/db/tpm .include Index: head/games/opensonic/Makefile =================================================================== --- head/games/opensonic/Makefile (revision 394571) +++ head/games/opensonic/Makefile (revision 394572) @@ -1,41 +1,41 @@ # Created by: Stas Timokhin # $FreeBSD$ PORTNAME= opensonic PORTVERSION= 0.1.4 PORTREVISION= 2 CATEGORIES= games MASTER_SITES= SF/opensnc/Open%20Sonic/${PORTVERSION} DISTNAME= opensnc-src-${PORTVERSION} MAINTAINER= devel@stasyan.com COMMENT= Game based on the "Sonic the Hedgehog" universe BUILD_DEPENDS= alpng>=1.3:${PORTSDIR}/graphics/alpng LIB_DEPENDS= liballeg.so:${PORTSDIR}/devel/allegro \ libogg.so:${PORTSDIR}/audio/libogg \ libvorbis.so:${PORTSDIR}/audio/libvorbis DESKTOP_ENTRIES="${PORTNAME}" \ "Sonic the Hedgehog" \ "${PREFIX}/share/pixmaps/opensonic.png" \ "${PORTNAME}" \ "Game;ArcadeGame;" \ false USES= cmake -CMAKE_ENV+= _ALLEGRO_LIBS="`allegro-config --libs`" \ +CONFIGURE_ENV+= _ALLEGRO_LIBS="`allegro-config --libs`" \ _ALLEGRO_VERSION="`allegro-config --version`" CFLAGS+= -I${LOCALBASE}/include post-patch: @${REINPLACE_CMD} -e 's,/usr/bin,${PREFIX}/bin,g' \ -e 's,/usr/share,${PREFIX}/share,g' \ ${PATCH_WRKSRC}/src/core/global.h post-install: ${INSTALL_DATA} ${WRKSRC}/icon.png ${STAGEDIR}${PREFIX}/share/pixmaps/opensonic.png ${LN} -s ${DATADIR}/opensonic ${STAGEDIR}${PREFIX}/bin/opensonic .include Index: head/graphics/cegui/Makefile =================================================================== --- head/graphics/cegui/Makefile (revision 394571) +++ head/graphics/cegui/Makefile (revision 394572) @@ -1,128 +1,128 @@ # Created by: Oliver Lehmann # $FreeBSD$ PORTNAME= cegui PORTVERSION= 0.8.4 CATEGORIES= graphics devel MASTER_SITES= SF/crayzedsgui/CEGUI%20Mk-2/0.8 MAINTAINER= oliver@FreeBSD.org COMMENT= Library providing windowing and widgets for graphics APIs LICENSE= MIT LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo WRKSRC= ${WRKDIR}/${DISTNAME:S/2b/2/} -CMAKE_ENV+= TOLUA_INC="${LUA_INCDIR}" +CONFIGURE_ENV+= TOLUA_INC="${LUA_INCDIR}" CMAKE_ARGS= -DCEGUI_SAMPLES_ENABLED:BOOL=OFF \ -DCEGUI_BUILD_TESTS=OFF USE_LDCONFIG= yes USES= compiler:c++11-lib cmake pathfix pkgconfig tar:bzip2 PORTDOCS= * OPTIONS_DEFINE= FREETYPE PCRE LUA FRIBIDI DOCS OPTIONS_GROUP= XMLPARSER IMAGECODEC RENDERER OPTIONS_GROUP_XMLPARSER= EXPAT XERCES LIBXML2 RAPIDXML TINYXML OPTIONS_GROUP_IMAGECODEC= DEVIL FREEIMAGE OPTIONS_GROUP_RENDERER= OPENGL OPENGL3 OGRE IRRLICHT OPTIONS_DEFAULT= FREETYPE PCRE LUA FRIBIDI PYTHON OPTIONS_DEFAULT+= EXPAT LIBXML2 TINYXML OPTIONS_DEFAULT+= DEVIL FREEIMAGE OPTIONS_DEFAULT+= OPENGL OPENGL3 OGRE OPTIONS_SUB= yes FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 FREETYPE_CMAKE_ON= -DCEGUI_HAS_FREETYPE=ON FREETYPE_CMAKE_OFF= -DCEGUI_HAS_FREETYPE=OFF PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre PCRE_CMAKE_ON= -DCEGUI_HAS_PCRE_REGEX=ON PCRE_CMAKE_OFF= -DCEGUI_HAS_PCRE_REGEX=OFF LUA_USES= lua:51 LUA_LIB_DEPENDS= libtolua++-${LUA_VER}.so:${PORTSDIR}/lang/tolua++ LUA_CMAKE_ON= -DCEGUI_BUILD_LUA_MODULE=ON -DCEGUI_BUILD_LUA_GENERATOR=ON LUA_CMAKE_OFF= -DCEGUI_BUILD_LUA_MODULE=OFF -DCEGUI_BUILD_LUA_GENERATOR=OFF # this option is not currently used as it doesn't compile (see also CMAKE_ARGS below) PYTHON_USES= python PYTHON_LIB_DEPENDS= libboost_python.so:${PORTSDIR}/devel/boost-python-libs PYTHON_CMAKE_ON= -DCEGUI_BUILD_PYTHON_MODULES=ON PYTHON_CMAKE_OFF= -DCEGUI_BUILD_PYTHON_MODULES=OFF FRIBIDI_LIB_DEPENDS= libfribidi.so:${PORTSDIR}/converters/fribidi FRIBIDI_CMAKE_ON= -DCEGUI_USE_FRIBIDI=ON FRIBIDI_CMAKE_OFF= -DCEGUI_USE_FRIBIDI=OFF EXPAT_LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 EXPAT_CMAKE_ON= -DCEGUI_BUILD_XMLPARSER_EXPAT=ON EXPAT_CMAKE_OFF= -DCEGUI_BUILD_XMLPARSER_EXPAT=OFF XERCES_LIB_DEPENDS= libxerces-c.so.3:${PORTSDIR}/textproc/xerces-c3 XERCES_CMAKE_ON= -DCEGUI_BUILD_XMLPARSER_XERCES=ON XERCES_CMAKE_OFF= -DCEGUI_BUILD_XMLPARSER_XERCES=OFF LIBXML2_USE= GNOME=libxml2 LIBXML2_CMAKE_ON= -DCEGUI_BUILD_XMLPARSER_LIBXML2=ON LIBXML2_CMAKE_OFF= -DCEGUI_BUILD_XMLPARSER_LIBXML2=OFF RAPIDXML_BUILD_DEPENDS= ${LOCALBASE}/include/rapidxml.hpp:${PORTSDIR}/textproc/rapidxml RAPIDXML_DESC= XML parser support via RapidXML RAPIDXML_CMAKE_ON= -DCEGUI_BUILD_XMLPARSER_RAPIDXML=ON RAPIDXML_CMAKE_OFF= -DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF TINYXML_LIB_DEPENDS= libtinyxml.so:${PORTSDIR}/textproc/tinyxml TINYXML_CMAKE_ON= -DCEGUI_BUILD_XMLPARSER_TINYXML=ON TINYXML_CMAKE_OFF= -DCEGUI_BUILD_XMLPARSER_TINYXML=OFF DEVIL_DESC= DevIL based ImageCodec module DEVIL_LIB_DEPENDS= libIL.so:${PORTSDIR}/graphics/devil DEVIL_CMAKE_ON= -DCEGUI_BUILD_IMAGECODEC_DEVIL=ON DEVIL_CMAKE_OFF= -DCEGUI_BUILD_IMAGECODEC_DEVIL=OFF FREEIMAGE_DESC= FreeImage based ImageCodec module FREEIMAGE_LIB_DEPENDS= libfreeimage.so:${PORTSDIR}/graphics/freeimage FREEIMAGE_CMAKE_ON= -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=ON FREEIMAGE_CMAKE_OFF= -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=OFF OGRE_DESC= Ogre3D support OGRE_LIB_DEPENDS= libOgreMain.so:${PORTSDIR}/graphics/ogre3d OGRE_CMAKE_ON= -DCEGUI_BUILD_RENDERER_OGRE=ON OGRE_CMAKE_OFF= -DCEGUI_BUILD_RENDERER_OGRE=OFF IRRLICHT_DESC= Irrlicht support IRRLICHT_LIB_DEPENDS= libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht IRRLICHT_CMAKE_ON= -DCEGUI_BUILD_RENDERER_IRRLICHT=ON IRRLICHT_CMAKE_OFF= -DCEGUI_BUILD_RENDERER_IRRLICHT=OFF OPENGL_BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:${PORTSDIR}/math/glm OPENGL_USE= GL=gl,glew OPENGL_CMAKE_ON= -DCEGUI_BUILD_RENDERER_OPENGL=ON OPENGL_CMAKE_OFF= -DCEGUI_BUILD_RENDERER_OPENGL=OFF OPENGL3_DESC= OpenGL 3+ support (core profile) OPENGL3_BUILD_DEPENDS= ${OPENGL_BUILD_DEPENDS} OPENGL3_USE= ${OPENGL_USE} OPENGL3_CMAKE_ON= -DCEGUI_BUILD_RENDERER_OPENGL3=ON OPENGL3_CMAKE_OFF= -DCEGUI_BUILD_RENDERER_OPENGL3=OFF # not present in ports/unsupported, but may appear later CMAKE_ARGS+= -DCEGUI_HAS_MINIZIP_RESOURCE_PROVIDER=OFF \ -DCEGUI_BUILD_IMAGECODEC_CORONA=OFF \ -DCEGUI_BUILD_IMAGECODEC_SILLY=OFF \ -DCEGUI_BUILD_IMAGECODEC_PVR=OFF \ -DCEGUI_BUILD_RENDERER_OPENGLES=OFF \ -DCEGUI_BUILD_RENDERER_DIRECTFB=OFF CMAKE_ARGS+= -DCEGUI_BUILD_PYTHON_MODULES=OFF # python support doesn't build .include .if ${PORT_OPTIONS:MEXPAT} || ${PORT_OPTIONS:MXERCES} || ${PORT_OPTIONS:MLIBXML2} || ${PORT_OPTIONS:MRAPIDXML} || ${PORT_OPTIONS:MTINYXML} PLIST_SUB+= XMLPARSERS="" .else PLIST_SUB+= XMLPARSERS="@comment " .endif .if ${PORT_OPTIONS:MOPENGL} || ${PORT_OPTIONS:MOPENGL3} PLIST_SUB+= ANYOPENGL="" .else PLIST_SUB+= ANYOPENGL="@comment " .endif post-patch: @${REINPLACE_CMD} -e 's|\$${CEGUI_LIB_INSTALL_DIR}/pkgconfig|libdata/pkgconfig|g' \ ${WRKSRC}/CMakeLists.txt .include Index: head/graphics/luxrender/Makefile =================================================================== --- head/graphics/luxrender/Makefile (revision 394571) +++ head/graphics/luxrender/Makefile (revision 394572) @@ -1,66 +1,66 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= luxrender PORTVERSION= 1.3.1 PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= http://src.luxrender.net/lux/get/ \ http://src.luxrender.net/luxrays/get/:lr DISTFILES= v${PORTVERSION:S/.//g}${EXTRACT_SUFX} \ luxrender_v${PORTVERSION}${EXTRACT_SUFX}:lr DIST_SUBDIR= ${PORTNAME} MAINTAINER= danfe@FreeBSD.org COMMENT= Physically based and unbiased rendering system LICENSE= GPLv3 LIB_DEPENDS= libboost_python.so:${PORTSDIR}/devel/boost-python-libs \ libfftw3.so:${PORTSDIR}/math/fftw3 \ libfreeimage.so:${PORTSDIR}/graphics/freeimage \ libpng.so:${PORTSDIR}/graphics/png \ libIlmImf.so:${PORTSDIR}/graphics/OpenEXR .if !exists(/usr/include/execinfo.h) LIB_DEPENDS+= libexecinfo.so:${PORTSDIR}/devel/libexecinfo .endif ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS_REASON= uses SSE extensions USES= bison cmake tar:bzip2 USE_GL= glut glew WRKSRC= ${WRKDIR}/luxrender-lux-${LUX_REV} LUXRAYS_WRKSRC= ${WRKDIR}/luxrender-luxrays-${LUXRAYS_REV} CMAKE_ARGS= -DLUXRAYS_INCLUDE_DIRS:PATH="${LUXRAYS_WRKSRC}/include" \ -DLUXRAYS_LIBRARY:STRING="${LUXRAYS_WRKSRC}/lib/libluxrays.a" \ -DSLG_INCLUDE_DIRS:PATH="${LUXRAYS_WRKSRC}/include" \ -DSLG_LIBRARY:PATH="${LUXRAYS_WRKSRC}/lib/libsmallluxgpu.a" \ -DLUXRAYS_DISABLE_OPENCL:BOOL=ON LUX_REV= d0b0e20c47cc LUXRAYS_REV= 7459cd8a9583 OPTIONS_DEFINE= X11 OPTIONS_DEFAULT= X11 X11_DESC= Build GUI executable (Qt4-based) X11_USE= QT4=moc_build,qmake_build,rcc_build,uic_build,corelib,gui X11_PLIST_FILES= bin/luxrender post-patch: @${REINPLACE_CMD} -e 's/__APPLE__/__FreeBSD__/' \ ${LUXRAYS_WRKSRC}/samples/smallluxgpu4/smallluxgpu.h \ ${WRKSRC}/core/osfunc.h \ ${WRKSRC}/shapes/mikktspace/weldmesh.c @${REINPLACE_CMD} -e '/^set(Boost_USE_STATIC_LIBS/s,ON,OFF,' \ ${LUXRAYS_WRKSRC}/cmake/Dependencies.cmake pre-configure: - cd ${LUXRAYS_WRKSRC} && ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} \ + cd ${LUXRAYS_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} \ ${CMAKE_ARGS} . ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ ${_MAKE_JOBS} ${MAKE_ARGS} -C ${LUXRAYS_WRKSRC} .include Index: head/graphics/opencv/Makefile =================================================================== --- head/graphics/opencv/Makefile (revision 394571) +++ head/graphics/opencv/Makefile (revision 394572) @@ -1,307 +1,307 @@ # Created by: Marc Abramowitz (http://marc.abramowitz.info) # $FreeBSD$ PORTNAME?= opencv PORTVERSION= 2.4.9 PORTREVISION?= 6 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}library/${PORTNAME}-unix/${PORTVERSION} MAINTAINER= jhale@FreeBSD.org COMMENT= Open Source Computer Vision library LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake pkgconfig zip USE_LDCONFIG= yes WANT_GSTREAMER= yes NOT_FOR_ARCHS= sparc64 NOT_FOR_ARCHS_REASON_sparc64= does not compile on sparc64 DATADIR= ${PREFIX}/share/OpenCV PLIST_SUB+= VERSION=${DISTVERSION} CMAKE_ARGS+= -DWITH_CUDA:BOOL=Off \ -DWITH_PVAPI:BOOL=Off \ -DWITH_UNICAP:BOOL=Off \ -DBUILD_TESTS:BOOL=Off \ -DBUILD_DOCS:BOOL=Off \ -DPYTHON_EXECUTABLE:FILEPATH=${PYTHON_CMD} SUB_FILES= FindOpenCVCore.cmake SUB_LIST= OCV_VERSION=${PORTVERSION} OCV_CORE_MODS= core imgproc OCV_MODS= calib3d contrib features2d flann gpu \ highgui legacy ml ocl objdetect photo \ stitching superres ts video videostab OCV_NONFREE_MODS= nonfree OCV_JAVA_MODS= java OCV_PYTHON_MODS= python OPTIONS_DEFINE= DC1394 EXAMPLES NONFREE OPENGL SIMD OPTIONS_GROUP= IMAGE PERFORMANCE VIDEO OPTIONS_GROUP_IMAGE= JASPER JPEG OPENEXR PNG TIFF OPTIONS_GROUP_PERFORMANCE= EIGEN3 TBB OPTIONS_GROUP_VIDEO= FFMPEG GSTREAMER V4L XINE OPTIONS_RADIO= GUI OPTIONS_RADIO_GUI= GTK2 QT4 OPTIONS_DEFAULT= EIGEN3 JASPER JPEG PNG SIMD TIFF V4L OPTIONS_SUB= yes .if defined(OCV_CORE) OPTIONS_EXCLUDE= DC1394 EXAMPLES GTK2 QT4 JASPER JPEG NONFREE OPENEXR \ OPENGL PNG TIFF FFMPEG GSTREAMER V4L XINE .endif DC1394_DESC= IEEE 1394 camera support EIGEN3_DESC= Eigen 3 support IMAGE_DESC= Image format support NONFREE_DESC= Build functionality that has possible limitations of use PERFORMANCE_DESC= Performance enhancing libraries TBB_DESC= TBB support .include .if ${PORT_OPTIONS:MDC1394} LIB_DEPENDS+= libdc1394.so:${PORTSDIR}/multimedia/libdc1394 CMAKE_ARGS+= -DWITH_1394:BOOL=On .else CMAKE_ARGS+= -DWITH_1394:BOOL=Off .endif .if ${PORT_OPTIONS:MEIGEN3} BUILD_DEPENDS+= ${LOCALBASE}/include/eigen3/Eigen/Eigen:${PORTSDIR}/math/eigen3 CMAKE_ARGS+= -DWITH_EIGEN:BOOL=On .else CMAKE_ARGS+= -DWITH_EIGEN:BOOL=Off .endif .if ${PORT_OPTIONS:MEXAMPLES} PORTEXAMPLES= * . if !defined(OCV_SLAVE) CMAKE_ARGS+= -DBUILD_EXAMPLES:BOOL=On \ -DINSTALL_C_EXAMPLES:BOOL=On . endif .endif .if ${PORT_OPTIONS:MFFMPEG} LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg CMAKE_ARGS+= -DWITH_FFMPEG:BOOL=On .else CMAKE_ARGS+= -DWITH_FFMPEG:BOOL=Off .endif .if ${PORT_OPTIONS:MGSTREAMER} USE_GSTREAMER= yes CMAKE_ARGS+= -DWITH_GSTREAMER:BOOL=On .else CMAKE_ARGS+= -DWITH_GSTREAMER:BOOL=Off .endif .if ${PORT_OPTIONS:MGTK2} USE_GNOME+= gtk20 CMAKE_ARGS+= -DWITH_GTK:BOOL=On . if ${PORT_OPTIONS:MOPENGL} LIB_DEPENDS+= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext . endif .else CMAKE_ARGS+= -DWITH_GTK:BOOL=Off .endif .if ${PORT_OPTIONS:MJASPER} LIB_DEPENDS+= libjasper.so:${PORTSDIR}/graphics/jasper CMAKE_ARGS+= -DWITH_JASPER:BOOL=On .else CMAKE_ARGS+= -DWITH_JASPER:BOOL=Off .endif .if ${PORT_OPTIONS:MJPEG} USES+= jpeg CMAKE_ARGS+= -DWITH_JPEG:BOOL=On .else CMAKE_ARGS+= -DWITH_JPEG:BOOL=Off .endif .if ${PORT_OPTIONS:MNONFREE} CMAKE_ARGS+= -DBUILD_opencv_nonfree:BOOL=On .else CMAKE_ARGS+= -DBUILD_opencv_nonfree:BOOL=Off .endif .if ${PORT_OPTIONS:MOPENEXR} LIB_DEPENDS+= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR CMAKE_ARGS+= -DWITH_OPENEXR:BOOL=On .else CMAKE_ARGS+= -DWITH_OPENEXR:BOOL=Off .endif .if ${PORT_OPTIONS:MOPENGL} CMAKE_ARGS+= -DWITH_OPENGL:BOOL=On .else CMAKE_ARGS+= -DWITH_OPENGL:BOOL=Off .endif .if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= libpng.so:${PORTSDIR}/graphics/png CMAKE_ARGS+= -DWITH_PNG:BOOL=On .else CMAKE_ARGS+= -DWITH_PNG:BOOL=Off .endif .if ${PORT_OPTIONS:MQT4} USE_QT4+= gui moc_build qmake_build rcc_build uic_build qtestlib CMAKE_ARGS+= -DWITH_QT:STRING="4" . if ${PORT_OPTIONS:MOPENGL} USE_QT4+= opengl . endif .else CMAKE_ARGS+= -DWITH_QT:BOOL=Off .endif .if ${PORT_OPTIONS:MSIMD} . if ${MACHINE_CPU:Msse} CMAKE_ARGS+= -DENABLE_SSE:BOOL=On . else CMAKE_ARGS+= -DENABLE_SSE:BOOL=Off . endif . if ${MACHINE_CPU:Msse2} CMAKE_ARGS+= -DENABLE_SSE2:BOOL=On . else CMAKE_ARGS+= -DENABLE_SSE2:BOOL=Off . endif . if ${MACHINE_CPU:Msse3} CMAKE_ARGS+= -DENABLE_SSE3:BOOL=On . else CMAKE_ARGS+= -DENABLE_SSE3:BOOL=Off . endif # TODO: Add support for instructions above SSE3 (upstream has them off by default) CMAKE_ARGS+= -DENABLE_SSSE3:BOOL=Off \ -DENABLE_SSE41:BOOL=Off \ -DENABLE_SSE42:BOOL=Off .else CMAKE_ARGS+= -DENABLE_SSE:BOOL=Off \ -DENABLE_SSE2:BOOL=Off \ -DENABLE_SSE3:BOOL=Off \ -DENABLE_SSSE3:BOOL=Off \ -DENABLE_SSE41:BOOL=Off \ -DENABLE_SSE42:BOOL=Off .endif .if ${PORT_OPTIONS:MTBB} LIB_DEPENDS+= libtbb.so:${PORTSDIR}/devel/tbb CMAKE_ARGS+= -DWITH_TBB:BOOL=On \ -DTBB_INCLUDE_DIR:STRING="${LOCALBASE}/include" .else CMAKE_ARGS+= -DWITH_TBB:BOOL=Off .endif .if ${PORT_OPTIONS:MTIFF} LIB_DEPENDS+= libtiff.so:${PORTSDIR}/graphics/tiff CMAKE_ARGS+= -DWITH_TIFF:BOOL=On .else CMAKE_ARGS+= -DWITH_TIFF:BOOL=Off .endif .if ${PORT_OPTIONS:MV4L} LIB_DEPENDS+= libv4l2.so:${PORTSDIR}/multimedia/libv4l BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat CMAKE_ARGS+= -DWITH_V4L:BOOL=On \ -DCMAKE_REQUIRED_INCLUDES:STRING="${LOCALBASE}/include" .else CMAKE_ARGS+= -DWITH_V4L:BOOL=Off .endif .if ${PORT_OPTIONS:MXINE} LIB_DEPENDS+= libxine.so:${PORTSDIR}/multimedia/libxine CMAKE_ARGS+= -DWITH_XINE:BOOL=On .else CMAKE_ARGS+= -DWITH_XINE:BOOL=Off .endif .if defined(OCV_CORE) . for module in ${OCV_MODS} ${OCV_JAVA_MODS} ${OCV_PYTHON_MODS} CMAKE_ARGS+= -DBUILD_opencv_${module}:BOOL=Off . endfor .elif defined(OCV_PYTHON) LIB_DEPENDS+= libopencv_legacy.so:${PORTSDIR}/graphics/opencv BUILD_DEPENDS+= ${PYNUMPY} RUN_DEPENDS+= ${PYNUMPY} USES+= python CMAKE_ARGS+= -DBUILD_opencv_python:BOOL=On . for module in apps java stitching superres videostab CMAKE_ARGS+= -DBUILD_opencv_${module}:BOOL=Off . endfor INSTALL_WRKSRC= ${WRKSRC}/modules/python .elif defined(OCV_JAVA) BUILD_DEPENDS+= ant:${PORTSDIR}/devel/apache-ant LIB_DEPENDS+= libopencv_legacy.so:${PORTSDIR}/graphics/opencv USES+= python:build USE_JAVA= yes CMAKE_ARGS+= -DBUILD_opencv_java:BOOL=On . for module in apps python stitching superres videostab CMAKE_ARGS+= -DBUILD_opencv_${module}:BOOL=Off . endfor -CMAKE_ENV+= JAVA_HOME="${JAVA_HOME}" +CONFIGURE_ENV+= JAVA_HOME="${JAVA_HOME}" INSTALL_WRKSRC= ${WRKSRC}/modules/java .else LIB_DEPENDS+= libopencv_core.so:${PORTSDIR}/graphics/opencv-core . for module in ${OCV_JAVA_MODS} ${OCV_PYTHON_MODS} CMAKE_ARGS+= -DBUILD_opencv_${module}:BOOL=Off . endfor .endif post-patch: @${MKDIR} ${CONFIGURE_WRKSRC} @${REINPLACE_CMD} -e '/pkgconfig/s|$${OPENCV_LIB_INSTALL_PATH}|libdata|' \ ${WRKSRC}/cmake/OpenCVGenPkgconfig.cmake @${REINPLACE_CMD} -e 's|share/OpenCV/doc|${DOCSDIR_REL}|g' \ -e 's|share/OpenCV/samples|${EXAMPLESDIR_REL}|g' \ ${WRKSRC}/CMakeLists.txt @${FIND} ${WRKSRC} -name '*.orig' -exec ${RM} {} \; .if defined(OCV_CORE) @${REINPLACE_CMD} -e 's|opencv.pc|opencv-core.pc|g' \ ${WRKSRC}/cmake/OpenCVGenPkgconfig.cmake @${REINPLACE_CMD} -e 's|Name:.*|Name: OpenCV-core|' \ ${WRKSRC}/cmake/templates/opencv-XXX.pc.in .endif .if defined(OCV_SLAVE) @${REINPLACE_CMD} -e 's|add_subdirectory(data)||g' \ ${WRKSRC}/CMakeLists.txt .endif post-install: .if !defined(OCV_SLAVE) (cd ${STAGEDIR}${PREFIX} && \ ${RM} -r include/opencv2/core include/opencv2/imgproc \ lib/libopencv_core* lib/libopencv_imgproc*) .endif .if defined(OCV_CORE) ${RM} -r ${STAGEDIR}${PREFIX}/include/opencv ${RM} -r ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${PREFIX}/share/cmake/Modules ${INSTALL_DATA} ${WRKDIR}/FindOpenCVCore.cmake ${STAGEDIR}${PREFIX}/share/cmake/Modules .endif .if defined(OCV_PYTHON) (cd ${STAGEDIR}${PREFIX} && \ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S|${PREFIX}/||} && \ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S|${PREFIX}/||}) ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} . if defined(PYTHON_REL) && ${PYTHON_REL} >= 3000 cd ${WRKSRC}/samples/python && \ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/python . else cd ${WRKSRC}/samples/python2 && \ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/python2 . endif .endif .if defined(OCV_JAVA) ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/samples/java && \ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/java .endif .include Index: head/graphics/openimageio/Makefile =================================================================== --- head/graphics/openimageio/Makefile (revision 394571) +++ head/graphics/openimageio/Makefile (revision 394572) @@ -1,104 +1,103 @@ # Created by: Shane Ambler # $FreeBSD$ PORTNAME= openimageio PORTVERSION= 1.5.16 DISTVERSIONPREFIX= Release- PORTREVISION?= 0 CATEGORIES?= graphics multimedia MAINTAINER?= FreeBSD@Shaneware.biz COMMENT?= OpenImageIO graphics library LICENSE= BSD3CLAUSE USE_GITHUB= yes GH_ACCOUNT= OpenImageIO GH_PROJECT= oiio # fbm also installs bin/idiff CONFLICTS= fbm-[0-9]* USES= cmake:outsource CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \ -DLINKSTATIC:BOOL=OFF \ -DNOTHREADS:BOOL=OFF \ -DSTOP_ON_WARNING:BOOL=OFF \ -DUSE_CPP11:BOOL=OFF \ -DUSE_OPENSSL:BOOL=OFF CXXFLAGS+= -D__STDC_CONSTANT_MACROS OPTIONS_DEFINE= DOCS FFMPEG GIF IMAGEVIEWER OCIO RAW TEST OPTIONS_DEFAULT= OCIO FFMPEG GIF OPTIONS_SUB= yes FFMPEG_DESC= Use ffmpeg to support extra file types IMAGEVIEWER_DESC= Build image viewer OCIO_DESC= Colour management support DOCS_CMAKE_ON= -DINSTALL_DOCS:BOOL=ON DOCS_CMAKE_OFF= -DINSTALL_DOCS:BOOL=OFF FFMPEG_CMAKE_ON= -DUSE_FFMPEG:BOOL=ON FFMPEG_CMAKE_OFF= -DUSE_FFMPEG:BOOL=OFF FFMPEG_LIB_DEPENDS= libavutil.so:${PORTSDIR}/multimedia/ffmpeg GIF_CMAKE_ON= -DUSE_GIF:BOOL=ON GIF_CMAKE_OFF= -DUSE_GIF:BOOL=OFF GIF_LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib OCIO_CMAKE_ON= -DUSE_OCIO:BOOL=ON OCIO_CMAKE_OFF= -DUSE_OCIO:BOOL=OFF OCIO_LIB_DEPENDS= libOpenColorIO.so:${PORTSDIR}/graphics/opencolorio RAW_CMAKE_ON= -DUSE_LIBRAW:BOOL=ON RAW_CMAKE_OFF= -DUSE_LIBRAW:BOOL=OFF RAW_LIB_DEPENDS= libraw_r.so:${PORTSDIR}/graphics/libraw TEST_CMAKE_ON= -DOIIO_BUILD_TESTS:BOOL=ON TEST_CMAKE_OFF= -DOIIO_BUILD_TESTS:BOOL=OFF PLIST_SUB+= LIBVERS=${PORTVERSION} .include .if ${SLAVE_PORT} == no LIB_DEPENDS+= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \ libboost_thread.so:${PORTSDIR}/devel/boost-libs \ libhdf5.so:${PORTSDIR}/science/hdf5 \ libopencv_legacy.so:${PORTSDIR}/graphics/opencv \ libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 \ libwebp.so:${PORTSDIR}/graphics/webp USE_LDCONFIG= yes CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF -DUSE_PYTHON3:BOOL=OFF \ -DOIIO_BUILD_TOOLS:BOOL=ON .else LIB_DEPENDS= libOpenImageIO.so:${PORTSDIR}/graphics/openimageio \ libboost_python.so:${PORTSDIR}/devel/boost-python-libs PLIST= ${PKGDIR}/pkg-plist-pybind #while oiio supports py3, ports doesn't have py3 support for boost-python yet USES+= python:2 CMAKE_ARGS+= -DUSE_PYTHON:BOOL=ON -DUSE_PYTHON3:BOOL=OFF \ -DOIIO_BUILD_TOOLS:BOOL=OFF .endif .if ${PORT_OPTIONS:MIMAGEVIEWER} USE_GL= glew USE_QT4= corelib gui opengl qmake_build moc_build rcc_build uic_build CMAKE_ARGS+= -DUSE_QT:BOOL=ON -DUSE_OPENGL:BOOL=ON -CMAKE_ENV+= QTDIR=${QT_PREFIX} QT_INCLUDES=${QT_INCDIR} .else CMAKE_ARGS+= -DUSE_OPENGL:BOOL=OFF -DUSE_QT:BOOL=OFF .endif post-patch: @${REINPLACE_CMD} -e 's|share/doc/OpenImageIO|${DOCSDIR}|g' \ ${WRKSRC}/CMakeLists.txt post-install: .if ${SLAVE_PORT} == no ${LN} -sf libOpenImageIO.so.1.5 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO.so.1 ${LN} -sf libOpenImageIO_Util.so.1.5 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO_Util.so.1 .endif .include Index: head/graphics/rawtherapee/Makefile =================================================================== --- head/graphics/rawtherapee/Makefile (revision 394571) +++ head/graphics/rawtherapee/Makefile (revision 394572) @@ -1,106 +1,106 @@ # Created by: stas # $FreeBSD$ PORTNAME= rawtherapee PORTVERSION= 4.2 PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= http://rawtherapee.com/shared/source/ MAINTAINER= mandree@FreeBSD.org COMMENT= Powerful RAW image processing application LICENSE= GPLv3 LIB_DEPENDS= libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24 \ libiptcdata.so:${PORTSDIR}/graphics/libiptcdata \ liblcms2.so:${PORTSDIR}/graphics/lcms2 \ libpng.so:${PORTSDIR}/graphics/png \ libtiff.so:${PORTSDIR}/graphics/tiff \ libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \ libfftw3.so:${PORTSDIR}/math/fftw3 \ libfftw3f.so:${PORTSDIR}/math/fftw3-float \ libcanberra-gtk3.so:${PORTSDIR}/audio/libcanberra-gtk3 USES= cmake:outsource compiler:features desktop-file-utils dos2unix jpeg pkgconfig tar:xz DOS2UNIX_REGEX= .*\.(cc|h) USE_GNOME= gtk20 glib20 USE_LDCONFIG= yes CFLAGS+= -I${LOCALBASE}/include -fPIC CXXFLAGS+= -I${LOCALBASE}/include -fPIC LDFLAGS+= -lpthread -L${LOCALBASE}/lib -CMAKE_ENV= CFLAGS="${CFLAGS}" \ +CONFIGURE_ENV= CFLAGS="${CFLAGS}" \ LDFLAGS="${LDFLAGS:C|-Wl,-rpath=${_GCC_RUNTIME}||:C|-L${_GCC_RUNTIME}||}" CMAKE_ARGS+= -DDOCDIR="${DOCSDIR}" \ -DCREDITSDIR="${DOCSDIR}" \ -DLICENCEDIR="${DOCSDIR}" \ -DDESKTOPDIR="${DESKTOPDIR}" \ -DDATADIR="${DATADIR}" \ -DCMAKE_C_FLAGS="${CFLAGS:C|-Wl,-rpath=${_GCC_RUNTIME}||:C|-L${_GCC_RUNTIME}||}" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS:C|-Wl,-rpath=${_GCC_RUNTIME}||:C|-L${_GCC_RUNTIME}||}" \ -DCACHE_NAME_SUFFIX="4.1" SUB_FILES= rawtherapee SUB_LIST= RTDIR="${RTDIR}" INSTALLS_ICONS= yes RTDIR= ${PREFIX}/libdata/${PORTNAME} OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENMP OPTIONS_DEFAULT= OPTIMIZED_CFLAGS OPENMP OPENMP_DESC= Enable multicore processing using OpenMP OPTIMIZED_CFLAGS_DESC= Use extra compiler optimizations (requires SSE support) .include # ------------------------------------------------------------------- # USE_GCC must be late so the compiler feature checks work to detect # that the base C++ standard library switched to libc++: # We also must pin 4.8+ because 4.6 and 4.7 segfault on 10.0-RELEASE amd64 # wwhen compiling improcfun.cc: USE_GCC= yes .if ${COMPILER_FEATURES:Mlibc++} LDFLAGS+= -L/usr/local/lib/c++ CXXFLAGS+= -nostdinc++ -isystem /usr/local/include/c++/v1 CFLAGS+= -isystem /usr/local/include/c++/v1 BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:${PORTSDIR}/devel/libc++ .endif .if ${ARCH} == "amd64" || ${ARCH} == "i386" .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} CFLAGS+= -O3 -ffast-math -fexpensive-optimizations \ -funroll-loops -msse CXXFLAGS+= -O3 -ffast-math \ -funroll-loops -msse .endif .endif .if ${PORT_OPTIONS:MOPENMP} CMAKE_ARGS+= -DOPTION_OMP:BOOL=ON .else CMAKE_ARGS+= -DOPTION_OMP:BOOL=OFF .endif #.if ${OSVERSION} >= 1100000 #BROKEN= rawtherapee is known to crash on -HEAD and requires debugging that the maintainer cannot provide. #.endif # ------------------------------------------------------------------- post-patch: @${REINPLACE_CMD} -e 's###g' \ ${WRKSRC}/rtgui/darkframe.h \ ${WRKSRC}/rtgui/flatfield.h \ ${WRKSRC}/rtgui/icmpanel.h @${REINPLACE_CMD} -e 's#DESTINATION "$${CMAKE_INSTALL_PREFIX}/share/man/man1"#DESTINATION "${MANPREFIX}/man/man1/"#' \ ${WRKSRC}/CMakeLists.txt ${RM} ${WRKSRC}/rtengine/dcraw.patch \ ${WRKSRC}/rtengine/dcraw.c # 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 Index: head/math/eigen3/Makefile =================================================================== --- head/math/eigen3/Makefile (revision 394571) +++ head/math/eigen3/Makefile (revision 394572) @@ -1,23 +1,23 @@ # $FreeBSD$ PORTNAME= eigen PORTVERSION= 3.2.2 PORTREVISION= 1 CATEGORIES= math MASTER_SITES= https://bitbucket.org/${PORTNAME}/${PORTNAME}/get/ DISTNAME= ${PORTVERSION} DIST_SUBDIR= ${PORTNAME} MAINTAINER= kde@FreeBSD.org COMMENT= Lightweight library for vector and matrix math LICENSE= LGPL21 MPL LICENSE_COMB= multi USES= cmake:outsource tar:bzip2 -CMAKE_ENV+= PKG_CONFIG_LIBDIR="${PREFIX}/libdata" +CONFIGURE_ENV+= PKG_CONFIG_LIBDIR="${PREFIX}/libdata" NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-1306d75b4a21 .include Index: head/math/metis/Makefile =================================================================== --- head/math/metis/Makefile (revision 394571) +++ head/math/metis/Makefile (revision 394572) @@ -1,136 +1,136 @@ # Created by: Pedro Giffuni # $FreeBSD$ PORTNAME= metis PORTVERSION= 5.1.0 CATEGORIES= math MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ MAINTAINER= bf@FreeBSD.org COMMENT= Package for unstructured graph partitioning LICENSE= APACHE20 CONFLICTS= metis4-4* metis-edf-[0-9]* USES= cmake OPTIONS_DEFINE= OPENMP SHARED STATIC DOCS OPENMP_DESC= multithreading via OpenMP #PROFILE_DESC= profiling libraries SHARED_DESC= shared library and dynamically-linked executables STATIC_DESC= libmetis archive OPTIONS_DEFAULT= SHARED STATIC BINS= cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis .include .if ${PORT_OPTIONS:MOPENMP} CMAKE_ARGS+= -DOPENMP=1 USE_GCC= any .endif #.if ${PORT_OPTIONS:MPROFILE} #.if !exists(/usr/lib/libc_p.a) #IGNORE = : you have enabled the PROFILE option, but have not installed \ # the base system profiling libraries #.endif #ALL_TARGET_PROFILE= metis #CMAKE_ARGS_PROFILE= -DGPROF=1 #PLIST_SUB+= PROFILE="" ##PROFILE_FLAGS ?= -pg #WRKSRC_PROFILE = ${WRKSRC}_PROFILE #INSTALL_WRKSRC_PROFILE = ${WRKSRC_PROFILE}/libmetis #.else #PLIST_SUB+= PROFILE="@comment " #.endif .if ${PORT_OPTIONS:MSHARED} ALL_TARGET_SHARED= all CMAKE_ARGS_SHARED= -DSHARED=1 PLIST_SUB+= SHARED="" .if ${ARCH} == "sparc64" SHARED_FLAGS?= -fPIC .else SHARED_FLAGS?= -fpic .endif SHLIB_MAJOR?= 2 CMAKE_ARGS+= -DSHLIB_MAJOR="${SHLIB_MAJOR}" USE_LDCONFIG= yes WRKSRC_SHARED= ${WRKSRC}_SHARED INSTALL_WRKSRC_SHARED= ${WRKSRC_SHARED} .else PLIST_SUB+= SHARED="@comment " .endif .if ${PORT_OPTIONS:MSTATIC} ALL_TARGET_STATIC= metis PLIST_SUB+= STATIC="" WRKSRC_STATIC= ${WRKSRC} INSTALL_WRKSRC_STATIC= ${WRKSRC_STATIC}/libmetis .else PLIST_SUB+= STATIC="@comment " .endif post-patch: @${REINPLACE_CMD} -e "/^# Add compiler flags/,/^$$/d" \ -e "/^check_include_file(execinfo.h/d" \ ${WRKSRC}/GKlib/GKlibSystem.cmake @${REINPLACE_CMD} -e "\|/home/karypis/|d" \ ${WRKSRC}/programs/CMakeLists.txt .for o in SHARED #PROFILE .if ${PORT_OPTIONS:M${o}} @${CP} -R ${WRKSRC} ${WRKSRC_${o}} .endif .endfor do-configure: .for o in SHARED STATIC #PROFILE .if ${PORT_OPTIONS:M${o}} @${PRINTF} "\n\nConfiguring ${o}:\n\n\n" - @cd ${WRKSRC_${o}}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} \ + @cd ${WRKSRC_${o}}; ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} \ ${CMAKE_ARGS:C|${CFLAGS}|& ${${o}_FLAGS}|g} ${CMAKE_ARGS_${o}} \ -DGKLIB_PATH="${WRKSRC_${o}}/GKlib" ${CMAKE_SOURCE_PATH} .endif .endfor do-build: .for o in SHARED STATIC #PROFILE .if ${PORT_OPTIONS:M${o}} @${PRINTF} "\n\nBuilding ${o}:\n\n\n" @cd ${WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \ ${MAKE_ARGS} ${ALL_TARGET_${o}} .endif .endfor .if ${PORT_OPTIONS:MSHARED} @cd ${WRKSRC_SHARED}/programs; ${STRIP_CMD} ${BINS} @cd ${WRKSRC_SHARED}/libmetis; ${STRIP_CMD} libmetis.so.* .endif .if ${PORT_OPTIONS:MSTATIC} @cd ${WRKSRC_STATIC}/libmetis; ${STRIP_CMD} libmetis.a .endif check regression-test test: build cd ${WRKSRC_SHARED}/graphs ; ../programs/gpmetis ./4elt.graph 5 do-install: .for o in SHARED STATIC #PROFILE .if ${PORT_OPTIONS:M${o}} @${PRINTF} "\n\nInstalling ${o}:\n\n\n" @cd ${INSTALL_WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \ ${MAKE_ARGS} install .endif .endfor .if ${PORT_OPTIONS:MDOCS} PORTDOCS= manual.pdf post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/manual/manual.pdf ${STAGEDIR}${DOCSDIR} .endif .include Index: head/math/scalapack/Makefile =================================================================== --- head/math/scalapack/Makefile (revision 394571) +++ head/math/scalapack/Makefile (revision 394572) @@ -1,160 +1,160 @@ # Created by: NAKATA, Maho # $FreeBSD$ PORTNAME= scalapack PORTVERSION= 2.0.2 PORTREVISION= 6 CATEGORIES= math MASTER_SITES= NL DISTFILES= scalapack-${PORTVERSION}.tgz manpages.tgz DIST_SUBDIR= scalapack EXTRACT_ONLY= scalapack-${PORTVERSION}.tgz manpages.tgz MAINTAINER= ports@FreeBSD.org COMMENT= The ScaLAPACK Scalable LAPACK library LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE CONFLICTS= elmer-mathlibs-1* USE_LDCONFIG= yes USES= cmake fortran CMAKE_ARGS_ST= -DBUILD_STATIC_LIBS:BOOL=ON CMAKE_ARGS_SH= -DBUILD_SHARED_LIBS:BOOL=ON CMAKE_ARGS= ${CMAKE_ARGS_ST} ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \ REDIST/SRC SRC TOOLS TOOLS/LAPACK DATADIR= ${PREFIX}/share/${PORTNAME:tu} EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:tu} PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message PLIST_SUB= SVERSION=${SVERSION} PORTVERSION=${PORTVERSION} .include .if ${PORT_OPTIONS:MDOCS} DISTFILES+= scalapack_install.ps scalapackqref.ps \ lawn100.ps pblasqref.ps manual.ps design.ps \ pumma_refmanual.ps trans.ps .endif .if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS) WITH_ATLAS= yes .endif .if defined(WITH_ATLAS) LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas BLAS= -lf77blas LAPACK= -lalapack -lcblas .else LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack BLAS= -lblas LAPACK= -llapack .endif .if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun) WITH_OPENMPI= yes .endif .if defined(WITH_OPENMPI) BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi .else #LIB_DEPENDS+= libmpich.so:${PORTSDIR}/net/mpich2 BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2 RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2 .endif .if ${ARCH} == "sparc64" || ${ARCH} == "amd64" FPIC= -fPIC .else FPIC= -fpic .endif CFLAGS+= ${FPIC} FFLAGS+= ${FPIC} SVERSION= 2 .if defined(WITH_OPTIMIZED_FLAGS) .if ${ARCH} == "amd64" FFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time CFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time .elif ${ARCH} == "i386" FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 .else FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar .endif .endif NOOPT= -O0 .if defined(WITH_OPENMPI) MPIF77= ${LOCALBASE}/mpi/openmpi/bin/mpif77 MPICC= ${LOCALBASE}/mpi/openmpi/bin/mpicc .else MPIF77= ${LOCALBASE}/bin/mpif77 MPICC= ${LOCALBASE}/bin/mpicc .endif pre-configure: ${CP} -p ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist ${CP} ${WRKSRC}/SLmake.inc.example ${WRKSRC}/SLmake.inc ${REINPLACE_CMD} -e 's|@BLAS@|${BLAS}|g; s|@LAPACK@|${LAPACK}|g;s|@LAPACK@|${LAPACK}|g;s|@LAPACK@|${LAPACK}|g;s|@LAPACK@|${LAPACK}|g; s|@WRKSRC@|${WRKSRC}|g ; s|@LOCALBASE@|${LOCALBASE}|g ; s|@CC@|${CC}|g ; s|@CFLAGS@|${CFLAGS}|g ; s|@F77@|${F77}|g ; s|@MPIF77@|${MPIF77}|g ; s|@MPICC@|${MPICC}|g ; s|@FFLAGS@|${FFLAGS}|g ; s|@NOOPT@|${NOOPT}|g ; s|@F77EXTRAFLAGS@|${F77EXTRAFLAGS}|g ; s|^ARCH *.= ar|ARCMD = ar|' ${WRKSRC}/SLmake.inc .for mkf in ${ARCH2FIX} ${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${mkf}/Makefile .endfor post-build: ${RM} -rf ${WRKSRC}/CMakeFiles ${WRKSRC}/CMakeCache.txt ${CP} -p ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile (cd ${WRKSRC} && \ - ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS:C|BUILD_STATIC_LIBS|BUILD_SHARED_LIBS|} ${CMAKE_SOURCE_PATH}) + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS:C|BUILD_STATIC_LIBS|BUILD_SHARED_LIBS|} ${CMAKE_SOURCE_PATH}) (cd ${WRKSRC} && ${DO_MAKE_BUILD} ${ALL_TARGET}) post-install: ${INSTALL_DATA} ${WRKSRC}/lib/libscalapack.a ${STAGEDIR}${PREFIX}/lib ${MV} ${STAGEDIR}${PREFIX}/lib/libscalapack.so ${STAGEDIR}${PREFIX}/lib/libscalapack.so.${SVERSION} ${LN} -sf libscalapack.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/libscalapack.so ${INSTALL_MAN} ${WRKDIR}/MANPAGES/man/manl/*.l ${STAGEDIR}${PREFIX}/man/manl ${MKDIR} ${STAGEDIR}${PREFIX}/share/SCALAPACK/TESTING (cd ${WRKSRC}/TESTING/ ;\ ${INSTALL_PROGRAM} x* ${STAGEDIR}${PREFIX}/share/SCALAPACK/TESTING ;\ ${INSTALL_DATA} *.dat ${STAGEDIR}${PREFIX}/share/SCALAPACK/TESTING) ${INSTALL_DATA} ${FILESDIR}/scalapack.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/PBLAS/SRC/*.h ${STAGEDIR}${PREFIX}/include .if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK ${INSTALL_DATA} ${FILESDIR}/Makefile ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK ${INSTALL_DATA} ${FILESDIR}/example1.cc ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK ${INSTALL_DATA} ${FILESDIR}/example1.f ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK .endif .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${CAT} ${DISTDIR}/${DIST_SUBDIR}/design.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/design.ps.gz ${CAT} ${DISTDIR}/${DIST_SUBDIR}/lawn100.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/lawn100.ps.gz ${CAT} ${DISTDIR}/${DIST_SUBDIR}/manual.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/manual.ps.gz ${CAT} ${DISTDIR}/${DIST_SUBDIR}/pblasqref.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/pblasqref.ps.gz ${CAT} ${DISTDIR}/${DIST_SUBDIR}/pumma_refmanual.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/pumma_refmanual.ps.gz ${CAT} ${DISTDIR}/${DIST_SUBDIR}/scalapack_install.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/scalapack_install.ps.gz ${CAT} ${DISTDIR}/${DIST_SUBDIR}/scalapackqref.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/scalapackqref.ps.gz ${CAT} ${DISTDIR}/${DIST_SUBDIR}/trans.ps | ${GZIP_CMD} > ${STAGEDIR}${DOCSDIR}/trans.ps.gz .endif .if defined(MAINTAINER_MODE) regression-test: build . if !exists(${HOME}/.mpd.conf) @${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf ${CHMOD} go-r ${HOME}/.mpd.conf @${ECHO_MSG} "${HOME}/.mpd.conf has been generated - please change the secret word!" . endif ${LOCALBASE}/bin/mpd & (sleep 5 && cd ${BUILD_WRKSRC}/TESTING && ${MAKE_CMD} test) ${LOCALBASE}/bin/mpdallexit .endif .include Index: head/sysutils/osquery/Makefile =================================================================== --- head/sysutils/osquery/Makefile (revision 394571) +++ head/sysutils/osquery/Makefile (revision 394572) @@ -1,78 +1,78 @@ # Created by: Ryan Steinmetz # $FreeBSD$ PORTNAME= osquery PORTVERSION= 1.4.7 CATEGORIES= sysutils MAINTAINER= zi@FreeBSD.org COMMENT= SQL powered OS instrumentation, monitoring, and analytics LICENSE= BSD3CLAUSE BUILD_DEPENDS= snappy>0:${PORTSDIR}/archivers/snappy \ rocksdb>0:${PORTSDIR}/databases/rocksdb \ thrift>0:${PORTSDIR}/devel/thrift \ thrift-cpp>0:${PORTSDIR}/devel/thrift-cpp \ bash>0:${PORTSDIR}/shells/bash \ yara>0:${PORTSDIR}/security/yara \ doxygen:${PORTSDIR}/devel/doxygen \ ${PYTHON_PKGNAMEPREFIX}MarkupSafe>0:${PORTSDIR}/textproc/py-MarkupSafe \ ${PYTHON_PKGNAMEPREFIX}psutil>0:${PORTSDIR}/sysutils/py-psutil \ ${PYTHON_PKGNAMEPREFIX}argparse>0:${PORTSDIR}/devel/py-argparse \ ${PYTHON_PKGNAMEPREFIX}pexpect>0:${PORTSDIR}/misc/py-pexpect \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:${PORTSDIR}/devel/py-Jinja2 \ ${PYTHON_PKGNAMEPREFIX}thrift>0:${PORTSDIR}/devel/py-thrift \ ${PYTHON_PKGNAMEPREFIX}pip>0:${PORTSDIR}/devel/py-pip LIB_DEPENDS= libboost_regex.so:${PORTSDIR}/devel/boost-libs \ libgflags.so:${PORTSDIR}/devel/gflags \ libicuuc.so:${PORTSDIR}/devel/icu USES= cmake:outsource gmake libtool python:build compiler:c++11-lib -CMAKE_ENV+= OSQUERY_BUILD_VERSION="${PORTVERSION}" HOME="${WRKDIR}" \ +CONFIGURE_ENV+= OSQUERY_BUILD_VERSION="${PORTVERSION}" HOME="${WRKDIR}" \ SKIP_TESTS="yes" CC="${CC}" CXX="${CXX}" CMAKE_ARGS+= -DFREEBSD=awesome -DCMAKE_SYSTEM_NAME="FreeBSD" BLDDIR= ${WRKDIR}/.build/${PORTNAME} USE_RC_SUBR= ${PORTNAME}d USE_GITHUB= yes GH_ACCOUNT= facebook ${PORTNAME}:tp GH_PROJECT= third-party:tp MAKE_JOBS_UNSAFE= yes .include .if ${OSVERSION} <= 1000000 CFLAGS+= -D_GLIBCXX_USE_C99 .endif post-extract: ${RMDIR} ${WRKSRC}/third-party ${LN} -sf ${WRKSRC_tp} ${WRKSRC}/third-party post-patch: ${REINPLACE_CMD} -e 's|/var/osquery|/var/db/osquery|g' \ ${WRKSRC}/osquery/core/init.cpp ${REINPLACE_CMD} -e 's|/var/osquery/osquery.em|/var/run/osquery.em|g' \ -e 's|/etc/osquery/extensions.load|${PREFIX}/etc/osquery.extensions|g' \ -e 's|/etc/osquery/modules.load|${PREFIX}/etc/osquery.modules|g' \ ${WRKSRC}/osquery/extensions/extensions.cpp ${REINPLACE_CMD} -e 's|/var/osquery/osquery.conf|${PREFIX}/etc/osquery.conf|g' \ ${WRKSRC}/osquery/config/plugins/filesystem.cpp ${REINPLACE_CMD} -e 's|/var/osquery/|/var/db/osquery/|g' \ ${WRKSRC}/tools/deployment/osquery.example.conf ${REINPLACE_CMD} -e 's|python |${PYTHON_CMD} |g' \ ${WRKSRC}/CMake/CMakeLibs.cmake \ ${WRKSRC}/CMakeLists.txt do-install: ${INSTALL_PROGRAM} ${BLDDIR}/osqueryi ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${BLDDIR}/osqueryd ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${BLDDIR}/libosquery.a ${STAGEDIR}${PREFIX}/lib (cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include) ${INSTALL_DATA} ${WRKSRC}/tools/deployment/osquery.example.conf \ ${STAGEDIR}${PREFIX}/etc/osquery.conf.sample post-stage: ${MKDIR} ${STAGEDIR}/var/db/osquery .include Index: head/www/webkit2-gtk3/Makefile =================================================================== --- head/www/webkit2-gtk3/Makefile (revision 394571) +++ head/www/webkit2-gtk3/Makefile (revision 394572) @@ -1,105 +1,105 @@ # Created by: Michael Johnson # $FreeBSD$ PORTNAME= webkit PORTVERSION= 2.8.5 CATEGORIES= www MASTER_SITES= http://webkitgtk.org/releases/ PKGNAMESUFFIX= 2-gtk3 DISTNAME= ${PORTNAME}gtk-${PORTVERSION} MAINTAINER= gnome@FreeBSD.org COMMENT= Opensource browser engine using the GTK+ 3 toolkit BUILD_DEPENDS= geoclue>=0:${PORTSDIR}/net/geoclue LIB_DEPENDS= libenchant.so:${PORTSDIR}/textproc/enchant \ libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \ libfreetype.so:${PORTSDIR}/print/freetype2 \ libwebp.so:${PORTSDIR}/graphics/webp \ libpng.so:${PORTSDIR}/graphics/png \ libsecret-1.so:${PORTSDIR}/security/libsecret \ libicutu.so:${PORTSDIR}/devel/icu \ libharfbuzz.so:${PORTSDIR}/print/harfbuzz \ libsoup-2.4.so:${PORTSDIR}/devel/libsoup RUN_DEPENDS= geoclue>=0:${PORTSDIR}/net/geoclue PORTSCOUT= limitw:1,even USE_GSTREAMER1= yes USE_XORG= x11 xext ice # when it USES=cmake safe USES= bison compiler:c++11-lib gettext gmake gperf jpeg perl5 \ pkgconfig python:2 tar:xz USE_RUBY= yes RUBY_NO_RUN_DEPENDS=yes USE_GNOME= cairo gtk20 gtk30 introspection:build libxml2 libxslt USE_GL= gl egl USE_SQLITE= 3 USE_PERL5= build USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib BUILD_DEPENDS+= cmake:${PORTSDIR}/devel/cmake #USES=cmake is not used because it triggers: #Linking CXX executable ../../../bin/jsc #../../../lib/libjavascriptcoregtk-4.0.so.18.0.8: undefined reference to `JSC::JSCell::inherits(JSC::ClassInfo const*) const' #../../../lib/libjavascriptcoregtk-4.0.so.18.0.8: undefined reference to `JSC::JSCell::structure() const' #c++: error: linker command failed with exit code 1 (use -v to see invocation) #Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/build.make:94: recipe for target 'bin/jsc' failed -# there is something in CMAKE_ENV that cause this ... but what. +# there is something in CONFIGURE_ENV that cause this ... but what. CMAKE_ARGS+= -DPORT=GTK -CMAKE_ENV+= XDG_CACHE_HOME=${WRKDIR} \ +CONFIGURE_ENV+= XDG_CACHE_HOME=${WRKDIR} \ CPPFLAGS="${CPPFLAGS}" \ LDFLAGS="${LDFLAGS}" \ CC="${CC}" CXX="${CXX}" CPP="${CPP}" #CMAKE_ARGS+= -GNinja -DUSE_LD_GOLD:BOOL=0 #CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE=1 #MAKE_ARGS+= V=1 VERBOSE=1 BROWSER_PLUGINS_DIR?= ${LOCALBASE}/lib/browser_plugins/symlinks/webkit-gtk3 #_BROWSER_PLUGINS_DIR= ${BROWSER_PLUGINS_DIR:S|^/|"|:S|/|", "|g}", OPTIONS_DEFINE= DEBUG FULLDEBUG DEBUG_DESC= Just enable debug symbols FULLDEBUG_DESC= Enable asserts and other debug support FULLDEBUG_CONFIGURE_ENABLE= debug DEBUG_CMAKE_OFF= -DCMAKE_BUILD_TYPE=Release .include .if ${ARCH} == powerpc64 CFLAGS+= -mminimal-toc .endif .if ${OSVERSION} < 1000033 BUILD_DEPENDS+= flex>=0:${PORTSDIR}/textproc/flex CONFIGURE_ENV+= FLEX_PATH="${LOCALBASE}/bin/flex" .endif post-patch: @${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \ ${WRKSRC}/Source/WebKit2/UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp pre-configure: .if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-egl.pc) @${ECHO_CMD} "${PKGNAME}: Needs cairo with OPENGL support enabled." @${FALSE} .endif do-configure: @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} CFLAGS="${CFLAGS}" \ - ${CMAKE_ENV} cmake -DPORT=GTK ${CMAKE_ARGS} + ${CONFIGURE_ENV} cmake -DPORT=GTK ${CMAKE_ARGS} post-install: ${MV} ${STAGEDIR}${PREFIX}/bin/jsc \ ${STAGEDIR}/${PREFIX}/bin/jsc-4 @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.* @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/jsc-4 @${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/WebKit* .include