Changeset View
Changeset View
Standalone View
Standalone View
multimedia/gstreamer1-qt/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gstreamer1-qt | PORTNAME= gstreamer1 | ||||
PORTVERSION= 1.2.0 | PORTVERSION= 1.2.0 | ||||
PORTREVISION?= 9 | PORTREVISION?= 10 | ||||
CATEGORIES= multimedia | CATEGORIES= multimedia | ||||
MASTER_SITES= http://gstreamer.freedesktop.org/src/qt-gstreamer/ | MASTER_SITES= http://gstreamer.freedesktop.org/src/qt-gstreamer/ | ||||
PKGNAMESUFFIX?= 4 | PKGNAMESUFFIX= -${FLAVOR} | ||||
mat: Would probably be simpler to change PORTNAME to gstreamer1 and use -${FLAVOR} here. | |||||
DISTNAME= qt-gstreamer-${PORTVERSION} | DISTNAME= qt-gstreamer-${PORTVERSION} | ||||
MAINTAINER= kde@FreeBSD.org | MAINTAINER= kde@FreeBSD.org | ||||
COMMENT= Qt ${PKGNAMESUFFIX} bindings for GStreamer 1.x multimedia library | COMMENT= Qt ${FLAVOR:C/qt//} bindings for GStreamer 1.x multimedia library | ||||
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ | LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ | ||||
libgstreamer-1.0.so:multimedia/gstreamer1 | libgstreamer-1.0.so:multimedia/gstreamer1 | ||||
FLAVORS= qt4 qt5 | |||||
FLAVOR?= ${FLAVORS:[1]} | |||||
CONFLICTS_INSTALL= gstreamer-qt${PKGNAMESUFFIX}-* | CONFLICTS_INSTALL= gstreamer-qt${PKGNAMESUFFIX}-* | ||||
USES= bison cmake:outsource pathfix pkgconfig tar:xz | USES= bison cmake:outsource pathfix pkgconfig tar:xz | ||||
USE_GSTREAMER1= yes | USE_GSTREAMER1= yes | ||||
USE_GL= gl | USE_GL= gl | ||||
USE_GNOME= glib20 | USE_GNOME= glib20 | ||||
. if ${PKGNAMESUFFIX:M4} | |||||
USE_LDCONFIG= yes | |||||
CMAKE_OFF= USE_GST_PLUGIN_DIR USE_QT_PLUGIN_DIR | |||||
CMAKE_ARGS= -DQT_VERSION=${FLAVOR:C/qt//} | |||||
Not Done Inline Actions^ whait, this is now broken. let me fix that :) tcberner: ^ whait, this is now broken. let me fix that :) | |||||
. if ${FLAVOR} == qt4 | |||||
USE_QT4= corelib gui opengl declarative script \ | USE_QT4= corelib gui opengl declarative script \ | ||||
qmake_build moc_build rcc_build uic_build qtestlib_build | qmake_build moc_build rcc_build uic_build qtestlib_build | ||||
PLIST_SUB= QT4_ONLY="" QT5_ONLY="@comment " | PLIST_SUB= QT4_ONLY="" QT5_ONLY="@comment " | ||||
. else | . else | ||||
USE_QT5= buildtools_build qmake_build core gui network opengl \ | USE_QT5= buildtools_build qmake_build core gui network opengl \ | ||||
qml quick testlib widgets | qml quick testlib widgets | ||||
QTVER_SUFFIX= 5 | QTVER_SUFFIX= 5 | ||||
PLIST_SUB= QT4_ONLY="@comment " QT5_ONLY="" | PLIST_SUB= QT4_ONLY="@comment " QT5_ONLY="" | ||||
. endif | . endif | ||||
Not Done Inline ActionsThis should happen later, see Chapter 15. Order of Variables in Port Makefiles. mat: This should happen later, see [[ https://www.freebsd.org/doc/en/books/porters-handbook/porting… | |||||
USE_LDCONFIG= yes | |||||
CMAKE_ARGS= -DUSE_GST_PLUGIN_DIR=off \ | |||||
-DUSE_QT_PLUGIN_DIR=off \ | |||||
-DQT_VERSION=${PKGNAMESUFFIX} | |||||
PLIST_SUB+= SHLIB_VER="${PORTVERSION}" \ | PLIST_SUB+= SHLIB_VER="${PORTVERSION}" \ | ||||
QTVER_SUFFIX="${QTVER_SUFFIX}" | QTVER_SUFFIX="${QTVER_SUFFIX}" | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Would probably be simpler to change PORTNAME to gstreamer1 and use -${FLAVOR} here.