Makefile 6.11 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 \
Alexander Larsson's avatar
Alexander Larsson committed
50
	zenity \
Alexander Larsson's avatar
Alexander Larsson committed
51
52
	$(NULL)

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

deps: rpm-dependencies.P

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

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

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

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

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

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

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

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

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

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

commit: commit-sdk commit-platform


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

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
	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

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


141

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