summaryrefslogtreecommitdiff
path: root/devel/kdebindings4/files/Makefile.kdebindings
blob: 6228cce89b9952c5350dac0d65fee5a50c204579 (plain) (blame)
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
# New ports collection makefile for:	kdebindings4
# Date created:		2008-08-19
# Whom:			Max Brazhnikov <makc@issp.ac.ru>
#
# $FreeBSD$
#

MASTER_SITES=	${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR=	${KDE4_BRANCH}/${PORTVERSION}/src
PKGNAMEPREFIX?=	${${BINDLANG}_PKGNAMEPREFIX}
PKGNAMESUFFIX?=	${${BINDLANG}_PKGNAMESUFFIX}
DIST_SUBDIR=	KDE
UNIQUENAME?=	${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}

COMMENT?=	${${BINDLANG}_COMMENT}

USE_BZIP2=	yes
USE_CMAKE=	yes
USE_KDE4+=	kdelibs automoc4 kdehier kdeprefix
USE_QT_VER=	4
QT_COMPONENTS+=	corelib qmake_build moc_build uic_build rcc_build

BUILD_WRKSRC?=	${WRKSRC}/${BINDLANG}/${BINDMODULE}
INSTALL_WRKSRC?=${BUILD_WRKSRC}

# Available languages
_BINDLANG_ALL=	csharp java php python ruby smoke

# csharp_COMMENT=	C\# bindings for Qt/KDE: ${BINDMODULE} module
# java_COMMENT=	Java bindings for Qt/KDE: ${BINDMODULE} module
# php_COMMENT=	PHP bindings for Qt/KDE: ${BINDMODULE} module
python_COMMENT=	Python bindings for Qt/KDE: ${BINDMODULE} module
ruby_COMMENT=	Ruby bindings for Qt/KDE: ${BINDMODULE} module
smoke_COMMENT=	SMOKE bindings for Qt/KDE: ${BINDMODULE} module

python_PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
ruby_PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}

python_PKGNAMESUFFIX=	-${BINDMODULE}
# ruby_PKGNAMESUFFIX=	-${BINDMODULE}
smoke_PKGNAMESUFFIX=	-${BINDLANG}

# Don't extract unnecessary stuff
DO_NOT_EXTRACT?=${_BINDLANG_ALL:S/${BINDLANG}//}

EXTRACT_AFTER_ARGS=	| ${TAR} -xf -
.for dne in ${DO_NOT_EXTRACT}
EXTRACT_AFTER_ARGS+=	--exclude '${DISTNAME}/${dne}'
.endfor

#keep syncing this with devel/py-sip
SIPDIR_REL=	share/py-sip