forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspksrc.install-resources.mk
67 lines (47 loc) · 1.38 KB
/
spksrc.install-resources.mk
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
# include this file to install arch independent resources
#
# packages using this have to:
# - implement a custom INSTALL_TARGET to copy the required files to the
# target location under $(STAGING_INSTALL_PREFIX)
# - create a PLIST file to include the target file(s)/folder(s)
# Common makefiles
include ../../mk/spksrc.common.mk
include ../../mk/spksrc.directories.mk
# Configure the included makefiles
URLS = $(PKG_DIST_SITE)/$(PKG_DIST_NAME)
NAME = $(PKG_NAME)
COOKIE_PREFIX = $(PKG_NAME)-
ifneq ($(PKG_DIST_FILE),)
LOCAL_FILE = $(PKG_DIST_FILE)
else
LOCAL_FILE = $(PKG_DIST_NAME)
endif
DIST_FILE = $(DISTRIB_DIR)/$(LOCAL_FILE)
DIST_EXT = $(PKG_EXT)
ifneq ($(ARCH),)
ARCH_SUFFIX = -$(ARCH)-$(TCVERSION)
TC = syno$(ARCH_SUFFIX)
endif
#####
ifneq ($(REQUIRE_KERNEL),)
@$(error install-resources cannot be used when REQUIRE_KERNEL is set)
endif
#####
include ../../mk/spksrc.pre-check.mk
include ../../mk/spksrc.cross-env.mk
include ../../mk/spksrc.download.mk
include ../../mk/spksrc.depend.mk
checksum: download
include ../../mk/spksrc.checksum.mk
extract: checksum depend
include ../../mk/spksrc.extract.mk
patch: extract
include ../../mk/spksrc.patch.mk
install: patch
include ../../mk/spksrc.install.mk
plist: install
include ../../mk/spksrc.plist.mk
all: install plist
### For arch-* and all-<supported|latest>
include ../../mk/spksrc.supported.mk
####