summaryrefslogtreecommitdiff
path: root/graphics/leptonica
diff options
context:
space:
mode:
authoradam <adam>2014-10-02 13:20:54 +0000
committeradam <adam>2014-10-02 13:20:54 +0000
commit5a469613f71e3e7e477781485b10ea71a8ab1c38 (patch)
treef56e1357165c8af75146a14568fe944e4c0cef4c /graphics/leptonica
parentd96785e18ef8644d0bc2f2cd83da70b42c97879b (diff)
downloadpkgsrc-5a469613f71e3e7e477781485b10ea71a8ab1c38.tar.gz
Compatibility fix
Diffstat (limited to 'graphics/leptonica')
-rw-r--r--graphics/leptonica/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/leptonica/Makefile b/graphics/leptonica/Makefile
index 851a4d486e0..57195621465 100644
--- a/graphics/leptonica/Makefile
+++ b/graphics/leptonica/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/10/02 07:23:56 adam Exp $
+# $NetBSD: Makefile,v 1.2 2014/10/02 13:20:54 adam Exp $
DISTNAME= leptonica-1.71
CATEGORIES= graphics
@@ -12,7 +12,14 @@ LICENSE= 2-clause-bsd
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
-#CONFIGURE_ARGS+= --disable-programs
+
+.include "../../mk/bsd.prefs.mk"
+
+# The presence of fmemopen() assumes open_memstream() is also available,
+# which is wrong on platforms other than Linux.
+.if ${OPSYS} != "Linux"
+CONFIGURE_ENV+= ac_cv_func_fmemopen=no
+.endif
.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"