summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"