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

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

sundtek:

  • use openwrtmipsr3 binaries for uClibc-0.9.33 as pointed out in this post
  • not sure what 3 in openwrtmipsr3 stands for, all binaries are still MIPS32 rel2 version 1 (check with readelf -h binary)
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)_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 2>/dev/null | \
27    $(TAR) Oxz $(if $(FREETZ_TARGET_ARCH_BE),$(if $(FREETZ_TARGET_UCLIBC_0_9_33),openwrtmipsr3,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.