3 include $(SRCDIR)/config/aros.cfg
5 ################################################################################
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/
20 PATCHSPEC := $(ARCHBASE)-aros.diff:$(ARCHBASE):-p1
22 top_srcdir = $(PORTSDIR)/glu/$(ARCHBASE)
24 GLU_INCLUDE_FILES := glu.h
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
122 $(addprefix $(top_srcdir)/src/, $(LIBUTIL_SOURCES)) \
123 $(addprefix $(top_srcdir)/src/, $(LIBTESS_SOURCES)) \
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)
138 $(addprefix $(top_srcdir)/src/, $(LIBNURBS_SOURCES))
143 EMUL_CXX_SOURCES := \
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)