blob: dad2f0493adbf9c3c68548f83dd9300d1da3fbfe (
plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
PORTNAME= semantik
DISTVERSION= 1.2.8
CATEGORIES= deskutils kde
MASTER_SITES= https://waf.io/
MAINTAINER= kde@FreeBSD.org
COMMENT= Mind mapping tool
WWW= https://waf.io/semantik.html
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= kde:5 pkgconfig python:3.6+ qt:5 shebangfix tar:bzip2 waf \
desktop-file-utils gettext shared-mime-info
USE_KDE= auth config configwidgets coreaddons i18n iconthemes \
kdelibs4support kio sonnet widgetsaddons xmlgui
USE_LDCONFIG= yes
USE_QT= core dbus declarative gui location network printsupport \
svg webchannel webengine widgets xml \
buildtools:build qmake:build
SHEBANG_FILES= src/templates/beamer/wscript \
src/templates/pdflatex/wscript \
src/filters/fvym.py \
src/filters/kdissert.py \
src/filters/main.py \
src/filters/others.py \
src/filters/semantik.py \
src/sembind.py \
waf \
wscript
CONFIGURE_ENV= PATH="${KDE_PREFIX}/bin:$$PATH" \
WAF_HOME="${WRKSRC}"
MAKE_ENV= DESTDIR="${STAGEDIR}"
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
# Help WAF a bit more by simply adding the locations to the KF5
# headers ourselves...
CXXFLAGS+= -I${LOCALBASE}/include/KF5/KAuthCore \
-I${LOCALBASE}/include/KF5/KConfigCore \
-I${LOCALBASE}/include/KF5/KConfigGui \
-I${LOCALBASE}/include/KF5/KConfigWidgets \
-I${LOCALBASE}/include/KF5/KCoreAddons \
-I${LOCALBASE}/include/KF5/KDELibs4Support \
-I${LOCALBASE}/include/KF5/KI18n \
-I${LOCALBASE}/include/KF5/KIOCore \
-I${LOCALBASE}/include/KF5/KIOWidgets \
-I${LOCALBASE}/include/KF5/KWidgetsAddons \
-I${LOCALBASE}/include/KF5/KXmlGui \
-I${LOCALBASE}/include/KF5/SonnetUi \
PLIST_SUB= PORTVERSION="${PORTVERSION}"
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
post-patch:
@${REINPLACE_CMD} -e 's+@@LOCALBASE@@+${LOCALBASE}+' \
${WRKSRC}/wscript
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/langs/ d' \
${WRKSRC}/wscript
post-configure:
# Waf injects some bizzarre 3- and 4-level ../ stacks into the include
# paths, which don't match how KDE includes are organized, and in a
# poudriere build don't necessarily reach /usr/local/include either.
@${REINPLACE_CMD} -e "s+..PWD............/include+${LOCALBASE}/include+g" \
${WRKSRC}/build/c4che/_cache.py
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}-d \
${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.${PORTVERSION}
${INSTALL_MAN} ${WRKSRC}/src/data/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
.include <bsd.port.mk>
|