mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
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]
This commit is contained in:
parent
b49682d0aa
commit
ffe6aa8f62
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407834
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user