diff options
author | David Naylor <dbn@FreeBSD.org> | 2016-02-02 19:16:14 +0000 |
---|---|---|
committer | David Naylor <dbn@FreeBSD.org> | 2016-02-02 19:16:14 +0000 |
commit | ffe6aa8f629ea5310eae5ce293033b46125087d5 (patch) | |
tree | 7c8fb9095af3a4779d1eceb0d4011e9b15dba2de | |
parent | Fix build on 9.3-amd64 after r407349. (diff) |
devel/kdesvn-kde4: unbreak build on FreeBSD 9
- Require a modern C compiler (GCC 4.2 is too old) [1]
- Use OPTIONS helpers
- Remove include of bsd.port.options.mk
Reported by: pkg-fallout [1]
Notes
Notes:
svn path=/head/; revision=407834
-rw-r--r-- | devel/kdesvn-kde4/Makefile | 20 |
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> |