blob: a975fc3b7ec2803e4337f96d5bbdce5f56901400 (
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
53
54
55
56
57
58
|
# $FreeBSD$
PORTNAME= semantik
PORTVERSION= 0.8.3
CATEGORIES= deskutils kde
MASTER_SITES= http://${PORTNAME}.googlecode.com/files/
MAINTAINER= avilla@FreeBSD.org
COMMENT= KDE mind mapping tool
LICENSE= GPLv3
USE_KDE4= kdehier kdelibs kdeprefix
USE_OCAML= yes
NO_OCAML_RUNDEPENDS= yes
USE_PYTHON= 2.5+
USE_QT4= corelib gui linguist_build svg webkit xml \
moc_build qmake_build uic_build
USE_BZIP2= yes
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS}" \
PATH="${KDE4_PREFIX}/bin:$$PATH" \
WAF_HOME="${WRKSRC}"
CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's/kde-config/kde4-config/g' \
${WRKSRC}/wscript
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/langs/ d' \
${WRKSRC}/wscript
.endif
do-configure:
@cd ${WRKSRC}; \
${SETENV} ${CONFIGURE_ENV} ./waf configure --prefix=${PREFIX}
do-build:
@cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ./waf build ${_MAKE_JOBS}
do-install:
@cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ./waf install
@${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|