2013-02-03 21:10:37 +01:00
|
|
|
# Created by: Raphael Kubo da Costa <rakuco@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-03-26 15:47:40 +01:00
|
|
|
PORTNAME= kmix
|
|
|
|
PORTVERSION= ${KDE4_VERSION}
|
|
|
|
CATEGORIES= audio kde
|
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2013-02-03 21:10:37 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
|
2013-03-26 15:47:40 +01:00
|
|
|
DIST_SUBDIR= KDE
|
2013-02-03 21:10:37 +01:00
|
|
|
|
2013-03-26 15:47:40 +01:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
|
|
COMMENT= Sound mixer for KDE
|
2013-02-03 21:10:37 +01:00
|
|
|
|
2013-03-26 15:47:40 +01:00
|
|
|
LICENSE= GPLv2
|
2013-02-03 21:10:37 +01:00
|
|
|
|
|
|
|
CONFLICTS_INSTALL= kdemultimedia-4.[1-8].*
|
|
|
|
|
2013-03-26 15:47:40 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
USES= cmake:outsource
|
|
|
|
USE_KDE4= automoc4 kdehier kdelibs kdeprefix
|
|
|
|
USE_QT4= dbus phonon xml \
|
|
|
|
moc_build qmake_build rcc_build uic_build
|
|
|
|
USE_XZ= yes
|
2013-02-03 21:10:37 +01:00
|
|
|
|
2013-03-26 15:47:40 +01:00
|
|
|
OPTIONS_DEFINE= ALSA PULSEAUDIO
|
2013-02-03 21:10:37 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
2013-03-26 15:47:40 +01:00
|
|
|
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
|
2013-02-03 21:10:37 +01:00
|
|
|
.else
|
2013-03-26 15:47:40 +01:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-no_alsa
|
2013-02-03 21:10:37 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
2013-03-26 15:47:40 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_Canberra:BOOL=ON \
|
|
|
|
-DWITH_PulseAudio:BOOL=ON
|
|
|
|
LIB_DEPENDS+= canberra.0:${PORTSDIR}/audio/libcanberra \
|
|
|
|
pulse.0:${PORTSDIR}/audio/pulseaudio
|
|
|
|
USE_GNOME= glib20
|
2013-02-03 21:10:37 +01:00
|
|
|
.else
|
2013-03-26 15:47:40 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_Canberra:BOOL=OFF \
|
|
|
|
-DWITH_PulseAudio:BOOL=OFF
|
2013-02-03 21:10:37 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|