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

Letzte Änderung dieser Datei seit 14172 war 14172, erstellt von er13 vor 6 Monaten

sundtek:

  • introduce a menuconfig variable for sundtek "arch"
Dateigröße: 1.8 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)_ARCH:=$(or $(call qstrip,$(FREETZ_PACKAGE_SUNDTEK_ARCH)),undefined)
9
10$(PKG)_STARTLEVEL=90 # before rrdstats
11
12$(PKG)_BINARIES            := mediasrv mediaclient
13$(PKG)_BINARIES_BUILD_DIR  := $($(PKG)_BINARIES:%=$($(PKG)_DIR)/opt/bin/%)
14$(PKG)_BINARIES_TARGET_DIR := $($(PKG)_BINARIES:%=$($(PKG)_DEST_DIR)/usr/bin/sundtek-%)
15
16$(PKG)_LIBS                := libmediaclient.so
17$(PKG)_LIBS_BUILD_DIR      := $($(PKG)_LIBS:%=$($(PKG)_DIR)/opt/lib/%)
18$(PKG)_LIBS_TARGET_DIR     := $($(PKG)_LIBS:lib%=$($(PKG)_DEST_DIR)/usr/lib/libsundtek%)
19
20$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SUNDTEK_VERSION_2013
21$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SUNDTEK_VERSION_2017
22
23$(PKG)_BUILD_PREREQ += dd
24
25define $(PKG)_CUSTOM_UNPACK
26    mkdir -p $($(PKG)_DIR); \
27    payload="$$$$(cat $(1) | sed -rn 's!^_SIZE=(.*)!\1!p')"; \
28    dd if=$(1) skip=1 bs=$$$$payload 2>/dev/null | \
29    $(TAR) Oxz $($(PKG)_ARCH)/installer.tar.gz | \
30    $(TAR) xz -C $($(PKG)_DIR)
31endef
32
33$(PKG_SOURCE_DOWNLOAD)
34$(PKG_UNPACKED)
35$(PKG_CONFIGURED_NOP)
36
37$($(PKG)_BINARIES_BUILD_DIR) $($(PKG)_LIBS_BUILD_DIR): $($(PKG)_DIR)/.configured
38    @chmod 755 $@
39
40$($(PKG)_BINARIES_TARGET_DIR): $($(PKG)_DEST_DIR)/usr/bin/sundtek-%: $($(PKG)_DIR)/opt/bin/%
41    $(INSTALL_BINARY_STRIP)
42
43$($(PKG)_LIBS_TARGET_DIR): $($(PKG)_DEST_DIR)/usr/lib/libsundtek%: $($(PKG)_DIR)/opt/lib/lib%
44    $(INSTALL_BINARY_STRIP)
45
46$(pkg):
47
48$(pkg)-precompiled: $($(PKG)_BINARIES_TARGET_DIR) $($(PKG)_LIBS_TARGET_DIR)
49
50$(pkg)-clean:
51
52$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.