mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
5898d7df5c
- Add state support - Convert LIB_DEPENDS to new style, adjust USE_QT4 components, etc. Approved by: portmgr (blanket approval)
58 lines
1.2 KiB
Makefile
58 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= 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 <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>
|