# 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= qmake USE_BZIP2= yes 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 .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