Unbreak on FreeBSD 7.X which lacks dprintf().

Reported by:	pavmail
Feature safe:	yes
This commit is contained in:
Alexey Dokuchaev 2011-11-15 09:38:40 +00:00
parent d82beb68e5
commit df65905183
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285840

View File

@ -100,6 +100,11 @@ CMAKE_ARGS+= -DUSE_NLS:BOOL=OFF
.endif
post-patch:
# FreeBSD 7.X does not have dprintf()
.if ${OSVERSION} < 800071
@${REINPLACE_CMD} -e '80s,APPLE,${OPSYS}, ; /va_start/s,&,,' \
${WRKSRC}/src/common/darktable.c
.endif
# Do not install useless (to end-user) documentation files
@${REINPLACE_CMD} -e '/DOC_FILES/d' ${WRKSRC}/doc/CMakeLists.txt
# Respect CFLAGS for release builds; remove `-g' from common CFLAGS which