pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-game If localbase is set, avoid nulling out t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4d9e03926620
branches:  trunk
changeset: 372982:4d9e03926620
user:      he <he%pkgsrc.org@localhost>
date:      Fri Dec 22 19:05:44 2017 +0000

description:
If localbase is set, avoid nulling out the search path (use +=).
Also search for X11 includes in X11R6/include and X11R7/include.
Fixes the configure phase on NetBSD/amd64 with native X11.
Bump PKGREVISION.

diffstat:

 devel/py-game/Makefile                      |   3 +-
 devel/py-game/distinfo                      |   4 +-
 devel/py-game/patches/patch-config__unix.py |  30 ++++++++++++++++++++++++----
 3 files changed, 29 insertions(+), 8 deletions(-)

diffs (75 lines):

diff -r a1092c09a3a3 -r 4d9e03926620 devel/py-game/Makefile
--- a/devel/py-game/Makefile    Fri Dec 22 12:24:31 2017 +0000
+++ b/devel/py-game/Makefile    Fri Dec 22 19:05:44 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.35 2017/06/20 17:00:07 adam Exp $
+# $NetBSD: Makefile,v 1.36 2017/12/22 19:05:44 he Exp $
 
 DISTNAME=      pygame-1.9.3
+PKGREVISION=   1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    games
 MASTER_SITES=  ${MASTER_SITE_PYPI:=P/Pygame/}
diff -r a1092c09a3a3 -r 4d9e03926620 devel/py-game/distinfo
--- a/devel/py-game/distinfo    Fri Dec 22 12:24:31 2017 +0000
+++ b/devel/py-game/distinfo    Fri Dec 22 19:05:44 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2017/06/20 17:00:07 adam Exp $
+$NetBSD: distinfo,v 1.8 2017/12/22 19:05:44 he Exp $
 
 SHA1 (pygame-1.9.3.tar.gz) = b3ef126f0baea3bd0986fddebba82b6b13f6f282
 RMD160 (pygame-1.9.3.tar.gz) = ac95b8c2afa5076746227a6d1ae9c200d14d5757
@@ -7,4 +7,4 @@
 SHA1 (patch-Setup.in) = 71659c0150ec53b063cd47531b8b0a93ea671ceb
 SHA1 (patch-Setup__Unix.in) = 03fb45137f018761e6b9f19de056c0fdff5d153d
 SHA1 (patch-config__darwin.py) = c39c00b3252195dcf4476574e9b8439acf66c0ab
-SHA1 (patch-config__unix.py) = b02951432fb41d1e9cffd6d85de877b710e39b28
+SHA1 (patch-config__unix.py) = 1cce6e0d55777dd8e7cdd3b8d734f00fc8a6decf
diff -r a1092c09a3a3 -r 4d9e03926620 devel/py-game/patches/patch-config__unix.py
--- a/devel/py-game/patches/patch-config__unix.py       Fri Dec 22 12:24:31 2017 +0000
+++ b/devel/py-game/patches/patch-config__unix.py       Fri Dec 22 19:05:44 2017 +0000
@@ -1,15 +1,19 @@
-$NetBSD: patch-config__unix.py,v 1.1 2017/06/20 17:00:07 adam Exp $
+$NetBSD: patch-config__unix.py,v 1.2 2017/12/22 19:05:44 he Exp $
 
-Detect X11R7
+Detect X11R6 or X11R7; avoid localbase overriding search...
 Disable portmidi and porttime; porttime is a part of portmidi
 
 --- config_unix.py.orig        2016-08-20 20:28:55.000000000 +0000
 +++ config_unix.py
-@@ -16,7 +16,7 @@ localbase = os.environ.get('LOCALBASE', 
+@@ -14,9 +14,9 @@ configcommand = os.environ.get('SDL_CONF
+ configcommand = configcommand + ' --version --cflags --libs'
+ localbase = os.environ.get('LOCALBASE', '')
  
- #these get prefixes with '/usr' and '/usr/local' or the $LOCALBASE
- origincdirs = ['/include', '/include/SDL', '/include/SDL']
+-#these get prefixes with '/usr' and '/usr/local' or the $LOCALBASE
+-origincdirs = ['/include', '/include/SDL', '/include/SDL']
 -origlibdirs = ['/lib','/lib64','/X11R6/lib']
++#these get prefixes with '/usr' and '/usr/pkg' or the $LOCALBASE
++origincdirs = ['/include', '/include/SDL', '/include/SDL', '/X11R6/include', '/X11R7/include']
 +origlibdirs = ['/lib','/lib64','/X11R6/lib','/X11R7/lib']
  if 'ORIGLIBDIRS' in os.environ and os.environ['ORIGLIBDIRS'] != "":
      origlibdirs = os.environ['ORIGLIBDIRS'].split(":")
@@ -34,3 +38,19 @@
          DependencyProg('FREETYPE', 'FREETYPE_CONFIG', 'freetype-config', '2.0',
                         ['freetype'], '--ftversion'),
          #Dependency('GFX', 'SDL_gfxPrimitives.h', 'libSDL_gfx.so', ['SDL_gfx']),
+@@ -192,11 +189,11 @@ def main():
+     libdirs = []
+     incdirs += ["/usr"+d for d in origincdirs]
+     libdirs += ["/usr"+d for d in origlibdirs]
+-    incdirs += ["/usr/local"+d for d in origincdirs]
+-    libdirs += ["/usr/local"+d for d in origlibdirs]
++    incdirs += ["/usr/pkg"+d for d in origincdirs]
++    libdirs += ["/usr/pkg"+d for d in origlibdirs]
+     if localbase:
+-        incdirs = [localbase+d for d in origincdirs]
+-        libdirs = [localbase+d for d in origlibdirs]
++        incdirs += [localbase+d for d in origincdirs]
++        libdirs += [localbase+d for d in origlibdirs]
+ 
+     for arg in DEPS[0].cflags.split():
+         if arg[:2] == '-I':



Home | Main Index | Thread Index | Old Index