Makefile 6.71 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 \
40
	libpciaccess libdrm llvm 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
	gstreamer1 \
Alexander Larsson's avatar
Alexander Larsson committed
50
	cogl clutter clutter-gtk webkitgtk4 \
51
	aspell hunspell-en hunspell enchant \
Alexander Larsson's avatar
Alexander Larsson committed
52
	zenity \
Alexander Larsson's avatar
Alexander Larsson committed
53
54
	$(NULL)

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

deps: rpm-dependencies.P

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

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

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

72
73
$(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
74
75
	rm -rf packages/gnome-platform
	mkdir -p packages/gnome-platform
76
77
78
	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
79

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

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

87
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
88
89
90
	-echo building gnome-platform
	./setup_root.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
	./build.sh rpm -Uvh `cat gnome-platform-packages`
91
	tar --transform 's,^root/usr,files,S' -czf gnome-platform.tar.gz root/usr --owner=root
Alexander Larsson's avatar
Alexander Larsson committed
92
	tar --transform 's,^var,files,S' -czf gnome-platform-rpmdb.tar.gz var/lib/rpm --owner=root
93
94
95
96

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

Alexander Larsson's avatar
Alexander Larsson committed
97
commit-platform: repository gnome-platform.tar.gz  gnome-platform-rpmdb.tar.gz
98
99
	rm -rf commit
	mkdir -p commit
Alexander Larsson's avatar
Alexander Larsson committed
100
	tar xf gnome-platform.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
101
	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
102
103
104
	rm -rf commit
	mkdir -p commit
	tar xf gnome-platform-rpmdb.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
105
	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
106

Alexander Larsson's avatar
Alexander Larsson committed
107
commit-sdk: repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
108
109
	rm -rf commit
	mkdir -p commit
Alexander Larsson's avatar
Alexander Larsson committed
110
	tar xf gnome-sdk.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
111
	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
112
113
114
	rm -rf commit
	mkdir -p commit
	tar xf gnome-sdk-rpmdb.tar.gz -C commit
Alexander Larsson's avatar
Alexander Larsson committed
115
	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
116
117
118
119

commit: commit-sdk commit-platform


Alexander Larsson's avatar
Alexander Larsson committed
120
121
122
123
124
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
125
	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
126
127
128
129
	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
130
131
	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
132
133
134
135
136
137

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
138
	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
139
140
141
142
	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
143
144
145
	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
146
147
148
149

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


150

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