aboutsummaryrefslogtreecommitdiff
path: root/irc/quassel
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2008-09-23 15:05:20 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2008-09-23 15:05:20 +0000
commit06f1fe1146c702dce9203ddef9fdd305ef59a775 (patch)
tree902cf96267adcc9dd70b85f393fbf32fff574684 /irc/quassel
parentef5498748843d2740cb41894adf14ef878c38280 (diff)
downloadports-06f1fe1146c702dce9203ddef9fdd305ef59a775.tar.gz
ports-06f1fe1146c702dce9203ddef9fdd305ef59a775.zip
Notes
Diffstat (limited to 'irc/quassel')
-rw-r--r--irc/quassel/Makefile48
-rw-r--r--irc/quassel/pkg-plist10
2 files changed, 48 insertions, 10 deletions
diff --git a/irc/quassel/Makefile b/irc/quassel/Makefile
index 0a51816f4504..285c92886137 100644
--- a/irc/quassel/Makefile
+++ b/irc/quassel/Makefile
@@ -18,10 +18,48 @@ LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
USE_BZIP2= yes
USE_CMAKE= yes
USE_QT_VER= 4
-QT_COMPONENTS= gui network script sql dbus xml \
- qmake_build moc_build rcc_build uic_build
-
+QT_COMPONENTS= qmake_build moc_build rcc_build uic_build
CMAKE_USE_PTHREAD= yes
-CMAKE_ARGS+= -DWANT_MONO=ON
-.include <bsd.port.mk>
+OPTIONS= MONO "Quassel standalone client" on \
+ CORE "Quassel core" on \
+ CLIENT "Quassel client" on
+
+CMAKE_ARGS+= -DWANT_MONO=${QUASSEL_MONO} \
+ -DWANT_CORE=${QUASSEL_CORE} \
+ -DWANT_QTCLIENT=${QUASSEL_CLIENT}
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_MONO) && defined(WITHOUT_CORE) && defined(WITHOUT_CLIENT)
+IGNORE= needs at least one Quassel component. Please, rerun 'make config'
+.endif
+
+.if !defined(WITHOUT_MONO)
+QT_COMPONENTS+= dbus gui network script sql xml
+QUASSEL_MONO= ON
+PLIST_SUB+= MONO=""
+.else
+QUASSEL_MONO= OFF
+PLIST_SUB+= MONO="@comment "
+.endif
+
+.if !defined(WITHOUT_CORE)
+QT_COMPONENTS+= network script sql
+QUASSEL_CORE= ON
+PLIST_SUB+= CORE=""
+.else
+QUASSEL_CORE= OFF
+PLIST_SUB+= CORE="@comment "
+.endif
+
+.if !defined(WITHOUT_CLIENT)
+QT_COMPONENTS+= dbus gui network xml
+QUASSEL_CLIENT= ON
+PLIST_SUB+= CLIENT=""
+.else
+QUASSEL_CLIENT= OFF
+PLIST_SUB+= CLIENT="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/irc/quassel/pkg-plist b/irc/quassel/pkg-plist
index 156da958ca38..434a1948e453 100644
--- a/irc/quassel/pkg-plist
+++ b/irc/quassel/pkg-plist
@@ -1,6 +1,6 @@
-bin/quassel
-bin/quasselclient
-bin/quasselcore
-share/applications/quassel.desktop
-share/applications/quasselclient.desktop
+%%MONO%%bin/quassel
+%%CLIENT%%bin/quasselclient
+%%CORE%%bin/quasselcore
+%%MONO%%share/applications/quassel.desktop
+%%CLIENT%%share/applications/quasselclient.desktop
@dirrmtry share/applications