Sat Apr 26 20:38:49 2008 UTC ()
Use full path to sysctl(8), an unprivileged user may not have /sbin in $PATH


(tnn)
diff -r1.7 -r1.8 pkgsrc/graphics/Mesa/Makefile.lib

cvs diff -r1.7 -r1.8 pkgsrc/graphics/Mesa/Attic/Makefile.lib (expand / switch to unified diff)

--- pkgsrc/graphics/Mesa/Attic/Makefile.lib 2008/04/24 07:40:23 1.7
+++ pkgsrc/graphics/Mesa/Attic/Makefile.lib 2008/04/26 20:38:49 1.8
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.lib,v 1.7 2008/04/24 07:40:23 bjs Exp $ 1# $NetBSD: Makefile.lib,v 1.8 2008/04/26 20:38:49 tnn Exp $
2# 2#
3# This Makefile fragment is included by all packages that build libraries 3# This Makefile fragment is included by all packages that build libraries
4# from the Mesa sources. 4# from the Mesa sources.
5# 5#
6 6
7.include "../../graphics/Mesa/Makefile.common" 7.include "../../graphics/Mesa/Makefile.common"
8 8
9DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX} 9DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX}
10DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX} 10DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX}
11DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX} 11DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX}
12 12
13PKG_INSTALLATION_TYPES= overwrite pkgviews 13PKG_INSTALLATION_TYPES= overwrite pkgviews
14 14
@@ -32,27 +32,27 @@ MAKE_ENV+= COPTS=${COPTS:M*:Q} @@ -32,27 +32,27 @@ MAKE_ENV+= COPTS=${COPTS:M*:Q}
32#. endif 32#. endif
33#.endif 33#.endif
34 34
35#.if empty(MAKE_ENV:MUSE_XCB=*) 35#.if empty(MAKE_ENV:MUSE_XCB=*)
36MAKE_ENV+= USE_XCB=no 36MAKE_ENV+= USE_XCB=no
37#.endif 37#.endif
38 38
39.include "../../mk/compiler.mk" 39.include "../../mk/compiler.mk"
40 40
41MESA_HZ?= 100 41MESA_HZ?= 100
42MAKE_ENV+= MESA_HZ=${MESA_HZ:Q} 42MAKE_ENV+= MESA_HZ=${MESA_HZ:Q}
43.if ${OPSYS} == "NetBSD" && exists(/sbin/sysctl) 43.if ${OPSYS} == "NetBSD" && exists(/sbin/sysctl)
44tmphz=\ 44tmphz=\
45 ${sysctl kern.clockrate || ${TRUE}\ 45 ${/sbin/sysctl kern.clockrate || ${TRUE}\
46 :L:sh:ts,:S/,//gW:C/([^[0-9]]*)(=|[^ hz])*([^[0-9])//g:M[0-9]*} 46 :L:sh:ts,:S/,//gW:C/([^[0-9]]*)(=|[^ hz])*([^[0-9])//g:M[0-9]*}
47. if !empty(tmphz) && (${tmphz} > 50) && (${tmphz} < 2001) 47. if !empty(tmphz) && (${tmphz} > 50) && (${tmphz} < 2001)
48MESA_HZ= ${tmphz} 48MESA_HZ= ${tmphz}
49. endif 49. endif
50.endif 50.endif
51### 51###
52### XXX do we still want this? 52### XXX do we still want this?
53### 53###
54.if ${OPSYS} == "SunOS" 54.if ${OPSYS} == "SunOS"
55. if ${MACHINE_ARCH} == "sparc" 55. if ${MACHINE_ARCH} == "sparc"
56. if !empty(PKGSRC_COMPILER:Msunpro) 56. if !empty(PKGSRC_COMPILER:Msunpro)
57BUILD_TARGET= sunos5 57BUILD_TARGET= sunos5
58. else 58. else