blob: 602edcf1e794cc9fbe12bae39101da688913da0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $NetBSD: buildlink2.mk,v 1.15 2003/08/26 01:43:52 jschauma Exp $
.if !defined(MESALIB_BUILDLINK2_MK)
MESALIB_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
BUILDLINK_DEPENDS.MesaLib?= MesaLib>=${MESA_VERSION}
BUILDLINK_PKGSRCDIR.MesaLib?= ../../graphics/MesaLib
BUILDLINK_PACKAGES+= MesaLib
EVAL_PREFIX+= BUILDLINK_PREFIX.MesaLib=MesaLib
BUILDLINK_PREFIX.MesaLib_DEFAULT= ${LOCALBASE}
CPPFLAGS+= -DGLX_GLXEXT_LEGACY
CFLAGS+= -DGLX_GLXEXT_LEGACY
BUILDLINK_FILES.MesaLib+= include/GL/GL*.h
BUILDLINK_FILES.MesaLib+= include/GL/gl.h
BUILDLINK_FILES.MesaLib+= include/GL/glext.h
BUILDLINK_FILES.MesaLib+= include/GL/gl_mangle.h
BUILDLINK_FILES.MesaLib+= include/GL/glx*.h
BUILDLINK_FILES.MesaLib+= include/GL/osmesa.h
BUILDLINK_FILES.MesaLib+= include/GL/xmesa.h
BUILDLINK_FILES.MesaLib+= include/GL/xmesa_x.h
BUILDLINK_FILES.MesaLib+= include/GL/xmesa_xf86.h
BUILDLINK_FILES.MesaLib+= lib/libGL.*
USE_X11= # defined
BUILDLINK_TARGETS+= MesaLib-buildlink
BUILDLINK_TARGETS+= MesaLib-libGL-la
MesaLib-buildlink: _BUILDLINK_USE
MesaLib-libGL-la:
${_PKG_SILENT}${_PKG_DEBUG} \
lafile="${BUILDLINK_DIR}/lib/libGL.la"; \
libpattern="${BUILDLINK_PREFIX.MesaLib}/lib/libGL.*"; \
${BUILDLINK_FAKE_LA}
.endif # MESALIB_BUILDLINK2_MK
|