freebsd-ports/deskutils/semantik/Makefile
Tobias C. Berner 0f583d8700 Replace Mk/bsd.kde4.mk by Mk/Uses/kde.mk in preparation for KDE Frameworks and
Plasma5 ports

At the moment KDE ports use bsd.kde4.mk to handle their dependencies. When
working on the ports for KDE Frameworks and Plasma5 it seemed to be more
reasonable to create a new kde.mk instead of adding an bsd.kde5.mk.

The kde.mk in this review is a stripped down version of the one we are using in
the KDE Test repositories plasma5 branch [1] to only contain the parts relevant
to the current KDE4 ports in the portstree [2].

Changes to the KDE Ports needed by this:

Replace USE_KDE4 by USE_KDE [3]
Add USES=kde:4 [4]
[1] http://src.mouf.net/area51/view/branches/plasma5/KDE/Mk/Uses/kde.mk
[2] The version in the plasma5 branch also handles frameworks/plasma5 and
    handles MASTER_SITES via a KDE_DIST variable similar to bsd.qt.mk for Qt
    Ports -- I chose to leave this out for now, as the diff is already large
    enough.
[3] I chose USE_KDE instead of USE_KDE4, USE_KDE5, USE_KDEX as the version we
    want is already specified as argument to kde:<arg>
[4] For KDE Frameworks and Plasma5 ports this would be kde:5

PR:             210667
Approved by:    portmgr, mat (mentor), rakuco (mentor)
Reviewed by:    mat, rakuco
Differential Revision:   https://reviews.freebsd.org/D6961
2016-08-24 08:20:31 +00:00

55 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= semantik
PORTVERSION= 0.9.4
CATEGORIES= deskutils kde
MASTER_SITES= http://ftp.waf.io/pub/release/ \
http://www.freehackers.org/~tnagy/release/
MAINTAINER= avilla@FreeBSD.org
COMMENT= KDE mind mapping tool
LICENSE= GPLv3
USES= kde:4 pkgconfig python:2 shebangfix tar:bzip2 waf \
shared-mime-info
USE_KDE= kdelibs
USE_OCAML= yes
NO_OCAML_RUNDEPENDS= yes
USE_QT4= corelib gui linguist_build svg webkit xml \
moc_build qmake_build uic_build
QT_NONSTANDARD= yes
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS}" \
PATH="${KDE_PREFIX}/bin:$$PATH" \
WAF_HOME="${WRKSRC}"
CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
MAKE_ENV= DESTDIR="${STAGEDIR}"
USE_LDCONFIG= yes
SHEBANG_FILES= ${WRKSRC}/src/templates/beamer/wscript \
${WRKSRC}/src/templates/pdflatex/wscript
PLIST_SUB= PORTVERSION="${PORTVERSION}"
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
.include <bsd.port.options.mk>
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
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}-d \
${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.${PORTVERSION}
.include <bsd.port.mk>