summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/kdesvn-kde4/Makefile20
1 files changed, 7 insertions, 13 deletions
diff --git a/devel/kdesvn-kde4/Makefile b/devel/kdesvn-kde4/Makefile
index 6c5907f12da1..841ac52bfa26 100644
--- a/devel/kdesvn-kde4/Makefile
+++ b/devel/kdesvn-kde4/Makefile
@@ -15,7 +15,7 @@ LIB_DEPENDS= libsvn_client-1.so:${PORTSDIR}/devel/subversion
CONFLICTS= qsvn-[0-9]*
-USES= cmake:outsource tar:xz
+USES= cmake:outsource compiler:c11 tar:xz
CMAKE_ARGS+= -DSUBVERSION_INCLUDE_DIR=${LOCALBASE}/include/subversion-1 \
-DMAN_INSTALL_DIR=${MANPREFIX}/man
USE_KDE4= kdelibs kdeprefix automoc4
@@ -24,24 +24,18 @@ USE_QT4= corelib gui xml network dbus svg sql \
qmake_build moc_build rcc_build uic_build linguist_build
OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+OPTIONS_NLS_USES= gettext
post-patch:
${RM} ${WRKSRC}/src/kiosvn/svn*.protocol
-.if empty(PORT_OPTIONS:MDOCS)
+
+post-patch-DOCS-off:
${ECHO} "ADD_SUBDIRECTORY(man)" > ${WRKSRC}/doc/CMakeLists.txt
-.endif
-.if empty(PORT_OPTIONS:MNLS)
+
+post-patch-NLS-off:
${REINPLACE_CMD} -e 's,ADD_SUBDIRECTORY(po), ,g' \
${WRKSRC}/CMakeLists.txt
-.endif
.include <bsd.port.mk>