freebsd-ports/misc/qt4-l10n/Makefile
Max Brazhnikov 9d2e718f3c Introduce new USE_QT4 component linguisttools for lrelease/lupdate tools
split from from devel/qt4-linguist (similar to Qt 5 ports). These console
tools are often used for localization support in Qt ports, having them
standalone is quite useful. This work is based on Tobias Berner patch [1].

PR:             190929 [1]
Requested by:	amdmi3, koobs
2015-02-24 21:39:19 +00:00

27 lines
572 B
Makefile

# $FreeBSD$
PORTNAME= l10n
DISTVERSION= ${QT4_VERSION}
PORTREVISION= 1
CATEGORIES= misc
PKGNAMEPREFIX= qt4-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt localized messages
USE_QT4= linguisttools_build
QT_DIST= yes
EXTRACT_AFTER_ARGS+= --include '${DISTNAME}/src/corelib' \
'${DISTNAME}/translations'
EXTRA_PATCHES= # empty
do-build:
${QT_BINDIR}/lrelease${_QT_BINSUFX} ${WRKSRC}/translations/*.ts
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${QT_L10NDIR_REL}
${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${STAGEDIR}${PREFIX}/${QT_L10NDIR_REL}
.include <bsd.port.mk>