blob: 1559d82d46d39d361c8f10615d94ee871df42047 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# 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>
|