| @@ -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 | |
9 | DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX} | | 9 | DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX} |
10 | DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX} | | 10 | DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX} |
11 | DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX} | | 11 | DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX} |
12 | | | 12 | |
13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 13 | PKG_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=*) |
36 | MAKE_ENV+= USE_XCB=no | | 36 | MAKE_ENV+= USE_XCB=no |
37 | #.endif | | 37 | #.endif |
38 | | | 38 | |
39 | .include "../../mk/compiler.mk" | | 39 | .include "../../mk/compiler.mk" |
40 | | | 40 | |
41 | MESA_HZ?= 100 | | 41 | MESA_HZ?= 100 |
42 | MAKE_ENV+= MESA_HZ=${MESA_HZ:Q} | | 42 | MAKE_ENV+= MESA_HZ=${MESA_HZ:Q} |
43 | .if ${OPSYS} == "NetBSD" && exists(/sbin/sysctl) | | 43 | .if ${OPSYS} == "NetBSD" && exists(/sbin/sysctl) |
44 | tmphz=\ | | 44 | tmphz=\ |
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) |
48 | MESA_HZ= ${tmphz} | | 48 | MESA_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) |
57 | BUILD_TARGET= sunos5 | | 57 | BUILD_TARGET= sunos5 |
58 | . else | | 58 | . else |