blob: 70d35fcd730d09da3d09ab09957e20714f083477 (
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: buildlink.mk,v 1.2 2002/08/25 18:39:07 jlam Exp $
.if !defined(GLU_BUILDLINK_MK)
GLU_BUILDLINK_MK= # defined
.include "../../mk/bsd.buildlink.mk"
BUILDLINK_DEPENDS.glu?= glu>=3.4.2
# Check if we got libGLU distributed with XFree86 4.x or if we need to
# depend on the glu package.
#
_REQUIRE_BUILTIN_GLU?= NO
.if exists(${X11BASE}/include/GL/glu.h)
_IS_BUILTIN_GLU!= ${EGREP} -c BuildGLULibrary ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
.else
_IS_BUILTIN_GLU= 0
.endif
.if (${_IS_BUILTIN_GLU} == "0") && (${_REQUIRE_BUILTIN_GLU} == "NO")
_NEED_GLU= YES
.else
_NEED_GLU= NO
.endif
.if ${_NEED_GLU} == "YES"
DEPENDS+= ${BUILDLINK_DEPENDS.glu}:../../graphics/glu
EVAL_PREFIX+= BUILDLINK_PREFIX.glu=glu
BUILDLINK_PREFIX.glu_DEFAULT= ${X11PREFIX}
.else
BUILDLINK_PREFIX.glu= ${X11BASE}
.endif
BUILDLINK_FILES.glu= include/GL/glu.h
BUILDLINK_FILES.glu+= include/GL/glu_mangle.h
BUILDLINK_FILES.glu+= lib/libGLU.*
BUILDLINK_TARGETS+= glu-buildlink
pre-configure: glu-buildlink
glu-buildlink: _BUILDLINK_USE
.endif # GLU_BUILDLINK_MK
|