source: trunk/make/sundtek/sundtek.mk @ 14165

Letzte Änderung dieser Datei seit 14165 war 14165, erstellt von er13 vor 8 Monaten

sundtek:

  • bump version to 170310.204343, compile-tested only
  • keep 130210.134617 version as fallback for boxes with older kernel version (⇐2.6.19)
  • based on this post in IPPF
Dateigröße: 1.7 KB
Zeile 
1$(call PKG_INIT_BIN,$(if $(FREETZ_PACKAGE_SUNDTEK_VERSION_2013),130210.134617,170310.204343))
2$(PKG)_SOURCE:=$(pkg)_installer_$($(PKG)_VERSION).sh
3$(PKG)_SOURCE_MD5_130210.134617:=81451e57207ad2d3e8c6e148be110040
4$(PKG)_SOURCE_MD5_170310.204343:=f3001a7a45e558aab2e98e7b3a84ff6d
5$(PKG)_SOURCE_MD5:=$($(PKG)_SOURCE_MD5_$($(PKG)_VERSION))
6$(PKG)_SITE:=http://www.sundtek.de/media
7
8$(PKG)_STARTLEVEL=90 # before rrdstats
9
10$(PKG)_BINARIES            := mediasrv mediaclient
11$(PKG)_BINARIES_BUILD_DIR  := $($(PKG)_BINARIES:%=$($(PKG)_DIR)/opt/bin/%)
12$(PKG)_BINARIES_TARGET_DIR := $($(PKG)_BINARIES:%=$($(PKG)_DEST_DIR)/usr/bin/sundtek-%)
13
14$(PKG)_LIBS                := libmediaclient.so
15$(PKG)_LIBS_BUILD_DIR      := $($(PKG)_LIBS:%=$($(PKG)_DIR)/opt/lib/%)
16$(PKG)_LIBS_TARGET_DIR     := $($(PKG)_LIBS:lib%=$($(PKG)_DEST_DIR)/usr/lib/libsundtek%)
17
18$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SUNDTEK_VERSION_2013
19$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SUNDTEK_VERSION_2017
20
21$(PKG)_BUILD_PREREQ += dd
22
23define $(PKG)_CUSTOM_UNPACK
24    mkdir -p $($(PKG)_DIR); \
25    payload="$$$$(cat $(1) | sed -rn 's!^_SIZE=(.*)!\1!p')"; \
26    dd if=$(1) skip=1 bs=$$$$payload | \
27    $(TAR) Oxz $(if $(FREETZ_TARGET_ARCH_BE),openwrtmipsr2,mipselbcm)/installer.tar.gz | \
28    $(TAR) xz -C $($(PKG)_DIR)
29endef
30
31$(PKG_SOURCE_DOWNLOAD)
32$(PKG_UNPACKED)
33$(PKG_CONFIGURED_NOP)
34
35$($(PKG)_BINARIES_BUILD_DIR) $($(PKG)_LIBS_BUILD_DIR): $($(PKG)_DIR)/.configured
36    @chmod 755 $@
37
38$($(PKG)_BINARIES_TARGET_DIR): $($(PKG)_DEST_DIR)/usr/bin/sundtek-%: $($(PKG)_DIR)/opt/bin/%
39    $(INSTALL_BINARY_STRIP)
40
41$($(PKG)_LIBS_TARGET_DIR): $($(PKG)_DEST_DIR)/usr/lib/libsundtek%: $($(PKG)_DIR)/opt/lib/lib%
42    $(INSTALL_BINARY_STRIP)
43
44$(pkg):
45
46$(pkg)-precompiled: $($(PKG)_BINARIES_TARGET_DIR) $($(PKG)_LIBS_TARGET_DIR)
47
48$(pkg)-clean:
49
50$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.