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

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

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

$(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz images:
Alexander Larsson's avatar
Alexander Larsson committed
14
15
16
17
18
	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;)
19
20
	mkdir -p yocto-build/$(ARCH)
	./gnome-sdk-build-yocto ${srcdir}/gnome-continuous-yocto ${builddir}/yocto-build/ $(ARCH)
Alexander Larsson's avatar
Alexander Larsson committed
21
22
23
24

NULL=

PACKAGES = \
25
	freedesktop-platform-base freedesktop-sdk-base \
Alexander Larsson's avatar
Alexander Larsson committed
26
27
28
29
30
31
32
33
34
35
36
	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 \
37
	libXfixes libXext libXft libXi libXinerama libICE libSM libXpm libXrandr libXtst libXt libXScrnSaver \
Alexander Larsson's avatar
Alexander Larsson committed
38
	libXv libXvMC libXxf86vm libXdamage libXcursor libXcomposite libxkbfile libxshmfence \
Alexander Larsson's avatar
Alexander Larsson committed
39
	xkeyboard-config libxkbcommon \
40
	SDL2 SDL2_image SDL2_net SDL2_ttf SDL2_mixer \
Alexander Larsson's avatar
Alexander Larsson committed
41
	dbus cairo dbus-glib \
42
	libpciaccess libdrm llvm mesa libepoxy wayland \
Alexander Larsson's avatar
Alexander Larsson committed
43
	pulseaudio \
44
	freedesktop-platform freedesktop-sdk \
Alexander Larsson's avatar
Alexander Larsson committed
45
	graphite2 harfbuzz libdatrie libthai pango atk at-spi2-core at-spi2-atk gdk-pixbuf2 gtk3 \
46
	libsecret \
Alexander Larsson's avatar
Alexander Larsson committed
47
	itstool yelp-xsl yelp-tools \
Alexander Larsson's avatar
Alexander Larsson committed
48
	hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
Alexander Larsson's avatar
Alexander Larsson committed
49
	gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
Alexander Larsson's avatar
Alexander Larsson committed
50
	gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
Alexander Larsson's avatar
Add gjs    
Alexander Larsson committed
51
	dconf gvfs desktop-file-utils json-glib libnotify vte mozjs24 gjs \
52
	gstreamer1 python3-cairo pygobject3 \
Alexander Larsson's avatar
Alexander Larsson committed
53
	cogl clutter clutter-gtk webkitgtk4 \
54
	aspell hunspell-en hunspell enchant \
Alexander Larsson's avatar
Alexander Larsson committed
55
	zenity \
Alexander Larsson's avatar
Alexander Larsson committed
56
57
	$(NULL)

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

deps: rpm-dependencies.P

62
63
64
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
65

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

73
74
75
76
77
78
79
freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz: $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
	./build.sh smart install -y  $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
	rm -rf freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
	tar --transform 's,^root/usr,files,S' -czf freedesktop-sdk.tar.gz root/usr --owner=root
	tar --transform 's,^var,files,S' -czf freedesktop-sdk-rpmdb.tar.gz var/lib/rpm --owner=root

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

82
83
84
85
86
$(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
87
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
88
	./build.sh rpmbuild -ba $(SPECS)/freedesktop-platform-base.spec
89

90
freedesktop-sdk-base: $(NOARCH)/freedesktop-sdk-base-0.1-1.sdk.noarch.rpm
91

92
93
94
95
96
97
98
99
100
101
102
103
freedesktop-platform-packages: $(NOARCH)/freedesktop-platform-0.1-1.sdk.noarch.rpm $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm setup.sh build.sh
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
	rm -f freedesktop-platform-packages
	./build.sh ./list_packages.sh freedesktop-platform > freedesktop-platform-packages

freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz: freedesktop-platform-packages $(NOARCH)/freedesktop-platform-0.1-1.sdk.noarch.rpm setup.sh build.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
	-echo building freedesktop-platform
	./setup_root.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
	./build.sh rpm -Uvh `cat freedesktop-platform-packages`
	tar --transform 's,^root/usr,files,S' -czf freedesktop-platform.tar.gz root/usr --owner=root
	tar --transform 's,^var,files,S' -czf freedesktop-platform-rpmdb.tar.gz var/lib/rpm --owner=root

104
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
105
	./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
106
	rm -f gnome-platform-packages
107
	./build.sh ./list_packages.sh gnome-platform > gnome-platform-packages
108

Alexander Larsson's avatar
Alexander Larsson committed
109
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
110
111
112
	-echo building gnome-platform
	./setup_root.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
	./build.sh rpm -Uvh `cat gnome-platform-packages`
113
	tar --transform 's,^root/usr,files,S' -czf gnome-platform.tar.gz root/usr --owner=root
Alexander Larsson's avatar
Alexander Larsson committed
114
	tar --transform 's,^var,files,S' -czf gnome-platform-rpmdb.tar.gz var/lib/rpm --owner=root
115
116
117
118

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

119
120
121
122
123
124
commit-freedesktop-platform: repository freedesktop-platform.tar.gz  freedesktop-platform-rpmdb.tar.gz
	./commit.sh repository freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz metadata.freedesktop-platform org.freedesktop.Platform $(ARCH) $(FREEDESKTOP_VERSION)

commit-freedesktop-sdk: repository freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
	./commit.sh repository freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz metadata.freedesktop-sdk org.freedesktop.Sdk $(ARCH) $(FREEDESKTOP_VERSION)

Alexander Larsson's avatar
Alexander Larsson committed
125
commit-platform: repository gnome-platform.tar.gz  gnome-platform-rpmdb.tar.gz
126
	./commit.sh repository gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(GNOME_VERSION)
127

Alexander Larsson's avatar
Alexander Larsson committed
128
commit-sdk: repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
129
	./commit.sh repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(GNOME_VERSION)
130

131
commit-gnome: commit-sdk commit-platform
Alexander Larsson's avatar
Alexander Larsson committed
132
	echo done
133

134
135
136
137
138
139
commit-freedesktop: commit-freedesktop-sdk commit-freedesktop-platform
	echo done

commit: commit-gnome commit-freedesktop
	echo done

140
141
142
143
release/repo:
	ostree  init --mode=archive-z2 --repo=release/repo

release-commit-freedesktop-platform: release/repo freedesktop-platform.tar.gz  freedesktop-platform-rpmdb.tar.gz
144
145
	./commit.sh release/repo freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz metadata.freedesktop-platform org.freedesktop.Platform $(ARCH) $(FREEDESKTOP_VERSION)

146
release-commit-freedesktop-sdk: release/repo freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
147
148
	./commit.sh release/repo freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz metadata.freedesktop-sdk org.freedesktop.Sdk $(ARCH) $(FREEDESKTOP_VERSION)

Alexander Larsson's avatar
Alexander Larsson committed
149
release-commit-platform: release/repo gnome-platform.tar.gz  gnome-platform-rpmdb.tar.gz
150
	./commit.sh release/repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(GNOME_VERSION)
Alexander Larsson's avatar
Alexander Larsson committed
151
152

release-commit-sdk: release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
153
154
155
156
	./commit.sh release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(GNOME_VERSION)

release-commit-gnome: release-commit-sdk release-commit-platform
	echo done
157

158
159
release-commit-freedesktop: release-commit-freedesktop-sdk release-commit-freedesktop-platform
	echo done
Alexander Larsson's avatar
Alexander Larsson committed
160

161
release-commit: release-commit-gnome release-commit-freedesktop
162
	echo done
163

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