extending the patch for netbsd so it fixes sunos too

This commit is contained in:
wiedi 2016-12-15 22:40:10 +00:00
parent 97f05a89bc
commit f64265ecc9
3 changed files with 7 additions and 6 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.5 2016/08/17 00:06:45 ryoon Exp $
# $NetBSD: Makefile,v 1.6 2016/12/15 22:40:10 wiedi Exp $
#
DISTNAME= ssr-0.3.6
PKGREVISION= 3
PKGREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=MaartenBaert/}
@ -18,6 +18,7 @@ USE_LANGUAGES= c c++
REPLACE_BASH= scripts/ssr-glinject
CFLAGS.NetBSD+= -DBSD
CFLAGS.SunOS+= -DBSD
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}

View file

@ -1,10 +1,10 @@
$NetBSD: distinfo,v 1.3 2016/03/01 20:11:35 joerg Exp $
$NetBSD: distinfo,v 1.4 2016/12/15 22:40:10 wiedi Exp $
SHA1 (ssr-0.3.6.tar.gz) = 20f126aeebf6ca2480898de02efb13f46471aaad
RMD160 (ssr-0.3.6.tar.gz) = 9e9c631a330e8d92c7ea3379b062be6892bdd313
SHA512 (ssr-0.3.6.tar.gz) = 54e07050ae58c2d59327b13be6613754ada26891c157c6e9d121db2658508245c8f9a6c92921fdc125cdf82611099abf9c89d64ee093a6592fc81fb9c96cb09d
Size (ssr-0.3.6.tar.gz) = 1640585 bytes
SHA1 (patch-configure) = d92853ae320506da18ccaec91c5eb525d7d3b5a2
SHA1 (patch-glinject_Hook.cpp) = b3e804e2e317194d99eeb634aa9fd3d565f18940
SHA1 (patch-glinject_Hook.cpp) = 39e86abf5b5e348c25708fcf962cc7693be17330
SHA1 (patch-glinject_elfhacks.c) = 4d416e0ea6b160d34583e737ba5bd1981a8a94ef
SHA1 (patch-src_Benchmark.cpp) = f4d572b4a9c0593175703bb3f62e4259ff5e0f1a

View file

@ -1,4 +1,4 @@
$NetBSD: patch-glinject_Hook.cpp,v 1.1 2016/02/08 20:43:32 markd Exp $
$NetBSD: patch-glinject_Hook.cpp,v 1.2 2016/12/15 22:40:10 wiedi Exp $
Linux gets environ from unistd.h
@ -8,7 +8,7 @@ Linux gets environ from unistd.h
#include <GL/glx.h>
#include <X11/X.h>
+#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__sun)
+extern char **environ;
+#endif
+