-
Notifications
You must be signed in to change notification settings - Fork 24
/
openoffice.make
42 lines (31 loc) · 1.18 KB
/
openoffice.make
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
# -*-Makefile-*-
.PHONY: all default rest print-success
.PHONY: nsis openoffice openoffice-installers
default: all
OPENOFFICE_BRANCH="" #master&revision=207309ec6d428c6a6698db061efb670b36d5df5a
OPENOFFICE_REPO_URL=git://anongit.freedesktop.org/git/ooo-build/ooo-build
PLATFORMS=mingw
# derived info
OPENOFFICE_SOURCE_URL=$(OPENOFFICE_REPO_URL)?branch=$(OPENOFFICE_BRANCH)
OPENOFFICE_DIRRED_BRANCH=$(shell $(PYTHON) gub/repository.py --branch-dir '$(OPENOFFICE_SOURCE_URL)')
OPENOFFICE_FLATTENED_BRANCH=$(shell $(PYTHON) gub/repository.py --full-branch-name '$(OPENOFFICE_SOURCE_URL)')
BUILD_PACKAGE='$(OPENOFFICE_SOURCE_URL)'
INSTALL_PACKAGE = openoffice
MAKE += -f openoffice.make
INSTALLER_BUILDER_OPTIONS =\
--branch=ooo-build=$(OPENOFFICE_FLATTENED_BRANCH)
include gub.make
include compilers.make
#all: packages rest
all: openoffice rest
rest: nsis openoffice-installers print-success
#avoid building native BUILD_PLATFORM
openoffice:
$(call INVOKE_GUB,$(PLATFORMS)) openoffice
openoffice-installers:
$(call INVOKE_INSTALLER_BUILDER,$(PLATFORMS)) $(INSTALL_PACKAGE)
nsis:
bin/gub tools::nsis
print-success:
@echo "success!!"
@echo OpenOffice installer in uploads/openoffice*.mingw.exe