summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-07-18 19:50:47 +0000
committerryoon <ryoon@pkgsrc.org>2014-07-18 19:50:47 +0000
commita56a4f7283dc0b6efa1ebb893b2caf61ec1b6b65 (patch)
tree0e0dd222dc9fe4690032d4034184b54d6a9a7aa6 /devel
parentd2beb9cfe0954a8da592528784a88bba375a1128 (diff)
downloadpkgsrc-a56a4f7283dc0b6efa1ebb893b2caf61ec1b6b65.tar.gz
Fix SCO OpenServer 5.0.7/3.2 build.
Use usleep.
Diffstat (limited to 'devel')
-rw-r--r--devel/pkg-config/Makefile7
-rw-r--r--devel/pkg-config/distinfo3
-rw-r--r--devel/pkg-config/patches/patch-glib_glib_gtimer.c13
3 files changed, 21 insertions, 2 deletions
diff --git a/devel/pkg-config/Makefile b/devel/pkg-config/Makefile
index aba5984ca3d..e59792fd0fe 100644
--- a/devel/pkg-config/Makefile
+++ b/devel/pkg-config/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2013/09/28 06:32:08 obache Exp $
+# $NetBSD: Makefile,v 1.30 2014/07/18 19:50:47 ryoon Exp $
DISTNAME= pkg-config-0.28
CATEGORIES= devel
@@ -34,6 +34,11 @@ post-configure:
${MV} config.h.new config.h
.endif
+.if ${OS_VARIANT} == "SCOOSR5"
+# SCO OpenServer 5.0.7/3.2 has no IPv6 support.
+CONFIGURE_ENV+= glib_cv_value_AF_INET6=yes
+.endif
+
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --disable-dtrace
.endif
diff --git a/devel/pkg-config/distinfo b/devel/pkg-config/distinfo
index e7d56103114..3770976f647 100644
--- a/devel/pkg-config/distinfo
+++ b/devel/pkg-config/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.25 2013/05/16 19:03:10 adam Exp $
+$NetBSD: distinfo,v 1.26 2014/07/18 19:50:47 ryoon Exp $
SHA1 (pkg-config-0.28.tar.gz) = 71853779b12f958777bffcb8ca6d849b4d3bed46
RMD160 (pkg-config-0.28.tar.gz) = 233f0b667cfb8f2e6a5647984d6389a770132173
@@ -11,6 +11,7 @@ SHA1 (patch-glib_glib_gcharset.c) = b191bc3ca806cff6fa54790fc225ddb35a158d55
SHA1 (patch-glib_glib_gconvert.c) = 11a6c7cdd3a4473ff522bf7a0e7ad33653199970
SHA1 (patch-glib_glib_gfileutils.c) = bc52e4435ad16a7e7f6780330d4b2b174a3a4411
SHA1 (patch-glib_glib_glib.h) = 1c1baedb0f3266d948ded595b70b132821702963
+SHA1 (patch-glib_glib_gtimer.c) = abd8b5fa7d3a748385b91d47728531da37e1b4e5
SHA1 (patch-glib_glib_gutf8.c) = 2ed8ea7b843e3d07392671201c8dfe1111e29065
SHA1 (patch-glib_glib_gutils.c) = 60e16596d898324261fd6ae3ab1643beb8cb3ed3
SHA1 (patch-glib_glib_gutils.h) = 9fdca0280fa7871c231b75fd6281c72dd621fac4
diff --git a/devel/pkg-config/patches/patch-glib_glib_gtimer.c b/devel/pkg-config/patches/patch-glib_glib_gtimer.c
new file mode 100644
index 00000000000..ff7669804ac
--- /dev/null
+++ b/devel/pkg-config/patches/patch-glib_glib_gtimer.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-glib_glib_gtimer.c,v 1.1 2014/07/18 19:50:47 ryoon Exp $
+
+--- glib/glib/gtimer.c.orig 2012-10-02 05:49:07.000000000 +0000
++++ glib/glib/gtimer.c
+@@ -252,6 +252,8 @@ g_usleep (gulong microseconds)
+ {
+ #ifdef G_OS_WIN32
+ Sleep (microseconds / 1000);
++#elif defined(_SCO_DS)
++ usleep(microseconds);
+ #else
+ struct timespec request, remaining;
+ request.tv_sec = microseconds / G_USEC_PER_SEC;