2008-07-27 02:03:42 +02:00
|
|
|
# $NetBSD: hacks.mk,v 1.13 2008/07/27 00:03:42 bjs Exp $
|
2006-10-01 22:31:13 +02:00
|
|
|
|
|
|
|
.if !defined(MESALIBS_HACKS_MK)
|
|
|
|
MESALIBS_HACKS_MK= # defined
|
|
|
|
|
|
|
|
### [Fri Dec 30 21:00:59 CET 2005 : schwarz]
|
|
|
|
### make sys/types.h not conflict with inttypes.h
|
|
|
|
### (issue is specific to IRIX 5.3)
|
|
|
|
###
|
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 !empty(MACHINE_PLATFORM:MIRIX-5.3-*)
|
2006-10-01 22:31:13 +02:00
|
|
|
PKG_HACKS+= sys_types_h-inttypes_h-conflict
|
|
|
|
post-wrapper:
|
2007-08-13 13:18:28 +02:00
|
|
|
${MKDIR} ${BUILDLINK_DIR}/include/sys && ${GREP} -v '^typedef.*[^u_]int[12368]*_t;' /usr/include/sys/types.h > ${BUILDLINK_DIR}/include/sys/types.h
|
2006-10-01 22:31:13 +02:00
|
|
|
# should match int8_t, int16_t, and int32_t (only)
|
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
|
|
|
. endif
|
|
|
|
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
###
|
|
|
|
### Ordinarily, this is defined by the build. However, in pkgsrc,
|
2008-07-27 02:03:42 +02:00
|
|
|
### policy dictates that we do it here.
|
2008-05-21 07:58:52 +02:00
|
|
|
###
|
|
|
|
### XXXbjs: -ffast-math seems to cause instability, at least on amd64.
|
|
|
|
### I have disabled it pending further testing.
|
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 !empty(CC_VERSION:Mgcc-[34]*)
|
|
|
|
PKG_HACKS+= no-strict-aliasing
|
|
|
|
CFLAGS+= -fno-strict-aliasing
|
2008-05-21 06:11:37 +02:00
|
|
|
#PKG_HACKS+= gcc-fast-math
|
|
|
|
#CFLAGS+= -ffast-math
|
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
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !empty(CC_VERSION:Mgcc-[4-9]*)
|
|
|
|
# Don't hide symbols for glut by default, it doesn't know how to unhide them.
|
2008-06-25 13:21:20 +02:00
|
|
|
. if empty(PKGNAME:M*glut*)
|
2008-06-24 20:55:44 +02:00
|
|
|
PKG_HACKS+= gcc-hidden-visibility
|
2008-06-27 15:24:39 +02:00
|
|
|
CFLAGS+= -fvisibility=hidden
|
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
|
|
|
. endif
|
|
|
|
. endif
|
2008-04-25 22:11:11 +02:00
|
|
|
###
|
|
|
|
### XXX this shoddy hack is here to fix the unresolved symbol error that
|
2008-05-21 06:11:37 +02:00
|
|
|
### results due to '.extern pthread_getspecific' in the x86/x86-64
|
|
|
|
### assembler dispatch routines. Morever, there are also link-time
|
|
|
|
### issues with certain other applications due to pthread_getspecific()
|
|
|
|
### in glthread.c and glxext.c, so "fix" those also.
|
2008-04-25 22:11:11 +02:00
|
|
|
###
|
|
|
|
. include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
|
|
|
|
. if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:M*86*) && \
|
|
|
|
empty(PTHREAD_STUBLIB:U:M*pthstub*)
|
|
|
|
SUBST_CLASSES+= asm-hack
|
|
|
|
SUBST_FILES.asm-hack= src/mesa/x86/glapi_x86.S
|
2008-05-21 06:11:37 +02:00
|
|
|
SUBST_FILES.asm-hack+= src/mesa/x86-64/glapi_x86-64.S
|
|
|
|
SUBST_FILES.asm-hack+= src/mesa/glapi/glthread.c
|
|
|
|
SUBST_FILES.asm-hack+= src/glx/x11/glxext.c
|
2008-07-27 02:03:42 +02:00
|
|
|
SUBST_MESSAGE.asm-hack=Teaching glapi about NetBSD thread stubs
|
2008-04-25 22:11:11 +02:00
|
|
|
SUBST_SED.asm-hack= -e 's,pthread_getspecific,__libc_thr_getspecific,g'
|
|
|
|
SUBST_STAGE.asm-hack= post-patch
|
|
|
|
. endif
|
2006-10-01 22:31:13 +02:00
|
|
|
|
|
|
|
.endif
|