freebsd-ports/audio/qmpdclient/Makefile
Dirk Meyer de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00

79 lines
1.7 KiB
Makefile

# New ports collection makefile for: qmpdclient
# Date created: 4 June 2007
# Whom: uyamba@gmail.com
#
# $FreeBSD$
#
PORTNAME= qmpdclient
PORTVERSION= 1.1.2
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://dump.bitcheese.net/files/dedycec/
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= uyamba@gmail.com
COMMENT= Easy to use musicpd client written in QT4
USE_BZIP2= yes
HAS_CONFIGURE= yes
USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build rcc_build uic_build \
corelib xml gui
QMAKE_ARGS= -unix PREFIX=${PREFIX}
QMAKE_PRO= ${PORTNAME}.pro
OPTIONS= DBUS "Enable D-BUS support" off
DATADIR= ${PREFIX}/share/QMPDClient
PLIST_FILES= bin/${PORTNAME}
USE_DOS2UNIX= ${QMAKE_PRO}
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_NLS)
QT_COMPONENTS+= linguist_build
TRANSLATIONS= cs_CZ de_DE fr_FR it_IT nl_NL nn_NO pt_BR no_NO \
ru_RU sv_SE tr_TR uk_UA zh_CN zh_TW
.for lang in ${TRANSLATIONS}
PLIST_FILES+= ${DATADIR_REL}/translations/${lang}.qm
.endfor
PLIST_DIRS= ${DATADIR_REL}/translations \
${DATADIR_REL}
.endif
.if defined(WITH_DBUS) && !defined(WITHOUT_DBUS)
QT_COMPONENTS+= dbus
QMAKE_ARGS+= CONFIG+=qdbus
.endif
do-configure:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
${QMAKE_ARGS} ${QMAKE_PRO}
post-build:
.if !defined(WITHOUT_NLS)
.for lang in ${TRANSLATIONS}
@${QT_PREFIX}/bin/lrelease-qt4 -compress \
${WRKSRC}/lang/${lang}.ts
.endfor
.else
@${DO_NADA}
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(WITHOUT_NLS)
${MKDIR} ${DATADIR}/translations
.for lang in ${TRANSLATIONS}
${INSTALL_DATA} ${WRKSRC}/lang/${lang}.qm \
${DATADIR}/translations/${lang}.qm
.endfor
.endif
.include <bsd.port.post.mk>