2007-06-11 12:40:02 +00:00
|
|
|
# New ports collection makefile for: qmpdclient
|
|
|
|
# Date created: 4 June 2007
|
|
|
|
# Whom: uyamba@gmail.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qmpdclient
|
2011-06-17 15:50:51 +00:00
|
|
|
PORTVERSION= 1.2.1
|
2007-06-11 12:40:02 +00:00
|
|
|
CATEGORIES= audio
|
2011-06-17 15:50:51 +00:00
|
|
|
MASTER_SITES= http://dump.bitcheese.net/files/
|
2007-06-11 12:40:02 +00:00
|
|
|
|
|
|
|
MAINTAINER= uyamba@gmail.com
|
2011-06-17 15:50:51 +00:00
|
|
|
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
|
2007-06-11 12:40:02 +00:00
|
|
|
|
2009-12-24 21:40:17 +00:00
|
|
|
USE_BZIP2= yes
|
2007-06-11 12:40:02 +00:00
|
|
|
USE_QT_VER= 4
|
2007-09-23 05:58:38 +00:00
|
|
|
QT_COMPONENTS= qmake_build moc_build rcc_build uic_build \
|
2011-06-17 15:50:51 +00:00
|
|
|
corelib gui network webkit xml xmlpatterns
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
QMAKE_ARGS= ${QMAKE_PRO}
|
2009-12-24 21:40:17 +00:00
|
|
|
QMAKE_PRO= ${PORTNAME}.pro
|
2007-09-23 05:58:38 +00:00
|
|
|
|
|
|
|
OPTIONS= DBUS "Enable D-BUS support" off
|
2007-06-11 12:40:02 +00:00
|
|
|
|
2007-09-23 05:58:38 +00:00
|
|
|
DATADIR= ${PREFIX}/share/QMPDClient
|
2009-12-24 21:40:17 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2007-09-23 05:58:38 +00:00
|
|
|
|
2008-09-27 20:02:58 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
QT_COMPONENTS+= linguist_build
|
|
|
|
.endif
|
2007-09-23 05:58:38 +00:00
|
|
|
|
2011-06-17 15:50:51 +00:00
|
|
|
# TRANSLATIONS= cs_CZ de_DE es_ES fr_FR it_IT nl_NL nn_NO no_NO \
|
|
|
|
# pt_BR ru_RU sv_SE tr_TR uk_UA zh_CN zh_TW
|
|
|
|
|
2007-09-23 05:58:38 +00:00
|
|
|
.if defined(WITH_DBUS) && !defined(WITHOUT_DBUS)
|
|
|
|
QT_COMPONENTS+= dbus
|
2011-06-17 15:50:51 +00:00
|
|
|
QMAKEFLAGS+= "CONFIG+=qdbus"
|
2007-09-23 05:58:38 +00:00
|
|
|
.endif
|
|
|
|
|
2011-06-17 15:50:51 +00:00
|
|
|
.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
|
|
|
|
QMAKEFLAGS+= "CONFIG+=debug"
|
2008-09-27 20:02:58 +00:00
|
|
|
.endif
|
2007-06-11 12:40:02 +00:00
|
|
|
|
2011-06-17 15:50:51 +00:00
|
|
|
post-patch:
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
@${REINPLACE_CMD} -e '/INSTALLS += translations/d' \
|
|
|
|
${WRKSRC}/${QMAKE_PRO}
|
2008-09-27 20:02:58 +00:00
|
|
|
.endif
|
2011-06-17 15:50:51 +00:00
|
|
|
@${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}
|
2007-06-11 12:40:02 +00:00
|
|
|
|
2007-09-23 05:58:38 +00:00
|
|
|
.include <bsd.port.post.mk>
|