summaryrefslogtreecommitdiff
path: root/misc/fbreader/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-04-05 18:50:48 +0000
committerwiz <wiz@pkgsrc.org>2010-04-05 18:50:48 +0000
commita983c33bf2be72ef6a60058790d2c1a05ee122e4 (patch)
tree4240976455b86ec27740f948ad19a2d553031212 /misc/fbreader/Makefile
parent19577eb54f39a347d4af74643222f605e868f523 (diff)
downloadpkgsrc-a983c33bf2be72ef6a60058790d2c1a05ee122e4.tar.gz
Pass in DO_ICONV_CAST on Solaris and NetBSD instead of incorrect
patch. Noted by Alexander Polakov in PR 43113.
Diffstat (limited to 'misc/fbreader/Makefile')
-rw-r--r--misc/fbreader/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/fbreader/Makefile b/misc/fbreader/Makefile
index 3d2cd4609fc..7a5eb4027be 100644
--- a/misc/fbreader/Makefile
+++ b/misc/fbreader/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2010/01/18 09:59:13 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2010/04/05 18:50:48 wiz Exp $
#
DISTNAME= fbreader-sources-0.10.7
@@ -24,6 +24,12 @@ MAKE_ENV+= DESTDIR=${DESTDIR}
MAKE_ENV+= LDFLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib
MAKE_ENV+= TARGET_ARCH=desktop
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD"
+CPPFLAGS+= -DDO_ICONV_CAST
+.endif
+
.include "options.mk"
.include "../../archivers/bzip2/buildlink3.mk"