[kde-freebsd] Qt4 ports are too bloated: part 1 (devel/qt4-designer)
Alexey Dokuchaev
danfe at nsu.ru
Fri Nov 1 17:14:40 UTC 2013
On Fri, Nov 01, 2013 at 11:34:38PM +0700, Alexey Dokuchaev wrote:
> Please consider attached patch to make phonon optional in qt4-designer,
> yet still on by default.
I think I forgot pkg-plist part. Attaching another diff.
./danfe
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile (revision 332253)
+++ Makefile (working copy)
@@ -1,4 +1,4 @@
-# Created by: lofi at FreeBSD.org
+# Created by: Michael Nottebrock <lofi at FreeBSD.org>
# $FreeBSD$
PORTNAME= designer
@@ -7,17 +7,17 @@
PKGNAMEPREFIX= qt4-
MAINTAINER= kde at FreeBSD.org
-COMMENT= Qt ui editor
+COMMENT= Qt UI editor
USE_QT4= qmake_build moc_build rcc_build uic_build assistant_run \
qt3support corelib declarative gui network script sql xml \
- webkit phonon
+ webkit
QT_NONSTANDARD= yes
QT_DIST= yes
HAS_CONFIGURE= yes
-#Try to fix linking when previous version is installed
-CONFIGURE_ARGS+= -L${WRKSRC}/lib
+# Try to fix linking when previous version is installed
+CONFIGURE_ARGS= -L${WRKSRC}/lib
USE_LDCONFIG= ${PREFIX}/lib/qt4
ALL_TARGET= first
@@ -44,6 +44,15 @@
EXTRA_PATCHES+= ${.CURDIR}/../../devel/qt4/files/patch-configure
+OPTIONS_DEFINE= PHONON
+OPTIONS_DEFAULT= PHONON
+OPTIONS_SUB= yes
+
+PHONON_DESC= Phonon multimedia framework support
+PHONON_USE= QT4=phonon
+PHONON_CONFIGURE_ON= -phonon
+PHONON_CONFIGURE_OFF= -no-phonon
+
pre-configure:
${REINPLACE_CMD} -e 's|^TARGET.*|TARGET=designer-qt4|g' \
${BUILD_WRKSRC}/src/${PORTNAME}/${PORTNAME}.pro
Index: pkg-plist
===================================================================
--- pkg-plist (revision 332253)
+++ pkg-plist (working copy)
@@ -96,8 +96,8 @@
%%DEBUG%%lib/qt4/libQtDesignerComponents.so.%%SHLIB_VER%%.debug
lib/qt4/libQtUiTools.a
lib/qt4/libQtUiTools.prl
-%%QT_PLUGINDIR_REL%%/designer/libphononwidgets.so
-%%DEBUG%%%%QT_PLUGINDIR_REL%%/designer/libphononwidgets.so.debug
+%%PHONON%%%%QT_PLUGINDIR_REL%%/designer/libphononwidgets.so
+%%DEBUG%%%%PHONON%%%%QT_PLUGINDIR_REL%%/designer/libphononwidgets.so.debug
%%QT_PLUGINDIR_REL%%/designer/libqdeclarativeview.so
%%DEBUG%%%%QT_PLUGINDIR_REL%%/designer/libqdeclarativeview.so.debug
%%QT_PLUGINDIR_REL%%/designer/libqt3supportwidgets.so
More information about the kde-freebsd
mailing list