blob: 008624a43dda7ce01c58e3006cc2e96b45d97eb8 (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: qmpdclient
# Date created: 4 June 2007
# Whom: uyamba@gmail.com
#
# $FreeBSD$
#
PORTNAME= qmpdclient
PORTVERSION= 1.2.2
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
RUN_DEPENDS+= ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme
USE_BZIP2= yes
USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build rcc_build uic_build \
corelib gui network xml xmlpatterns
MAKE_JOBS_SAFE= yes
INSTALLS_ICONS= yes
QMAKE_ARGS= ${QMAKE_PRO}
QMAKE_PRO= ${PORTNAME}.pro
OPTIONS= DBUS "Enable D-BUS support" off \
NLS "Enable National Language Support" on
DATADIR= ${PREFIX}/share/QMPDClient
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
QT_COMPONENTS+= linguist_build
PLIST_SUB+= NLS=""
.endif
.if defined(WITH_DBUS) && !defined(WITHOUT_DBUS)
QT_COMPONENTS+= dbus
QMAKEFLAGS+= "CONFIG+=qdbus"
.endif
.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
QMAKEFLAGS+= "CONFIG+=debug"
.endif
post-patch:
.if defined(WITHOUT_NLS)
@${REINPLACE_CMD} -e '/INSTALLS += translations/d' \
${WRKSRC}/${QMAKE_PRO}
.endif
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
-e 's|lupdate|lupdate-qt4|' \
-e 's|lrelease|lrelease-qt4|' \
${WRKSRC}/${QMAKE_PRO}
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
${WRKSRC}/src/notifications_dbus.cpp
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} \
${QMAKEFLAGS} ${QMAKE_ARGS}
.include <bsd.port.post.mk>
|