summaryrefslogtreecommitdiff
path: root/graphics/darktable
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2011-11-15 09:38:40 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2011-11-15 09:38:40 +0000
commitdf659051835d67665051f00e8ca20c1c4c6f599d (patch)
tree33df81f3ff4e766c23e42d3a56b659b28584aace /graphics/darktable
parentzope.sendmail is a package for email sending from Zope3 applications. (diff)
Unbreak on FreeBSD 7.X which lacks dprintf().
Reported by: pavmail Feature safe: yes
Notes
Notes: svn path=/head/; revision=285840
Diffstat (limited to 'graphics/darktable')
-rw-r--r--graphics/darktable/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile
index 7d64633d5168..eb829d96cd83 100644
--- a/graphics/darktable/Makefile
+++ b/graphics/darktable/Makefile
@@ -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