1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/audio/qmpdclient/Makefile
2014-06-01 13:03:14 +00:00

57 lines
1.2 KiB
Makefile

# Created by: uyamba@gmail.com
# $FreeBSD$
PORTNAME= qmpdclient
PORTVERSION= 1.2.2
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://dump.bitcheese.net/files/
MAINTAINER= uyamba@gmail.com
COMMENT= Easy to use musicpd client written in Qt4
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= tar:bzip2 qmake
USE_QT4= moc_build rcc_build uic_build \
corelib gui network xml xmlpatterns
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DBUS NLS DEBUG
DATADIR= ${PREFIX}/share/QMPDClient
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS="@comment "
.else
USE_QT4+= linguist_build
PLIST_SUB+= NLS=""
.endif
.if ${PORT_OPTIONS:MDBUS}
USE_QT4+= dbus
QMAKE_ARGS+= "CONFIG+=qdbus"
.endif
.if ${PORT_OPTIONS:MDEBUG}
QMAKE_ARGS+= "CONFIG+=debug"
.endif
post-patch:
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/INSTALLS += translations/d' \
${WRKSRC}/${PORTNAME}.pro
.endif
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
-e 's|lupdate|lupdate-qt4|' \
-e 's|lrelease|lrelease-qt4|' \
${WRKSRC}/${PORTNAME}.pro
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
${WRKSRC}/src/notifications_dbus.cpp
.include <bsd.port.mk>