Add optins to allow build client and server separately.

Approved by:	miwi (mentor)
This commit is contained in:
Max Brazhnikov 2008-09-23 15:05:20 +00:00
parent ef54987488
commit 06f1fe1146
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220575
2 changed files with 48 additions and 10 deletions

View file

@ -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>

View file

@ -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