locale.library: correctly return the position of remaining datastream
[AROS.git] / workbench / libs / glu / mmakefile.src
blobcdaba9baadcdafec3aad6646910d54b34b8b2f35
1 #   $Id$
3 include $(SRCDIR)/config/aros.cfg
5 ################################################################################
6 # GLU                                                                          #
7 ################################################################################
9 #MM- workbench-libs-complete : workbench-libs-glu-$(AROS_TARGET_TOOLCHAIN)
10 #MM- workbench-libs-glu-yes : workbench-libs-glu
12 #MM workbench-libs-glu : includes workbench-libs-mesa-linklib workbench-libs-glu-fetch
13 #MM workbench-libs-glu-includes : workbench-libs-glu-fetch
15 #MM- includes-copy : workbench-libs-glu-includes
17 REPOSITORIES = ftp://ftp.freedesktop.org/pub/mesa/glu/ \
18  ftp://ftp.embeddedarm.com/mirror/yocto/
19 ARCHBASE := glu-9.0.0
20 PATCHSPEC := $(ARCHBASE)-aros.diff:$(ARCHBASE):-p1
22 top_srcdir = $(PORTSDIR)/glu/$(ARCHBASE)
24 GLU_INCLUDE_FILES := glu.h
26 LIBUTIL_SOURCES = \
27             libutil/error \
28             libutil/glue \
29             libutil/mipmap \
30             libutil/project \
31             libutil/quad \
32             libutil/registry
34 LIBTESS_SOURCES = \
35             libtess/dict \
36             libtess/geom \
37             libtess/memalloc \
38             libtess/mesh \
39             libtess/normal \
40             libtess/priorityq \
41             libtess/render \
42             libtess/sweep \
43             libtess/tess \
44             libtess/tessmono
46 LIBNURBS_SOURCES = \
47             libnurbs/interface/bezierEval \
48             libnurbs/interface/bezierPatch \
49             libnurbs/interface/bezierPatchMesh \
50             libnurbs/interface/glcurveval \
51             libnurbs/interface/glinterface \
52             libnurbs/interface/glrenderer \
53             libnurbs/interface/glsurfeval \
54             libnurbs/interface/incurveeval \
55             libnurbs/interface/insurfeval \
56             libnurbs/internals/arc \
57             libnurbs/internals/arcsorter \
58             libnurbs/internals/arctess \
59             libnurbs/internals/backend \
60             libnurbs/internals/basiccrveval \
61             libnurbs/internals/basicsurfeval \
62             libnurbs/internals/bin \
63             libnurbs/internals/bufpool \
64             libnurbs/internals/cachingeval \
65             libnurbs/internals/ccw \
66             libnurbs/internals/coveandtiler \
67             libnurbs/internals/curve \
68             libnurbs/internals/curvelist \
69             libnurbs/internals/curvesub \
70             libnurbs/internals/dataTransform \
71             libnurbs/internals/displaylist \
72             libnurbs/internals/flist \
73             libnurbs/internals/flistsorter \
74             libnurbs/internals/hull \
75             libnurbs/internals/intersect \
76             libnurbs/internals/knotvector \
77             libnurbs/internals/mapdesc \
78             libnurbs/internals/mapdescv \
79             libnurbs/internals/maplist \
80             libnurbs/internals/mesher \
81             libnurbs/internals/monotonizer \
82             libnurbs/internals/monoTriangulationBackend \
83             libnurbs/internals/mycode \
84             libnurbs/internals/nurbstess \
85             libnurbs/internals/nurbsinterfac \
86             libnurbs/internals/patch \
87             libnurbs/internals/patchlist \
88             libnurbs/internals/quilt \
89             libnurbs/internals/reader \
90             libnurbs/internals/renderhints \
91             libnurbs/internals/slicer \
92             libnurbs/internals/sorter \
93             libnurbs/internals/splitarcs \
94             libnurbs/internals/subdivider \
95             libnurbs/internals/tobezier \
96             libnurbs/internals/trimline \
97             libnurbs/internals/trimregion \
98             libnurbs/internals/trimvertpool \
99             libnurbs/internals/uarray \
100             libnurbs/internals/varray \
101             libnurbs/nurbtess/directedLine \
102             libnurbs/nurbtess/gridWrap \
103             libnurbs/nurbtess/monoChain \
104             libnurbs/nurbtess/monoPolyPart \
105             libnurbs/nurbtess/monoTriangulation \
106             libnurbs/nurbtess/partitionX \
107             libnurbs/nurbtess/partitionY \
108             libnurbs/nurbtess/polyDBG \
109             libnurbs/nurbtess/polyUtil \
110             libnurbs/nurbtess/primitiveStream \
111             libnurbs/nurbtess/quicksort \
112             libnurbs/nurbtess/rectBlock \
113             libnurbs/nurbtess/sampleCompBot \
114             libnurbs/nurbtess/sampleComp \
115             libnurbs/nurbtess/sampleCompRight \
116             libnurbs/nurbtess/sampleCompTop \
117             libnurbs/nurbtess/sampledLine \
118             libnurbs/nurbtess/sampleMonoPoly \
119             libnurbs/nurbtess/searchTree
121 LIBRARY_SOURCES = \
122             $(addprefix $(top_srcdir)/src/, $(LIBUTIL_SOURCES)) \
123             $(addprefix $(top_srcdir)/src/, $(LIBTESS_SOURCES)) \
124             $(EMUL_C_SOURCES)
126 USER_INCLUDES := \
127             -I$(top_srcdir)/src/include \
128             -I$(top_srcdir)/src/libnurbs/internals \
129             -I$(top_srcdir)/src/libnurbs/nurbtess
131 NOWARN_FLAGS := $(NOWARN_NONNULL_COMPARE) $(NOWARN_MISLEADING_INDENTATION) \
132                 $(NOWARN_UNINITIALIZED) $(NOWARN_VOLATILE_REGISTER_VAR)
133 GLU_COMMONFLAGS := -fno-asynchronous-unwind-tables -fno-exceptions  -DLIBRARYBUILD
134 USER_CFLAGS := $(GLU_COMMONFLAGS) $(NOWARN_FLAGS)
135 USER_CXXFLAGS := $(GLU_COMMONFLAGS) -fno-rtti $(NOWARN_FLAGS)
137 CC_SOURCES := \
138     $(addprefix $(top_srcdir)/src/, $(LIBNURBS_SOURCES))
140 EMUL_C_SOURCES = \
141     emul_stdc
143 EMUL_CXX_SOURCES := \
144     emul_stdc++
146 #MM- core-linklibs : linklibs-glu
148 %fetch mmake=workbench-libs-glu-fetch archive=$(ARCHBASE) destination=$(PORTSDIR)/glu \
149     location=$(PORTSSOURCEDIR) archive_origins=$(REPOSITORIES) suffixes="tar.bz2" \
150     patches_specs=$(PATCHSPEC)
152 %create_patch mmake=workbench-libs-glu-create-patch \
153     archive=$(ARCHBASE) srcdir=$(ARCHBASE) destination=$(PORTSDIR)/glu
155 %build_module mmake=workbench-libs-glu \
156     modname=glu modtype=library linklibname=GLU \
157     files="$(LIBRARY_SOURCES)" cxxfiles="$(EMUL_CXX_SOURCES) $(CC_SOURCES)" \
158     uselibs="GL stdcio stdc"
161 workbench-libs-glu-includes:
162 %copy_includes path=GL dir=$(top_srcdir)/include/GL includes=$(GLU_INCLUDE_FILES)
164 %common