summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-09-14 16:56:54 +0000
committerhans <hans@pkgsrc.org>2011-09-14 16:56:54 +0000
commitdecaf16b421b268279416a41f793d8f6014ee896 (patch)
treeca21192d0399c75f5b350bbf3705307e7fc9de0c /inputmethod
parentad09963e4b0d0d2ba76d2d866b70a8050191b50c (diff)
downloadpkgsrc-decaf16b421b268279416a41f793d8f6014ee896.tar.gz
Fix build on SunOS.
Disable gethostbyname_r since the version of SunOS is different from what the code expects. Add a few libs.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/scim/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/inputmethod/scim/Makefile b/inputmethod/scim/Makefile
index 628c3d6c503..892a720e516 100644
--- a/inputmethod/scim/Makefile
+++ b/inputmethod/scim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2011/04/22 13:42:00 obache Exp $
+# $NetBSD: Makefile,v 1.7 2011/09/14 16:56:54 hans Exp $
#
DISTNAME= scim-1.4.9
@@ -41,6 +41,12 @@ INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
# for DLOPEN_REQUIRE_PTHREADS
PTHREAD_AUTO_VARS= yes
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ENV+= ac_cv_func_gethostbyname_r=no
+LDFLAGS.SunOS+= -lsocket -lnsl
+.endif
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/gtk2/buildlink3.mk"