# -*-mode: makefile-*-
# New ports collection makefile for:	KDE libraries 4
# Date created:				2 November 2001
# Whom:					will@cvs.kde.org
#
# $FreeBSD$
#

PORTNAME=	kde-l10n-zh_CN
PORTVERSION=	4.0.2
CATEGORIES=	chinese
MASTER_SITES=	${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR=	stable/${PORTVERSION}/src/kde-l10n
#PKGNAMESUFFIX?=	# empty
DIST_SUBDIR=	KDE

MAINTAINER=	kde@FreeBSD.org
COMMENT=	zh_CN for kde4

BUILD_DEPENDS=  xgettext:${PORTSDIR}/devel/gettext

USE_BZIP2=      yes
USE_CMAKE=      yes
USE_QT_VER=     4

USE_FAM=        yes
USE_GETTEXT=    yes

# XXX: PREFIX/kde4?
USE_LDCONFIG=	${PREFIX}/kde4/lib ${PREFIX}/kde4/lib/kde4


# XXX: Following defines may be obsoleted by upcoming b.p.m.-cmake changes
MAKE_ENV=	VERBOSE="1"
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/build

# XXX: PREFIX/kde4?
CMAKE_ARGS=	-DCMAKE_INSTALL_PREFIX=${PREFIX}/kde4

# XXX: PREFIX/kde4?
#MANPREFIX=	${PREFIX}/kde4/share
#MAN1=		checkXML.1 kde4-config.1
#MAN7=		kdeoptions.7 qtoptions.7
#MAN8=		kbuildsycoca4.8

.include <bsd.port.pre.mk>

post-extract:
	${MKDIR} ${WRKSRC}

do-configure:
	cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${CMAKE} ${CMAKE_ARGS} ..

.include <bsd.port.post.mk>