2008-09-06 15:00:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.72 2008/09/06 13:00:31 wiz Exp $
|
2000-10-15 13:41:17 +02:00
|
|
|
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
PKGNAME= MesaLib-${MESA_PKGVERSION}
|
2004-01-22 13:58:07 +01:00
|
|
|
COMMENT= Graphics library similar to SGI's OpenGL
|
2008-09-06 15:00:31 +02:00
|
|
|
PKGREVISION= 2
|
2004-01-05 12:42:20 +01:00
|
|
|
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
MESA_HEADERS= gl.h gl_mangle.h glext.h glx.h glxext.h \
|
|
|
|
glx_mangle.h osmesa.h xmesa.h xmesa_x.h \
|
|
|
|
xmesa_xf86.h
|
|
|
|
|
2008-07-27 02:03:42 +02:00
|
|
|
MESA_HEADERS+= internal/dri_interface.h internal/sarea.h
|
|
|
|
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2008-07-27 02:03:42 +02:00
|
|
|
BUILD_DEFS+= MESA_HZ
|
|
|
|
###
|
|
|
|
### XXX Older versions of xf86driproto installed dri_interface.h, which
|
|
|
|
### is now installed by Mesa.
|
|
|
|
###
|
|
|
|
BUILDLINK_API_DEPENDS.driproto+= xf86driproto>=2.0.4
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2000-10-15 13:41:17 +02:00
|
|
|
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
|
2008-08-17 11:41:35 +02:00
|
|
|
CFLAGS.NetBSD+= ${ATOMIC_OPS_CHECK}HAVE_NETBSD_ATOMIC_OPS
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD" && !target(netbsd-atomic-ops-check)
|
|
|
|
netbsd-atomic-ops-check:
|
|
|
|
ATOMIC_OPS_CHECK!=\
|
|
|
|
if ( ${NM} /usr/lib/libc.so | ${GREP} -q atomic_cas_uint ); then \
|
|
|
|
${ECHO} "-D"; \
|
|
|
|
else \
|
|
|
|
${ECHO} "-U"; \
|
|
|
|
fi
|
|
|
|
.endif
|
2000-10-15 13:41:17 +02:00
|
|
|
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
.if (${MACHINE_ARCH} == "x86_64" || \
|
|
|
|
${MACHINE_ARCH} == "sparc64" || \
|
|
|
|
${MACHINE_ARCH} == "alpha")
|
|
|
|
CFLAGS+= -D__GLX_ALIGN64
|
2003-05-21 10:40:06 +02:00
|
|
|
.endif
|
|
|
|
|
2008-07-27 02:03:42 +02:00
|
|
|
.if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Mx86_64)
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
###
|
|
|
|
### This is taken from <sys/arch/i386/include/npx.h>. If we don't override
|
|
|
|
### it, the FPU control word will be restored to 0x037f.
|
|
|
|
###
|
|
|
|
### Also, see patch-aq about the libm functions required (float functions
|
|
|
|
### such as floorf). Proper configuration of this should be a goal of
|
|
|
|
### the Mesa developers; alas, it obviously is not.
|
|
|
|
###
|
|
|
|
### XXX We need a reliable check for these functions.
|
|
|
|
###
|
|
|
|
#/* NetBSD uses IEEE double precision. */
|
|
|
|
CFLAGS.NetBSD+= -DDEFAULT_X86_FPU=0x127f
|
|
|
|
###
|
|
|
|
###
|
|
|
|
#/* FreeBSD leaves some exceptions unmasked as well. */
|
|
|
|
###
|
|
|
|
CFLAGS.FreeBSD+= -DDEFAULT_x86_FPU=0x1272
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS.FreeBSD+= -DUSE_NATIVE_LIBM_FUNCS
|
|
|
|
CFLAGS.Linux+= -DUSE_NATIVE_LIBM_FUNCS
|
|
|
|
CFLAGS.NetBSD+= -DUSE_NATIVE_LIBM_FUNCS
|
2008-04-30 09:00:14 +02:00
|
|
|
CFLAGS.DragonFly+= -DUSE_NATIVE_LIBM_FUNCS
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
|
|
|
|
PLIST_VARS= dri nodri
|
|
|
|
|
|
|
|
.include "../../graphics/Mesa/Makefile.lib"
|
|
|
|
.include "options.mk"
|
2005-06-17 17:54:06 +02:00
|
|
|
|
2006-03-21 20:26:31 +01:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[12].*)
|
2008-07-30 02:27:55 +02:00
|
|
|
##
|
|
|
|
## NetBSD 2.x and earlier require pthread stubs
|
|
|
|
##
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
. include "../../devel/pthread-stublib/buildlink3.mk"
|
2008-07-30 02:27:55 +02:00
|
|
|
PTHREAD_STUBLIB= -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lpthstub
|
|
|
|
.elif !empty(MACHINE_PLATFORM:MNetBSD-*)
|
|
|
|
##
|
|
|
|
## NetBSD 3.x and later have pthread stubs in libc
|
|
|
|
##
|
|
|
|
PTHREAD_STUBLIB=
|
2006-03-21 20:26:31 +01:00
|
|
|
.else
|
2008-07-30 02:27:55 +02:00
|
|
|
##
|
|
|
|
## Other platforms may or may not have stubs provided by libc, but pulling in
|
|
|
|
## threading support via the pthread.buildlink3.mk definitions will provide
|
|
|
|
## all the necessary interfaces. This matches the standard configuration for
|
|
|
|
## most platforms as they appear in "${WRKSRC}/configs", and is necessary
|
|
|
|
## for successful linking with libGL under many platforms.
|
|
|
|
##
|
2008-08-06 04:33:22 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2008-07-30 02:27:55 +02:00
|
|
|
PTHREAD_STUBLIB= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
|
2006-03-21 20:26:31 +01:00
|
|
|
.endif
|
2008-07-30 02:27:55 +02:00
|
|
|
PKGSRC_MAKE_ENV+= PTHREAD_STUBLIB=${PTHREAD_STUBLIB:Q}
|
2006-03-21 20:26:31 +01:00
|
|
|
|
2007-08-15 17:56:12 +02:00
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
|
|
MAKE_ENV+= CROSS_COMPILING=yes
|
|
|
|
.endif
|
|
|
|
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
RM_PATCH_BACKUP_DIRS= docs src/mesa src/glut/glx \
|
|
|
|
progs/demos progs/xdemos progs/glsl
|
2007-08-15 17:56:12 +02:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/gen_matypes.awk ${WRKSRC}/src/mesa/x86
|
|
|
|
${CP} ${FILESDIR}/gen_matypes.sh ${WRKSRC}/src/mesa/x86
|
|
|
|
${CHMOD} a+x ${WRKSRC}/src/mesa/x86/gen_matypes.sh
|
Welcome to Mesa-7.0.3.
Changes from 6.4.2 are (obviously) far too numerous to mention! This
package brings with it support for the Direct Rendering Infrastructure
(DRI) on NetBSD-current; the kernel DRM was committed approximately
one year ago. Patches for NetBSD 4.0 are available in the mailing list
archives (I think), but are _not supported_.
Developers and other interested parties are encouraged to read the TODO
file, as well as my remarks in options.mk. There is still a significant
amount of work to be done. Users of NetBSD/i386 (-current) shouldn't
have much trouble getting mainstream cards (Intel i915 and Radeon 9600-
R430 are by far the most tested) to work.
I have taken great pains to ensure that this works properly, but inevitably
there will be problems--especially on heretofore untested (read: non-x86)
hardware. Your questions, comments, problem reports, and of course
bug fixes are welcome.
NOTE: There are currently problems (on NetBSD, at least) linking some
executables, e.g. compiz, due to unresolved symbols for libpthread
functions. This is due to libX11's thread stubs, which should not
be enabled on NetBSD >= 2.0; see the TODO For more information
and the URL of an interim patch.
2008-04-24 09:40:23 +02:00
|
|
|
for fn in ${RM_PATCH_BACKUP_DIRS}; do \
|
|
|
|
${RM} -f ${WRKSRC}/$${fn}/*.orig; \
|
|
|
|
done
|
2007-08-15 17:56:12 +02:00
|
|
|
|
2008-07-27 02:03:42 +02:00
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/GL/internal
|
|
|
|
|
2004-01-20 03:48:33 +01:00
|
|
|
pre-build:
|
2007-08-13 13:18:28 +02:00
|
|
|
cd ${WRKSRC} && ${RM} -fr src/glu src/glut progs
|
2004-01-20 03:48:33 +01:00
|
|
|
|
2000-10-15 13:41:17 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|