blob: c662e4aceb2674e82b575dccebeb5318a2ba15fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
PKG.in.abs/ = $(abspath $(PKG.in/))/
PKG.out.abs/ = $(abspath $(PKG.out/))/
STAGE.out.abs/ = $(abspath $(STAGE.out/))/
STAGE.out.src.abs/ = $(abspath $(STAGE.out.src/))/
PKG.deb.machine = `dpkg --print-architecture`
PKG.rpm.machine = `rpm -E "%_target_cpu"`
PKG.release = $(HB.repo.rev)
PKG.rpm.dist = `rpm -E "%dist"`
ifeq ($(HB.repo.tag),)
tag = 0.0.0
endif
ifeq ($(HB.repo.type),release)
PKG.rpm.hb.version = $(tag)
else ifeq ($(HB.repo.branch),)
PKG.rpm.hb.version = $(tag).$(HB.repo.shorthash)
else
PKG.rpm.hb.version = $(tag).$(HB.repo.shorthash).$(HB.repo.branch)
endif
ifneq ($(PGP_ID),)
PGPSIGN = --gpg-sign=$(PGP_ID)
endif
###############################################################################
PKG.cli.tar = $(PKG.out.abs/)$(HB.name)-$(HB.version)-$(HOST.machine)_CLI.tar.gz
STAGE.out.cli/ = $(STAGE.out.abs/)cli/
###############################################################################
PKG.rpm.basename = $(HB.name.lower)-$(PKG.rpm.hb.version)
PKG.rpm.src.tar.bz2 = $(STAGE.out.src.abs/)rpm/$(PKG.rpm.basename).tar.bz2
STAGE.out.rpm.src/ = $(STAGE.out.src.abs/)rpm/
PKG.debian = $(PKG.in.abs/)linux/debian
PKG.cli.deb = $(PKG.out.abs/)$(HB.name)-$(HB.debversion)-Ubuntu_CLI_$(HOST.machine).deb
PKG.gui.deb = $(PKG.out.abs/)$(HB.name)-$(HB.debversion)-Ubuntu_GUI_$(HOST.machine).deb
PKG.deb.basename = $(HB.name.lower)-$(HB.debversion)
PKG.src.deb.tar = $(HB.name.lower)_$(HB.debversion).tar.gz
PKG.src.deb.stamp = $(STAGE.out.src.abs/).debsrc-$(HB.debversion).stamp
PKG.src.deb = $(PKG.out.abs/)$(HB.name.lower)_$(HB.debversion).deb
PKG.cli.tmp.deb = $(PKG.out.abs/)$(HB.name.lower)-cli_$(HB.debversion)_$(PKG.deb.machine).deb
PKG.gui.tmp.deb = $(PKG.out.abs/)$(HB.name.lower)-gtk_$(HB.debversion)_$(PKG.deb.machine).deb
PKG.native.rpm.stamp = $(RPM.out/).rpm.stamp
PKG.rpm.stamp = $(PKG.out.abs/).rpm.stamp
PKG.gui.native.rpm = $(RPM.out/)RPMS/$(PKG.rpm.machine)/$(HB.name.lower)-gui-$(PKG.rpm.hb.version)-$(PKG.release)$(PKG.rpm.dist).$(PKG.rpm.machine).rpm
PKG.cli.native.rpm = $(RPM.out/)RPMS/$(PKG.rpm.machine)/$(HB.name.lower)-cli-$(PKG.rpm.hb.version)-$(PKG.release)$(PKG.rpm.dist).$(PKG.rpm.machine).rpm
PKG.cli.rpm = $(PKG.out.abs/)$(HB.name.lower)-cli-$(PKG.rpm.hb.version)-$(PKG.release)$(PKG.rpm.dist).$(PKG.rpm.machine).rpm
PKG.gui.rpm = $(PKG.out.abs/)$(HB.name.lower)-gui-$(PKG.rpm.hb.version)-$(PKG.release)$(PKG.rpm.dist).$(PKG.rpm.machine).rpm
RPM.out = $(STAGE.out.abs/)rpm
RPM.out/ = $(RPM.out)/
RPMROOT.out = $(STAGE.out.abs/)rpmroot
RPMROOT.out/ = $(RPMROOT.out)/
###############################################################################
# Flatpak
###############################################################################
ifeq (1,$(FEATURE.qsv))
FPQSV = -q
endif
ifneq ($(FP_RUNTIME),)
FPRUNTIME = -r $(FP_RUNTIME)
endif
ifeq ($(HB.repo.type),release)
PKG.branch.flatpak = stable
else
PKG.branch.flatpak = development
endif
PKG.plugin.version.flatpak = 1
PKG.flatpak/ = $(PKG.in.abs/)linux/flatpak/
PKG.out.flatpak/ = $(PKG.out.abs/)flatpak/
STAGE.out.flatpak/ = $(STAGE.out.abs/)flatpak/
PKG.repo.flatpak = $(PKG.out.flatpak/)$(HB.name)-Flatpak.repo
PKG.gui.name.flatpak = fr.handbrake.ghb
PKG.gui.manifest.flathub = $(PKG.out.flatpak/)$(PKG.gui.name.flatpak).json
PKG.gui.template.flatpak = $(PKG.flatpak/)$(PKG.gui.name.flatpak).json
PKG.gui.manifest.flatpak = $(STAGE.out.flatpak/)$(PKG.gui.name.flatpak).json
PKG.gui.build.flatpak = $(STAGE.out.flatpak/)$(PKG.gui.name.flatpak)-$(HB.version)-$(HOST.machine).build
PKG.gui.flatpak = $(PKG.out.flatpak/)$(PKG.gui.name.flatpak)-$(HB.version)-$(HOST.machine).flatpak
PKG.cli.name.flatpak = fr.handbrake.HandBrakeCLI
PKG.cli.manifest.flathub = $(PKG.out.flatpak/)$(PKG.cli.name.flatpak).json
PKG.cli.template.flatpak = $(PKG.flatpak/)$(PKG.cli.name.flatpak).json
PKG.cli.manifest.flatpak = $(STAGE.out.flatpak/)$(PKG.cli.name.flatpak).json
PKG.cli.build.flatpak = $(STAGE.out.flatpak/)$(PKG.cli.name.flatpak)-$(HB.version)-$(HOST.machine).build
PKG.cli.flatpak = $(PKG.out.flatpak/)$(PKG.cli.name.flatpak)-$(HB.version)-$(HOST.machine).flatpak
PKG.mediasdk.name.flatpak = fr.handbrake.ghb.Plugin.IntelMediaSDK
PKG.mediasdk.manifest.flathub = $(PKG.out.flatpak/)$(PKG.mediasdk.name.flatpak).json
PKG.mediasdk.metainfo.flatpak = $(PKG.flatpak/)$(PKG.mediasdk.name.flatpak).metainfo.xml
PKG.mediasdk.template.flatpak = $(PKG.flatpak/)$(PKG.mediasdk.name.flatpak).json
PKG.mediasdk.manifest.flatpak = $(STAGE.out.flatpak/)$(PKG.mediasdk.name.flatpak).json
PKG.mediasdk.build.flatpak = $(STAGE.out.flatpak/)$(PKG.mediasdk.name.flatpak)-$(HB.version)-$(HOST.machine).build
PKG.mediasdk.flatpak = $(PKG.out.flatpak/)$(PKG.mediasdk.name.flatpak)-$(HB.version)-$(HOST.machine).flatpak
PKG.all.flatpak = $(PKG.gui.flatpak) $(PKG.cli.flatpak)
ifeq (1,$(FEATURE.qsv))
PKG.all.flatpak += $(PKG.mediasdk.flatpak)
endif
PKG.plugins.flatpak = $(PKG.mediasdk.flatpak)
ifneq ($(HB_URL),)
ifneq ($(HB_SHA256),)
FLATHUB_MANIFEST = $(PKG.gui.manifest.flathub) $(PKG.cli.manifest.flathub)
endif
endif
###############################################################################
BUILD.out += $(PKG.src.tar)
BUILD.out += $(PKG.cli.flatpak)
BUILD.out += $(PKG.gui.flatpak)
BUILD.out += $(PKG.cli.deb)
BUILD.out += $(PKG.gui.deb)
BUILD.out += $(PKG.cli.rpm)
BUILD.out += $(PKG.gui.rpm)
BUILD.out += $(PKG.cli.tar)
|