Makefile 4.99 KB
Newer Older
Alexander Larsson's avatar
Alexander Larsson committed
1
2
3
srcdir = $(CURDIR)
builddir = $(CURDIR)

4
VERSION=3.16
5
6
7
8
9
ARCH=x86_64
IMAGES=yocto-build/$(ARCH)/images
SPECS=packages/SPECS
NOARCH=packages/RPMS/noarch

10
all: gnome-platform.tar.gz gnome-sdk.tar.gz
11
12

$(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz images:
Alexander Larsson's avatar
Alexander Larsson committed
13
14
15
16
17
	if test ! -d gnome-continuous-yocto; then \
		git clone https://github.com/alexlarsson/gnome-continuous-yocto.git --branch gnomeostree-3.14-dizzy-platform;\
	fi
	(cd  gnome-continuous-yocto; git pull;)
	(cd  gnome-continuous-yocto; git submodule update --init;)
18
19
	mkdir -p yocto-build/$(ARCH)
	./gnome-sdk-build-yocto ${srcdir}/gnome-continuous-yocto ${builddir}/yocto-build/ $(ARCH)
Alexander Larsson's avatar
Alexander Larsson committed
20
21
22
23

NULL=

PACKAGES = \
24
	freedesktop-platform-base freedesktop-sdk-base \
Alexander Larsson's avatar
Alexander Larsson committed
25
26
27
28
29
30
31
32
33
34
35
	gtk-doc-stub \
	glib2 \
	gnome-common \
	gobject-introspection \
	shared-mime-info \
	pixman \
	freetype \
	fontconfig \
	xorg-x11-util-macros \
	xorg-x11-proto-devel \
	libXau xcb-proto libxcb libXdmcp xorg-x11-xtrans-devel libX11 libXrender \
Alexander Larsson's avatar
Alexander Larsson committed
36
	libXfixes libXext libXft libXi libXinerama libICE libSM libXpm libXrandr libXtst libXt \
Alexander Larsson's avatar
Alexander Larsson committed
37
	libXv libXvMC libXxf86vm libXdamage libXcursor libXcomposite libxkbfile libxshmfence \
Alexander Larsson's avatar
Alexander Larsson committed
38
	xkeyboard-config libxkbcommon \
Alexander Larsson's avatar
Alexander Larsson committed
39
	dbus cairo dbus-glib \
40
	libpciaccess libdrm llvm mesa libepoxy wayland \
Alexander Larsson's avatar
Alexander Larsson committed
41
	pulseaudio \
42
	freedesktop-platform freedesktop-sdk \
Alexander Larsson's avatar
Alexander Larsson committed
43
	graphite2 harfbuzz libdatrie libthai pango atk at-spi2-core at-spi2-atk gdk-pixbuf2 gtk3 \
44
	libsecret \
Alexander Larsson's avatar
Alexander Larsson committed
45
	itstool yelp-xsl yelp-tools \
Alexander Larsson's avatar
Alexander Larsson committed
46
	hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
Alexander Larsson's avatar
Alexander Larsson committed
47
	gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
Alexander Larsson's avatar
Alexander Larsson committed
48
	gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
Alexander Larsson's avatar
Add gjs    
Alexander Larsson committed
49
	dconf gvfs desktop-file-utils json-glib libnotify vte mozjs24 gjs \
Alexander Larsson's avatar
Alexander Larsson committed
50
	gstreamer1 \
Alexander Larsson's avatar
Alexander Larsson committed
51
	cogl clutter clutter-gtk webkitgtk4 \
52
	aspell hunspell-en hunspell enchant \
Alexander Larsson's avatar
Alexander Larsson committed
53
	zenity \
Alexander Larsson's avatar
Alexander Larsson committed
54
55
	$(NULL)

56
ALL_SPECS =$(PACKAGES:%=$(SPECS)/%.spec)
Alexander Larsson's avatar
Alexander Larsson committed
57
58
59

deps: rpm-dependencies.P

60
61
62
rpm-dependencies.P: $(ALL_SPECS) makedeps.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
	./build.sh ./makedeps.sh $(ALL_SPECS) > rpm-dependencies.P
Alexander Larsson's avatar
Alexander Larsson committed
63

Alexander Larsson's avatar
Alexander Larsson committed
64
gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz: $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
65
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
Alexander Larsson's avatar
Alexander Larsson committed
66
	./build.sh smart install -y  $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
67
68
	rm -rf gnome-sdk.tar.gz
	tar --transform 's,^root/usr,files,S' -czf gnome-sdk.tar.gz root/usr --owner=root
Alexander Larsson's avatar
Alexander Larsson committed
69
	tar --transform 's,^var,files,S' -czf gnome-sdk-rpmdb.tar.gz var/lib/rpm --owner=root
Alexander Larsson's avatar
Alexander Larsson committed
70

71
freedesktop-platform-base: $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm
72

73
74
75
76
77
$(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm: $(SPECS)/freedesktop-platform-base.spec setup.sh build.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
	-echo building freedesktop-platform-base.spec
	rm -rf packages/freedesktop-platform
	mkdir -p packages/freedesktop-platform
	tar -C packages/freedesktop-platform -xzf $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
78
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
79
	./build.sh rpmbuild -ba $(SPECS)/freedesktop-platform-base.spec
80

81
freedesktop-sdk-base: $(NOARCH)/freedesktop-sdk-base-0.1-1.sdk.noarch.rpm
82

83
gnome-platform-packages: $(NOARCH)/gnome-platform-0.1-1.sdk.noarch.rpm $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm setup.sh build.sh
84
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
85
	rm -f gnome-platform-packages
86
	./build.sh ./list_packages.sh gnome-platform > gnome-platform-packages
87

Alexander Larsson's avatar
Alexander Larsson committed
88
gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz: gnome-platform-packages $(NOARCH)/gnome-platform-0.1-1.sdk.noarch.rpm setup.sh build.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
89
90
91
	-echo building gnome-platform
	./setup_root.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
	./build.sh rpm -Uvh `cat gnome-platform-packages`
92
	tar --transform 's,^root/usr,files,S' -czf gnome-platform.tar.gz root/usr --owner=root
Alexander Larsson's avatar
Alexander Larsson committed
93
	tar --transform 's,^var,files,S' -czf gnome-platform-rpmdb.tar.gz var/lib/rpm --owner=root
94
95
96
97

repository:
	ostree  init --mode=archive-z2 --repo=repository

Alexander Larsson's avatar
Alexander Larsson committed
98
commit-platform: repository gnome-platform.tar.gz  gnome-platform-rpmdb.tar.gz
99
	./commit.sh repository gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(VERSION)
100

Alexander Larsson's avatar
Alexander Larsson committed
101
commit-sdk: repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
102
	./commit.sh repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(VERSION)
103
104

commit: commit-sdk commit-platform
Alexander Larsson's avatar
Alexander Larsson committed
105
	echo done
106

Alexander Larsson's avatar
Alexander Larsson committed
107
release-commit-platform: release/repo gnome-platform.tar.gz  gnome-platform-rpmdb.tar.gz
108
	./commit.sh release/repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(VERSION)
Alexander Larsson's avatar
Alexander Larsson committed
109
110

release-commit-sdk: release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
111
	./commit.sh release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(VERSION)
112

Alexander Larsson's avatar
Alexander Larsson committed
113
114

release-commit: release-commit-sdk release-commit-platform
115
	echo done
116

Alexander Larsson's avatar
Alexander Larsson committed
117
-include rpm-dependencies.P