Makefile 6.69 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
24
25
26
27
28
29
30
31
32
33
34
35

NULL=

PACKAGES = \
	gnome-sdk-base \
	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 \
Alexander Larsson's avatar
Alexander Larsson committed
40
	libpciaccess libdrm mesa libepoxy wayland \
Alexander Larsson's avatar
Alexander Larsson committed
41
	pulseaudio \
Alexander Larsson's avatar
Alexander Larsson committed
42
	graphite2 harfbuzz libdatrie libthai pango atk at-spi2-core at-spi2-atk gdk-pixbuf2 gtk3 \
43
	libsecret \
Alexander Larsson's avatar
Alexander Larsson committed
44
	itstool yelp-xsl yelp-tools \
Alexander Larsson's avatar
Alexander Larsson committed
45
	hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
Alexander Larsson's avatar
Alexander Larsson committed
46
	gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
Alexander Larsson's avatar
Alexander Larsson committed
47
	gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
Alexander Larsson's avatar
Add gjs    
Alexander Larsson committed
48
	dconf gvfs desktop-file-utils json-glib libnotify vte mozjs24 gjs \
Alexander Larsson's avatar
Alexander Larsson committed
49
	cogl clutter clutter-gtk webkitgtk4 \
50
	aspell hunspell-en hunspell enchant \
Alexander Larsson's avatar
Alexander Larsson committed
51
	zenity \
Alexander Larsson's avatar
Alexander Larsson committed
52
53
	$(NULL)

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

deps: rpm-dependencies.P

58
59
60
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
61

62
gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz: $(NOARCH)/gnome-sdk-0.1-1.noarch.rpm
63
64
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
	./build.sh smart install -y  $(NOARCH)/gnome-sdk-0.1-1.noarch.rpm
65
66
	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
67
	tar --transform 's,^var,files,S' -czf gnome-sdk-rpmdb.tar.gz var/lib/rpm --owner=root
Alexander Larsson's avatar
Alexander Larsson committed
68

69
gnome-platform-base: $(NOARCH)/gnome-platform-base-0.1-1.noarch.rpm
70

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

79
gnome-sdk-base: $(NOARCH)/gnome-sdk-base-0.1-1.noarch.rpm
80

Alexander Larsson's avatar
Alexander Larsson committed
81
gnome-platform-packages: $(NOARCH)/gnome-platform-0.1-1.noarch.rpm $(NOARCH)/gnome-platform-base-0.1-1.noarch.rpm setup.sh build.sh
82
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
83
	rm -f gnome-platform-packages
84
	./build.sh ./list_packages.sh gnome-platform > gnome-platform-packages
85

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

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

Alexander Larsson's avatar
Alexander Larsson committed
96
commit-platform: repository gnome-platform.tar.gz  gnome-platform-rpmdb.tar.gz
97
98
	rm -rf commit
	mkdir -p commit
Alexander Larsson's avatar
Alexander Larsson committed
99
	tar xf gnome-platform.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
100
	ostree commit --repo=repository --branch=runtime/org.gnome.Platform/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
Alexander Larsson's avatar
Alexander Larsson committed
101
102
103
	rm -rf commit
	mkdir -p commit
	tar xf gnome-platform-rpmdb.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
104
	ostree commit --repo=repository --branch=runtime/org.gnome.Platform.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
105

Alexander Larsson's avatar
Alexander Larsson committed
106
commit-sdk: repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
107
108
	rm -rf commit
	mkdir -p commit
Alexander Larsson's avatar
Alexander Larsson committed
109
	tar xf gnome-sdk.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
110
	ostree commit --repo=repository --branch=runtime/org.gnome.Sdk/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
Alexander Larsson's avatar
Alexander Larsson committed
111
112
113
	rm -rf commit
	mkdir -p commit
	tar xf gnome-sdk-rpmdb.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
114
	ostree commit --repo=repository --branch=runtime/org.gnome.Sdk.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
115
116
117
118

commit: commit-sdk commit-platform


Alexander Larsson's avatar
Alexander Larsson committed
119
120
121
122
123
release-commit-platform: release/repo gnome-platform.tar.gz  gnome-platform-rpmdb.tar.gz
	rm -rf commit
	mkdir -p commit
	tar xf gnome-platform.tar.gz -C commit
	ostree commit --repo=release/repo --branch=runtime/org.gnome.Platform/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
124
	ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Platform/x86_64/3.16
Alexander Larsson's avatar
Alexander Larsson committed
125
126
127
128
	rm -rf commit
	mkdir -p commit
	tar xf gnome-platform-rpmdb.tar.gz -C commit
	ostree commit --repo=release/repo --branch=runtime/org.gnome.Platform.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
129
130
	ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Platform.Var/x86_64/3.16
	ostree summary -u --repo=release/repo
Alexander Larsson's avatar
Alexander Larsson committed
131
132
133
134
135
136

release-commit-sdk: release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
	rm -rf commit
	mkdir -p commit
	tar xf gnome-sdk.tar.gz -C commit
	ostree commit --repo=release/repo --branch=runtime/org.gnome.Sdk/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
137
	ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Sdk/x86_64/3.16
Alexander Larsson's avatar
Alexander Larsson committed
138
139
140
141
	rm -rf commit
	mkdir -p commit
	tar xf gnome-sdk-rpmdb.tar.gz -C commit
	ostree commit --repo=release/repo --branch=runtime/org.gnome.Sdk.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
142
143
144
	ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Sdk.Var/x86_64/3.16
	ostree summary -u --repo=release/repo

Alexander Larsson's avatar
Alexander Larsson committed
145
146
147
148

release-commit: release-commit-sdk release-commit-platform


149

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