From df659051835d67665051f00e8ca20c1c4c6f599d Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Tue, 15 Nov 2011 09:38:40 +0000 Subject: Unbreak on FreeBSD 7.X which lacks dprintf(). Reported by: pavmail Feature safe: yes --- graphics/darktable/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'graphics/darktable') 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 -- cgit v1.2.3