47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2018/07/02 08:22:25 landry Exp $
|
|
|
|
COMMENT = Qt-based MPD client
|
|
|
|
V = 2.3.1
|
|
DISTNAME = cantata-${V}
|
|
HOMEPAGE = https://github.com/CDrummond/cantata
|
|
|
|
MASTER_SITES = https://github.com/CDrummond/cantata/releases/download/v${V}/
|
|
EXTRACT_SUFX = .tar.bz2
|
|
|
|
CATEGORIES = audio
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} Qt5Concurrent Qt5Core Qt5DBus Qt5Gui
|
|
WANTLIB += Qt5Multimedia Qt5Network Qt5Sql Qt5Svg Qt5Widgets Qt5Xml
|
|
WANTLIB += avcodec avformat avutil c cddb cdio cdio_cdda cdio_paranoia
|
|
WANTLIB += m mpg123 mtp musicbrainz5 tag z avahi-client avahi-common
|
|
|
|
MODULES = devel/cmake \
|
|
x11/qt5
|
|
|
|
RUN_DEPENDS += devel/desktop-file-utils
|
|
RUN_DEPENDS += x11/gtk+3,-guic
|
|
LIB_DEPENDS += audio/mpg123 \
|
|
audio/libcdio \
|
|
audio/libcddb \
|
|
audio/libmusicbrainz5 \
|
|
audio/taglib \
|
|
x11/qt5/qtmultimedia \
|
|
x11/qt5/qtsvg \
|
|
devel/libmtp \
|
|
graphics/ffmpeg
|
|
|
|
CONFIGURE_ARGS += -DCMAKE_INSTALL_PREFIX:Path=${PREFIX} \
|
|
-DENABLE_LIBVLC=OFF \
|
|
-DLRELEASE_EXECUTABLE:String=${MODQT_LRELEASE} \
|
|
-DLCONVERT_EXECUTABLE:String=${LOCALBASE}/lib/qt5/bin/lconvert
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cantata/dbus-1/system.d/
|
|
mv ${WRKINST}/etc/dbus-1/system.d/*.conf ${PREFIX}/share/examples/cantata/dbus-1/system.d/
|
|
|
|
.include <bsd.port.mk>
|