1 include ..
/..
/Makefile.
include WAYLAND-SCANNER-VERSION ..
/..
/download-files.
include
3 PLATFORM
=$(NATIVEPLATFORM
)
4 DEPS
=..
/..
/Makefile.
include Makefile WAYLAND-SCANNER-VERSION ..
/..
/download-files.
include
6 # configuration settings
7 CONFIGURE
= $(NATIVEPREFIX
)/bin
/python3
$(NATIVEPREFIX
)/bin
/meson setup \
9 --libdir $(PREFIX
)/lib \
13 -Ddocumentation
=false \
14 -Ddtd_validation
=false
16 export CC
=$(CC_BINARY_FOR_BUILD
)
17 export CXX
=$(CXX_BINARY_FOR_BUILD
)
18 export CFLAGS
=$(NATIVE_CFLAGS
)
19 export CXXFLAGS
=$(NATIVE_CXXFLAGS
)
20 export LDFLAGS
=$(NATIVE_LDFLAGS
)
22 export PKG_CONFIG_LIBDIR
=$(PREFIX
)/lib
/pkgconfig
24 all: .installed-
$(PLATFORM
)
26 $(PLATFORM
): $(DEPS
) |
$(TARBALLS_LOCATION
)/$(ARCHIVE
).
$(HASH_TYPE
)
27 rm -rf
$(PLATFORM
)/*; mkdir
-p
$(PLATFORM
)
28 cd
$(PLATFORM
); $(ARCHIVE_TOOL
) $(ARCHIVE_TOOL_FLAGS
) $(TARBALLS_LOCATION
)/$(ARCHIVE
)
29 cd
$(PLATFORM
); rm -rf build
; mkdir
-p build
30 cd
$(PLATFORM
); $(CONFIGURE
) . build
32 .installed-
$(PLATFORM
): $(PLATFORM
)
33 cd
$(PLATFORM
)/build
; $(NATIVEPREFIX
)/bin
/ninja
-v
34 cd
$(PLATFORM
)/build
; $(NATIVEPREFIX
)/bin
/ninja
-v
install
38 $(MAKE
) -C
$(PLATFORM
) clean
39 rm -f .installed-
$(PLATFORM
)
42 rm -rf
$(PLATFORM
) .installed-
$(PLATFORM
)