1 # $NetBSD: Makefile,v 1.3 2008/12/06 19:32:05 mrg Exp $
3 NOLINT
= 1 # XTODO: tess.ln SIGSEGVs lint :(
10 GLUDIR
= ${X11SRCDIR.MesaLib
}/src
/glu
/sgi
12 SRCS.libutil
= error.c glue.c mipmap.c project.c quad.c registry.c
13 .PATH
: ${GLUDIR}/libutil
15 SRCS.libtess
= dict.c geom.c memalloc.c mesh.c normal.c priorityq.c \
16 render.c sweep.c tess.c tessmono.c
17 .PATH
: ${GLUDIR}/libtess
19 SRCS.interface
= bezierEval.
cc bezierPatch.
cc bezierPatchMesh.
cc \
20 glcurveval.
cc glinterface.
cc glrenderer.
cc \
21 glsurfeval.
cc incurveeval.
cc insurfeval.
cc
22 .PATH
: ${GLUDIR}/libnurbs
/interface
23 .for fn in
${SRCS.interface
}
24 CPPFLAGS.
${fn}+=-I
${GLUDIR}/libnurbs
/internals \
25 -I
${GLUDIR}/libnurbs
/nurbtess \
29 SRCS.internals
= arc.
cc arcsorter.
cc arctess.
cc backend.
cc \
30 basiccrveval.
cc basicsurfeval.
cc bin.
cc bufpool.
cc \
31 cachingeval.
cc ccw.
cc coveandtiler.
cc curve.
cc \
32 curvelist.
cc curvesub.
cc dataTransform.
cc displaylist.
cc \
33 flist.
cc flistsorter.
cc hull.
cc intersect.
cc \
34 knotvector.
cc mapdesc.
cc mapdescv.
cc maplist.
cc \
35 mesher.
cc monoTriangulationBackend.
cc monotonizer.
cc \
36 mycode.
cc nurbsinterfac.
cc nurbstess.
cc patch.
cc \
37 patchlist.
cc quilt.
cc reader.
cc renderhints.
cc \
38 slicer.
cc sorter.
cc splitarcs.
cc subdivider.
cc \
39 tobezier.
cc trimline.
cc trimregion.
cc trimvertpool.
cc \
41 .PATH
: ${GLUDIR}/libnurbs
/internals
42 .for fn in
${SRCS.internals
}
43 CPPFLAGS.
${fn}+=-I
${GLUDIR}/libnurbs
/internals \
44 -I
${GLUDIR}/libnurbs
/nurbtess \
46 -DLIBRARYBUILD
-D_EXTENSIONS_
49 SRCS.nurbtess
= directedLine.
cc gridWrap.
cc monoChain.
cc monoPolyPart.
cc \
50 monoTriangulation.
cc partitionX.
cc partitionY.
cc \
51 polyDBG.
cc polyUtil.
cc primitiveStream.
cc quicksort.
cc \
52 rectBlock.
cc sampleComp.
cc sampleCompBot.
cc \
53 sampleCompRight.
cc sampleCompTop.
cc sampleMonoPoly.
cc \
54 sampledLine.
cc searchTree.
cc
55 .PATH
: ${GLUDIR}/libnurbs
/nurbtess
56 .for fn in
${SRCS.nurbtess
}
57 CPPFLAGS.
${fn}+=-I
${GLUDIR}/libnurbs
/internals \
58 -I
${GLUDIR}/libnurbs
/nurbtess \
62 CPPFLAGS
+= -I
${GLUDIR}/include
63 CPPFLAGS
+= -DPTHREADS
-DUSE_XSHM
-DHZ
=100 -DNDEBUG
-DLIBRARYBUILD
65 SRCS
= ${SRCS.libutil
} ${SRCS.libtess
} \
66 ${SRCS.interface
} ${SRCS.internals
} ${SRCS.nurbtess
}
68 CFLAGS
+= -fno-strict-aliasing
-fvisibility
=hidden
-pthread
70 .PATH
: ${X11SRCDIR.MesaLib
}/include/GL
71 INCS
= glu.h glu_mangle.h
72 INCSDIR
=${X11INCDIR}/GL
74 LIBDPLIBS
= Xext
${.CURDIR
}/..
/libXext \
75 X11
${.CURDIR
}/..
/libX11
/dynamic \
76 GL
${.CURDIR
}/..
/libGL \
77 Xxf86vm
${.CURDIR
}/..
/libXxf86vm \
78 Xfixes
${.CURDIR
}/..
/libXfixes \
79 Xdamage
${.CURDIR
}/..
/libXdamage \
80 drm
${.CURDIR
}/..
/libdrm
83 DPADD
+= ${LIBSTDCXX} ${LIBM}
86 PKGDIST.glu
= ${X11SRCDIR.MesaLib
}/src
/glu
87 PKGCONFIG_VERSION.glu
= 7.4.2