Browse Source

- splitting makefiles

master
vanhofen 3 years ago
parent
commit
9278b8c1fa
  1. 7
      Makefile
  2. 135
      make/host-tools.mk
  3. 7
      make/ni.mk
  4. 93
      make/target-development.mk
  5. 34
      make/target-libs-static.mk
  6. 389
      make/target-libs.mk
  7. 179
      make/target-lua.mk
  8. 283
      make/target-neutrino-plugins.mk
  9. 182
      make/target-tools-unused.mk
  10. 1122
      make/target-tools.mk
  11. 67
      package/autofs/autofs.mk
  12. 35
      package/binutils/binutils.mk
  13. 153
      package/busybox/busybox.mk
  14. 26
      package/bzip2/bzip2.mk
  15. 20
      package/ca-bundle/ca-bundle.mk
  16. 15
      package/channellogos/channellogos.mk
  17. 11
      package/channellogos/logo-addon.mk
  18. 40
      package/cortex-strings/cortex-strings.mk
  19. 35
      package/djmount/djmount.mk
  20. 10
      package/doscam-webif-skin/doscam-webif-skin.mk
  21. 49
      package/dropbear/dropbear.mk
  22. 22
      package/duktape/duktape.mk
  23. 29
      package/dvb-apps/dvb-apps.mk
  24. 91
      package/e2fsprogs/e2fsprogs.mk
  25. 27
      package/fbshot/fbshot.mk
  26. 47
      package/freetype/freetype.mk
  27. 0
      package/freetype/patches/freetype2-config.patch
  28. 0
      package/freetype/patches/freetype2-pkgconf.patch
  29. 0
      package/freetype/patches/freetype2-subpixel.patch
  30. 42
      package/gdb/gdb.mk
  31. 38
      package/gettext/gettext.mk
  32. 23
      package/giflib/giflib.mk
  33. 30
      package/gptfdisk/gptfdisk.mk
  34. 32
      package/graphlcd-base/graphlcd-base.mk
  35. 23
      package/hd-idle/hd-idle.mk
  36. 24
      package/hdparm/hdparm.mk
  37. 25
      package/iozone/iozone.mk
  38. 40
      package/lcd4linux/lcd4linux.mk
  39. 33
      package/libaacs/libaacs.mk
  40. 33
      package/libbdplus/libbdplus.mk
  41. 45
      package/libbluray/libbluray.mk
  42. 29
      package/libdpf/libdpf.mk
  43. 28
      package/libmediainfo/libmediainfo.mk
  44. 32
      package/libsigc/libsigc.mk
  45. 73
      package/libstb-hal/libstb-hal.mk
  46. 28
      package/libzen/libzen.mk
  47. 60
      package/links/links.mk
  48. 31
      package/lua-curl/lua-curl.mk
  49. 25
      package/lua-feedparser/lua-feedparser.mk
  50. 58
      package/lua/lua.mk
  51. 34
      package/luaexpat/luaexpat.mk
  52. 18
      package/luajson/luajson.mk
  53. 54
      package/luaposix/luaposix.mk
  54. 27
      package/mediainfo/mediainfo.mk
  55. 35
      package/minisatip/minisatip.mk
  56. 23
      package/mtools/aio-grab.mk
  57. 45
      package/nano/nano.mk
  58. 23
      package/neutrino-mediathek/neutrino-mediathek.mk
  59. 12
      package/neutrino-plugins/neutrino-plugin.mk
  60. 149
      package/neutrino-plugins/neutrino-plugins.mk
  61. 82
      package/neutrino/neutrino.mk
  62. 18
      package/ofgwrite/ofgwrite.mk
  63. 45
      package/openssh/openssh.mk
  64. 70
      package/openssl/openssl.mk
  65. 20
      package/openthreads/openthreads.mk
  66. 26
      package/rtmpdump/rtmpdump.mk
  67. 8
      package/samba/samba.mk
  68. 70
      package/samba33/samba33.mk
  69. 68
      package/samba36/samba36.mk
  70. 24
      package/strace/strace.mk
  71. 30
      package/streamripper/streamripper.mk
  72. 48
      package/sysvinit/sysvinit.mk
  73. 48
      package/tzdata/tzdata.mk
  74. 26
      package/u-boot/u-boot.mk
  75. 32
      package/usbutils/usbutils.mk
  76. 39
      package/ushare/ushare.mk
  77. 34
      package/valgrind/valgrind.mk
  78. 35
      package/vsftpd/vsftpd.mk
  79. 31
      package/wpa_supplicant/wpa_supplicant.mk
  80. 51
      package/xupnpd/xupnpd.mk
  81. 27
      package/zic/zic.mk
  82. 33
      package/zlib/zlib.mk

7
Makefile

@ -216,19 +216,12 @@ include make/flash-updates.mk
include make/flash-images.mk include make/flash-images.mk
include make/linux-kernel.mk include make/linux-kernel.mk
include make/linux-drivers.mk include make/linux-drivers.mk
include make/target-neutrino.mk
include make/target-neutrino-plugins.mk
include make/target-blobs.mk include make/target-blobs.mk
include make/target-development.mk
include make/target-ffmpeg$(if $(filter $(BOXTYPE),coolstream),-coolstream).mk include make/target-ffmpeg$(if $(filter $(BOXTYPE),coolstream),-coolstream).mk
include make/target-files.mk include make/target-files.mk
include make/target-libs.mk
include make/target-libs-static.mk include make/target-libs-static.mk
include make/target-lua.mk
include make/target-rootfs.mk include make/target-rootfs.mk
include make/target-scripts.mk include make/target-scripts.mk
include make/target-tools.mk
include make/target-tools-unused.mk
include make/host-tools.mk include make/host-tools.mk
include $(sort $(wildcard package/*/*.mk)) include $(sort $(wildcard package/*/*.mk))

135
make/host-tools.mk

@ -33,97 +33,6 @@ $(PKG_CONFIG): $(PKG_CONFIG_DEPENDENCIES) | $(HOST_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HOST_U_BOOT_VERSION = 2018.09
HOST_U_BOOT_DIR = u-boot-$(HOST_U_BOOT_VERSION)
HOST_U_BOOT_SOURCE = u-boot-$(HOST_U_BOOT_VERSION).tar.bz2
HOST_U_BOOT_SITE = ftp://ftp.denx.de/pub/u-boot
$(DL_DIR)/$(HOST_U_BOOT_SOURCE):
$(download) $(HOST_U_BOOT_SITE)/$(HOST_U_BOOT_SOURCE)
HOST_MKIMAGE = $(HOST_DIR)/bin/mkimage
host-u-boot: $(DL_DIR)/$(HOST_U_BOOT_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(MAKE) defconfig; \
$(MAKE) silentoldconfig; \
$(MAKE) tools-only
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/tools/mkimage $(HOST_MKIMAGE)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
HOST_ZIC_VERSION = 2020f
HOST_ZIC_DIR = tzcode$(HOST_ZIC_VERSION)
HOST_ZIC_SOURCE = tzcode$(HOST_ZIC_VERSION).tar.gz
HOST_ZIC_SITE = ftp://ftp.iana.org/tz/releases
$(DL_DIR)/$(HOST_ZIC_SOURCE):
$(download) $(HOST_ZIC_SITE)/$(HOST_ZIC_SOURCE)
HOST_ZIC = $(HOST_DIR)/sbin/zic
host-zic: $(DL_DIR)/$(HOST_ZIC_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(MKDIR)/$(PKG_DIR)
$(CHDIR)/$(PKG_DIR); \
tar -xf $(DL_DIR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(MAKE) zic
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/zic $(HOST_ZIC)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
HOST_MTOOLS_VERSION = 4.0.19
HOST_MTOOLS_DIR = mtools-$(HOST_MTOOLS_VERSION)
HOST_MTOOLS_SOURCE = mtools-$(HOST_MTOOLS_VERSION).tar.gz
HOST_MTOOLS_SITE = $(GNU_MIRROR)/mtools
$(DL_DIR)/$(HOST_MTOOLS_SOURCE):
$(download) $(HOST_MTOOLS_SITE)/$(HOST_MTOOLS_SOURCE)
host-mtools: $(DL_DIR)/$(HOST_MTOOLS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(HOST_CONFIGURE);\
$(MAKE1); \
$(MAKE) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
HOST_E2FSPROGS_VERSION = $(E2FSPROGS_VERSION)
HOST_E2FSPROGS_DIR = e2fsprogs-$(HOST_E2FSPROGS_VERSION)
HOST_E2FSPROGS_SOURCE = e2fsprogs-$(HOST_E2FSPROGS_VERSION).tar.gz
HOST_E2FSPROGS_SITE = https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v$(HOST_E2FSPROGS_VERSION)
#$(DL_DIR)/$(HOST_E2FSPROGS_SOURCE):
# $(download) $(HOST_E2FSPROGS_SITE)/$(HOST_E2FSPROGS_SOURCE)
HOST_E2FSPROGS_CONF_OPTS = \
--enable-symlink-install \
--with-crond-dir=no
host-e2fsprogs: $(DL_DIR)/$(HOST_E2FSPROGS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(HOST_CONFIGURE);\
$(MAKE); \
$(MAKE) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
HOST_MESON_VERSION = 0.56.0 HOST_MESON_VERSION = 0.56.0
HOST_MESON_DIR = meson-$(HOST_MESON_VERSION) HOST_MESON_DIR = meson-$(HOST_MESON_VERSION)
HOST_MESON_SOURCE = meson-$(HOST_MESON_VERSION).tar.gz HOST_MESON_SOURCE = meson-$(HOST_MESON_VERSION).tar.gz
@ -237,31 +146,6 @@ host-python3-setuptools: $(HOST_PYTHON3_SETUPTOOLS_DEPENDENCIES) $(DL_DIR)/$(HOS
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
HOST_LUA_VERSION = $(LUA_VERSION)
HOST_LUA_DIR = lua-$(HOST_LUA_VERSION)
HOST_LUA_SOURCE = lua-$(HOST_LUA_VERSION).tar.gz
HOST_LUA_SITE = http://www.lua.org/ftp
#$(DL_DIR)/$(HOST_LUA_SOURCE):
# $(download) $(HOST_LUA_SITE)/$(HOST_LUA_SOURCE)
HOST_LUA_PATCH = lua-01-fix-LUA_ROOT.patch
HOST_LUA_PATCH += lua-01-remove-readline.patch
HOST_LUA = $(HOST_DIR)/bin/lua
host-lua: $(DL_DIR)/$(HOST_LUA_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCH))
$(CHDIR)/$(PKG_DIR); \
$(MAKE) linux; \
$(MAKE) install INSTALL_TOP=$(HOST_DIR) INSTALL_MAN=$(HOST_DIR)/share/man/man1
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
HOST_LUAROCKS_VERSION = 3.1.3 HOST_LUAROCKS_VERSION = 3.1.3
HOST_LUAROCKS_DIR = luarocks-$(HOST_LUAROCKS_VERSION) HOST_LUAROCKS_DIR = luarocks-$(HOST_LUAROCKS_VERSION)
HOST_LUAROCKS_SOURCE = luarocks-$(HOST_LUAROCKS_VERSION).tar.gz HOST_LUAROCKS_SOURCE = luarocks-$(HOST_LUAROCKS_VERSION).tar.gz
@ -314,12 +198,19 @@ CCACHE := $(shell which $(CCACHE) || type -p $(CCACHE) || echo ccache)
CCACHE_DIR = $(HOME)/.ccache-$(call LOWERCASE,$(TARGET_VENDOR))-$(TARGET_ARCH)-$(TARGET_OS)-$(KERNEL_VERSION) CCACHE_DIR = $(HOME)/.ccache-$(call LOWERCASE,$(TARGET_VENDOR))-$(TARGET_ARCH)-$(TARGET_OS)-$(KERNEL_VERSION)
export CCACHE_DIR export CCACHE_DIR
host-ccache: find-ccache $(CCACHE) | $(HOST_DIR) host-ccache: find-ccache $(CCACHE) | $(HOST_DIR) \
ln -sf $(CCACHE) $(HOST_DIR)/bin/cc $(HOST_DIR)/bin/cc \
ln -sf $(CCACHE) $(HOST_DIR)/bin/gcc $(HOST_DIR)/bin/gcc \
ln -sf $(CCACHE) $(HOST_DIR)/bin/g++ $(HOST_DIR)/bin/g++ \
ln -sf $(CCACHE) $(HOST_DIR)/bin/$(TARGET_CC) $(HOST_DIR)/bin/$(TARGET_CC) \
ln -sf $(CCACHE) $(HOST_DIR)/bin/$(TARGET_CXX) $(HOST_DIR)/bin/$(TARGET_CXX)
$(HOST_DIR)/bin/cc \
$(HOST_DIR)/bin/gcc \
$(HOST_DIR)/bin/g++ \
$(HOST_DIR)/bin/$(TARGET_CC) \
$(HOST_DIR)/bin/$(TARGET_CXX):
ln -sf $(CCACHE) $(@)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

7
make/ni.mk

@ -29,7 +29,10 @@ ni-image:
$(MAKE) kernel $(MAKE) kernel
$(MAKE) blobs $(MAKE) blobs
$(MAKE) neutrino $(MAKE) neutrino
make plugins $(MAKE) neutrino-plugins
$(MAKE) neutrino-mediathek
$(MAKE) doscam-webif-skin
$(MAKE) logo-addon
make fbshot make fbshot
$(MAKE) tzdata $(MAKE) tzdata
$(MAKE) smartmontools $(MAKE) smartmontools
@ -58,6 +61,7 @@ ni-image:
$(MAKE) wget $(MAKE) wget
#$(MAKE) streamripper #$(MAKE) streamripper
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2 hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse vuduo)) ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2 hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse vuduo))
$(MAKE) channellogos
$(MAKE) jq $(MAKE) jq
$(MAKE) less $(MAKE) less
$(MAKE) parted $(MAKE) parted
@ -66,6 +70,7 @@ ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2 hd5x hd6x vusolo4k vuduo4k vuduo4ks
$(MAKE) ethtool $(MAKE) ethtool
$(MAKE) f2fs-tools $(MAKE) f2fs-tools
ifneq ($(BOXMODEL),kronos_v2) ifneq ($(BOXMODEL),kronos_v2)
$(MAKE) links
$(MAKE) bash $(MAKE) bash
$(MAKE) iperf $(MAKE) iperf
$(MAKE) minicom $(MAKE) minicom

93
make/target-development.mk

@ -1,93 +0,0 @@
#
# makefile to build development tools
#
# -----------------------------------------------------------------------------
VALGRIND_VERSION = 3.13.0
VALGRIND_DIR = valgrind-$(VALGRIND_VERSION)
VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2
VALGRIND_SITE = ftp://sourceware.org/pub/valgrind
$(DL_DIR)/$(VALGRIND_SOURCE):
$(download) $(VALGRIND_SITE)/$(VALGRIND_SOURCE)
VALGRIND_PATCH = valgrind-fix-build-$(TARGET_CPU).patch
VALGRIND_AUTORECONF = YES
VALGRIND_CONF_OPTS = \
--enable-only32bit \
--datadir=$(REMOVE_datadir)
valgrind: $(DL_DIR)/$(VALGRIND_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCH))
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
make install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_libdir)/valgrind/,*.a *.xml)
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,cg_* callgrind_* ms_print)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
STRACE_VERSION = 5.1
STRACE_DIR = strace-$(STRACE_VERSION)
STRACE_SOURCE = strace-$(STRACE_VERSION).tar.xz
STRACE_SITE = https://strace.io/files/$(STRACE_VERSION)
$(DL_DIR)/$(STRACE_SOURCE):
$(download) $(STRACE_SITE)/$(STRACE_SOURCE)
strace: $(DL_DIR)/$(STRACE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(STRACE_DIR)
$(UNTAR)/$(STRACE_SOURCE)
$(CHDIR)/$(STRACE_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,strace-graph strace-log-merge)
$(REMOVE)/$(STRACE_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
GDB_VERSION = 8.3
GDB_DIR = gdb-$(GDB_VERSION)
GDB_SOURCE = gdb-$(GDB_VERSION).tar.xz
GDB_SITE = https://sourceware.org/pub/gdb/releases
$(DL_DIR)/$(GDB_SOURCE):
$(download) $(GDB_SITE)/$(GDB_SOURCE)
GDB_DEPENDENCIES = zlib ncurses
GDB_CONF_OPTS = \
--infodir=$(REMOVE_infodir) \
--disable-binutils \
--disable-gdbserver \
--disable-gdbtk \
--disable-sim \
--disable-tui \
--disable-werror \
--with-curses \
--with-zlib \
--without-mpfr \
--without-uiout \
--without-x \
--enable-static
gdb: $(GDB_DEPENDENCIES) $(DL_DIR)/$(GDB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(GDB_DIR)
$(UNTAR)/$(GDB_SOURCE)
$(CHDIR)/$(GDB_DIR); \
$(CONFIGURE); \
$(MAKE) all-gdb; \
$(MAKE) install-gdb DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_datadir)/,system-gdbinit)
find $(TARGET_datadir)/gdb/syscalls -type f -not -name 'arm-linux.xml' -not -name 'gdb-syscalls.dtd' -print0 | xargs -0 rm --
$(REMOVE)/$(GDB_DIR)
$(TOUCH)

34
make/target-libs-static.mk

@ -14,38 +14,4 @@ libs-static: $(LIBS-STATIC) | $(TARGET_DIR)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
CORTEX_STRINGS_VERSION = 48fd30c
CORTEX_STRINGS_DIR = cortex-strings-$(CORTEX_STRINGS_VERSION)
CORTEX_STRINGS_SOURCE = cortex-strings-$(CORTEX_STRINGS_VERSION).tar.bz2
CORTEX_STRINGS_SITE = http://git.linaro.org/git-ro/toolchain/cortex-strings.git
$(DL_DIR)/$(CORTEX_STRINGS_SOURCE):
$(GET_GIT_ARCHIVE) $(CORTEX_STRINGS_SITE) $(CORTEX_STRINGS_VERSION) $(@F) $(DL_DIR)
CORTEX_STRINGS_CONF_ENV = \
CFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
CPPFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
CXXFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
LDFLAGS="-Wl,-O1 -L$(TARGET_libdir)"
CORTEX_STRINGS_CONF_OPTS = \
$(TARGET_CONFIGURE_OPTS) \
$(if $(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuultimo4k vuzero4k vuuno4k vuuno4kse),--with-neon,--without-neon) \
--enable-static \
--disable-shared
cortex-strings: $(STATIC_libdir)/libcortex-strings.la
$(STATIC_libdir)/libcortex-strings.la: $(DL_DIR)/$(CORTEX_STRINGS_SOURCE) | $(STATIC_DIR)
$(REMOVE)/$(CORTEX_STRINGS_DIR)
$(UNTAR)/$(CORTEX_STRINGS_SOURCE)
$(CHDIR)/$(CORTEX_STRINGS_DIR); \
./autogen.sh; \
$(CORTEX_STRINGS_CONF_ENV) ./configure $(CORTEX_STRINGS_CONF_OPTS); \
$(MAKE); \
$(MAKE) install DESTDIR=$(STATIC_DIR)
$(REMOVE)/$(CORTEX_STRINGS_DIR)
# -----------------------------------------------------------------------------
PHONY += libs-static PHONY += libs-static
PHONY += cortex-strings

389
make/target-libs.mk

@ -1,389 +0,0 @@
#
# makefile to build system libs
#
# -----------------------------------------------------------------------------
ZLIB_VERSION = 1.2.11
ZLIB_DIR = zlib-$(ZLIB_VERSION)
ZLIB_SOURCE = zlib-$(ZLIB_VERSION).tar.xz
ZLIB_SITE = https://sourceforge.net/projects/libpng/files/zlib/$(ZLIB_VERSION)
$(DL_DIR)/$(ZLIB_SOURCE):
$(download) $(ZLIB_SITE)/$(ZLIB_SOURCE)
ZLIB_CONF_ENV = \
mandir=$(REMOVE_mandir)
ZLIB_CONF_OPTS = \
--prefix=$(prefix) \
--shared \
--uname=Linux
zlib: $(DL_DIR)/$(ZLIB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
./configure $($(PKG)_CONF_OPTS); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
GIFLIB_VERSION = 5.2.1
GIFLIB_DIR = giflib-$(GIFLIB_VERSION)
GIFLIB_SOURCE = giflib-$(GIFLIB_VERSION).tar.gz
GIFLIB_SITE = https://sourceforge.net/projects/giflib/files
$(DL_DIR)/$(GIFLIB_SOURCE):
$(download) $(GIFLIB_SITE)/$(GIFLIB_SOURCE)
giflib: $(DL_DIR)/$(GIFLIB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install-include install-lib DESTDIR=$(TARGET_DIR) PREFIX=$(prefix)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
FREETYPE_VERSION = 2.11.0
FREETYPE_DIR = freetype-$(FREETYPE_VERSION)
FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.xz
FREETYPE_SITE = https://sourceforge.net/projects/freetype/files/freetype2/$(FREETYPE_VERSION)
$(DL_DIR)/$(FREETYPE_SOURCE):
$(download) $(FREETYPE_SITE)/$(FREETYPE_SOURCE)
FREETYPE_DEPENDENCIES = zlib libpng
FREETYPE_CONFIG_SCRIPTS = freetype-config
FREETYPE_CONF_OPTS = \
--enable-shared \
--disable-static \
--enable-freetype-config \
--with-png \
--with-zlib \
--without-harfbuzz \
--without-bzip2
freetype: $(FREETYPE_DEPENDENCIES) $(DL_DIR)/$(FREETYPE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(SED) '/^FONT_MODULES += \(type1\|cid\|pfr\|type42\|pcf\|bdf\|winfonts\|cff\)/d' modules.cfg
$(CHDIR)/$(PKG_DIR)/builds/unix; \
libtoolize --force --copy; \
aclocal -I .; \
autoconf
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
ln -sf freetype2 $(TARGET_includedir)/freetype
$(REWRITE_CONFIG_SCRIPTS)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR) \
$(TARGET_datadir)/aclocal
$(TOUCH)
# -----------------------------------------------------------------------------
OPENSSL_VERSION = 1.0.2u
OPENSSL_DIR = openssl-$(OPENSSL_VERSION)
OPENSSL_SOURCE = openssl-$(OPENSSL_VERSION).tar.gz
OPENSSL_SITE = https://www.openssl.org/source
$(DL_DIR)/$(OPENSSL_SOURCE):
$(download) $(OPENSSL_SITE)/$(OPENSSL_SOURCE)
ifeq ($(TARGET_ARCH),arm)
OPENSSL_TARGET_ARCH = linux-armv4
else ifeq ($(TARGET_ARCH),mips)
OPENSSL_TARGET_ARCH = linux-generic32
endif
OPENSSL_CONF_OPTS = \
--cross-compile-prefix=$(TARGET_CROSS) \
--prefix=$(prefix) \
--openssldir=$(sysconfdir)/ssl
OPENSSL_CONF_OPTS += \
$(OPENSSL_TARGET_ARCH) \
shared \
threads \
no-hw \
no-engine \
no-sse2 \
no-perlasm \
no-tests \
no-fuzz-afl \
no-fuzz-libfuzzer
OPENSSL_CONF_OPTS += \
-DTERMIOS -fomit-frame-pointer \
-DOPENSSL_SMALL_FOOTPRINT \
$(TARGET_CFLAGS) \
$(TARGET_LDFLAGS) \
openssl: $(DL_DIR)/$(OPENSSL_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
./Configure \
$($(PKG)_CONF_OPTS); \
$(SED) 's| build_tests||' Makefile; \
$(SED) 's|^MANDIR=.*|MANDIR=$(REMOVE_mandir)|' Makefile; \
$(SED) 's|^HTMLDIR=.*|HTMLDIR=$(REMOVE_htmldir)|' Makefile; \
$(MAKE) depend; \
$(MAKE); \
$(MAKE) install_sw INSTALL_PREFIX=$(TARGET_DIR)
$(TARGET_RM) $(TARGET_libdir)/engines
$(TARGET_RM) $(TARGET_bindir)/c_rehash
$(TARGET_RM) $(TARGET_sysconfdir)/ssl/misc/{CA.pl,tsget}
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
$(TARGET_RM) $(TARGET_bindir)/openssl
$(TARGET_RM) $(TARGET_sysconfdir)/ssl/misc/{CA.*,c_*}
endif
chmod 0755 $(TARGET_libdir)/lib{crypto,ssl}.so.*
for version in 0.9.7 0.9.8 1.0.2; do \
ln -sf libcrypto.so.1.0.0 $(TARGET_libdir)/libcrypto.so.$$version; \
ln -sf libssl.so.1.0.0 $(TARGET_libdir)/libssl.so.$$version; \
done
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
OPENTHREADS_CONF_OPTS = \
-DCMAKE_SUPPRESS_DEVELOPER_WARNINGS="1" \
-D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE="0" \
-D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE__TRYRUN_OUTPUT="1"
openthreads: $(SOURCE_DIR)/$(NI_OPENTHREADS) | $(TARGET_DIR)
$(REMOVE)/$(NI_OPENTHREADS)
tar -C $(SOURCE_DIR) --exclude-vcs -cp $(NI_OPENTHREADS) | tar -C $(BUILD_DIR) -x
$(CHDIR)/$(NI_OPENTHREADS)/; \
$(CMAKE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(NI_OPENTHREADS)
$(TOUCH)
# -----------------------------------------------------------------------------
LIBDPF_VERSION = git
LIBDPF_DIR = dpf-ax.$(LIBDPF_VERSION)
LIBDPF_SOURCE = dpf-ax.$(LIBDPF_VERSION)
LIBDPF_SITE = $(GITHUB)/MaxWiesel
LIBDPF_DEPENDENCIES = libusb-compat
LIBDPF_MAKE_OPTS = \
CC=$(TARGET_CC) PREFIX=$(TARGET_prefix)
libdpf: $(LIBDPF_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(MAKE1) -C dpflib libdpf.a $($(PKG)_MAKE_OPTS)
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/dpflib/libdpf.a $(TARGET_libdir)/libdpf.a
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/dpflib/dpf.h $(TARGET_includedir)/libdpf/libdpf.h
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/include/spiflash.h $(TARGET_includedir)/libdpf/spiflash.h
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/include/usbuser.h $(TARGET_includedir)/libdpf/usbuser.h
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LIBSIGC_VERSION = 2.10.3
LIBSIGC_DIR = libsigc++-$(LIBSIGC_VERSION)
LIBSIGC_SOURCE = libsigc++-$(LIBSIGC_VERSION).tar.xz
LIBSIGC_SITE = https://download.gnome.org/sources/libsigc++/$(basename $(LIBSIGC_VERSION))
$(DL_DIR)/$(LIBSIGC_SOURCE):
$(download) $(LIBSIGC_SITE)/$(LIBSIGC_SOURCE)
LIBSIGC_CONF_OPTS = \
--disable-benchmark \
--disable-documentation \
--disable-warnings \
--without-boost
libsigc: $(DL_DIR)/$(LIBSIGC_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR); \
cp sigc++config.h $(TARGET_includedir)
ln -sf ./sigc++-2.0/sigc++ $(TARGET_includedir)/sigc++
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LIBBLURAY_VERSION = 0.9.3
LIBBLURAY_DIR = libbluray-$(LIBBLURAY_VERSION)
LIBBLURAY_SOURCE = libbluray-$(LIBBLURAY_VERSION).tar.bz2
LIBBLURAY_SITE = ftp.videolan.org/pub/videolan/libbluray/$(LIBBLURAY_VERSION)
$(DL_DIR)/$(LIBBLURAY_SOURCE):
$(download) $(LIBBLURAY_SITE)/$(LIBBLURAY_SOURCE)
LIBBLURAY_DEPENDENCIES = freetype
ifeq ($(BOXSERIES),hd2)
LIBBLURAY_DEPENDENCIES += libaacs libbdplus
endif
LIBBLURAY_CONF_OPTS = \
--enable-shared \
--disable-static \
--disable-extra-warnings \
--disable-doxygen-doc \
--disable-doxygen-dot \
--disable-doxygen-html \
--disable-doxygen-ps \
--disable-doxygen-pdf \
--disable-examples \
--disable-bdjava \
--without-libxml2 \
--without-fontconfig
libbluray: $(LIBBLURAY_DEPENDENCIES) $(DL_DIR)/$(LIBBLURAY_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LIBAACS_VERSION = 0.9.0
LIBAACS_DIR = libaacs-$(LIBAACS_VERSION)
LIBAACS_SOURCE = libaacs-$(LIBAACS_VERSION).tar.bz2
LIBAACS_SITE = ftp://ftp.videolan.org/pub/videolan/libaacs/$(LIBAACS_VERSION)
$(DL_DIR)/$(LIBAACS_SOURCE):
$(download) $(LIBAACS_SITE)/$(LIBAACS_SOURCE)
LIBAACS_DEPENDENCIES = libgcrypt
LIBAACS_CONF_OPTS = \
--enable-shared \
--disable-static
libaacs: $(LIBAACS_DEPENDENCIES) $(DL_DIR)/$(LIBAACS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(INSTALL) -d $(TARGET_DIR)/.cache/aacs/vuk
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/KEYDB.cfg $(TARGET_DIR)/.config/aacs/KEYDB.cfg
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LIBBDPLUS_VERSION = 0.1.2
LIBBDPLUS_DIR = libbdplus-$(LIBBDPLUS_VERSION)
LIBBDPLUS_SOURCE = libbdplus-$(LIBBDPLUS_VERSION).tar.bz2
LIBBDPLUS_SITE = ftp://ftp.videolan.org/pub/videolan/libbdplus/$(LIBBDPLUS_VERSION)
$(DL_DIR)/$(LIBBDPLUS_SOURCE):
$(download) $(LIBBDPLUS_SITE)/$(LIBBDPLUS_SOURCE)
LIBBDPLUS_DEPENDENCIES = libaacs
LIBBDPLUS_CONF_OPTS = \
--enable-shared \
--disable-static
libbdplus: $(LIBBDPLUS_DEPENDENCIES) $(DL_DIR)/$(LIBBDPLUS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(INSTALL) -d $(TARGET_DIR)/.config/bdplus/vm0
$(INSTALL_COPY) $(PKG_FILES_DIR)/* $(TARGET_DIR)/.config/bdplus/vm0
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
RTMPDUMP_DEPENDENCIES = zlib openssl
RTMPDUMP_MAKE_ENV = \
CROSS_COMPILE=$(TARGET_CROSS) \
XCFLAGS="$(TARGET_CFLAGS)" \
XLDFLAGS="$(TARGET_LDFLAGS)"
RTMPDUMP_MAKE_OPTS = \
prefix=$(prefix) \
mandir=$(REMOVE_mandir)
rtmpdump: $(RTMPDUMP_DEPENDENCIES) $(SOURCE_DIR)/$(NI_RTMPDUMP) | $(TARGET_DIR)
$(REMOVE)/$(NI_RTMPDUMP)
tar -C $(SOURCE_DIR) --exclude-vcs -cp $(NI_RTMPDUMP) | tar -C $(BUILD_DIR) -x
$(CHDIR)/$(NI_RTMPDUMP); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_sbindir)/,rtmpgw rtmpsrv rtmpsuck)
$(REMOVE)/$(NI_RTMPDUMP)
$(TOUCH)
# -----------------------------------------------------------------------------
GRAPHLCD_BASE_VERSION = git
GRAPHLCD_BASE_DIR = graphlcd-base.$(GRAPHLCD_BASE_VERSION)
GRAPHLCD_BASE_SOURCE = graphlcd-base.$(GRAPHLCD_BASE_VERSION)
GRAPHLCD_BASE_SITE = git://projects.vdr-developer.org
GRAPHLCD_BASE_PATCH = graphlcd.patch
GRAPHLCD_BASE_PATCH += 0003-strip-graphlcd-conf.patch
GRAPHLCD_BASE_PATCH += 0004-material-colors.patch
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo4k vuduo4kse vusolo4k vuultimo4k vuuno4kse))
GRAPHLCD_BASE_PATCH += 0005-add-vuplus-driver.patch
endif
GRAPHLCD_BASE_DEPENDENCIES = freetype libiconv libusb
graphlcd-base: $(GRAPHLCD_BASE_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCH))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) PREFIX=$(prefix)
$(TARGET_RM) $(TARGET_sysconfdir)/udev
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

179
make/target-lua.mk

@ -1,179 +0,0 @@
#
# makefile to build lua libs/tools
#
# -----------------------------------------------------------------------------
LUA_ABIVERSION = 5.2
LUA_VERSION = 5.2.4
LUA_DIR = lua-$(LUA_VERSION)
LUA_SOURCE = lua-$(LUA_VERSION).tar.gz
LUA_SITE = https://www.lua.org
$(DL_DIR)/$(LUA_SOURCE):
$(download) $(LUA_SITE)/ftp/$(LUA_SOURCE)
LUA_DEPENDENCIES = ncurses
lua: $(LUA_DEPENDENCIES) $(DL_DIR)/$(LUA_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LUA_DIR)
$(UNTAR)/$(LUA_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(LUA_DIR); \
$(MAKE) linux \
PKG_VERSION=$(LUA_VERSION) \
$(TARGET_MAKE_OPTS) \
AR="$(TARGET_AR) rcu" \
LDFLAGS="$(TARGET_LDFLAGS)" \
; \
$(MAKE) install INSTALL_TOP=$(TARGET_prefix) INSTALL_MAN=$(TARGET_DIR)$(REMOVE_man1dir); \
$(MAKE) pc INSTALL_TOP=$(TARGET_prefix) > $(TARGET_libdir)/pkgconfig/lua.pc
$(TARGET_RM) $(TARGET_bindir)/luac
$(REMOVE)/$(LUA_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LUAEXPAT_VERSION = 1.3.3
LUAEXPAT_DIR = luaexpat-$(LUAEXPAT_VERSION)
LUAEXPAT_SOURCE = luaexpat-$(LUAEXPAT_VERSION).tar.gz
LUAEXPAT_SITE = https://github.com/tomasguisasola/luaexpat/archive
$(DL_DIR)/$(LUAEXPAT_SOURCE):
$(download) $(LUAEXPAT_SITE)/v$(LUAEXPAT_VERSION).tar.gz -O $(@)
LUAEXPAT_DEPENDENCIES = expat lua
LUAEXPAT_MAKE_ENV = \
$(TARGET_CONFIGURE_ENV)
LUAEXPAT_MAKE_OPTS = \
PREFIX=$(TARGET_prefix) \
LUA_SYS_VER=$(LUA_ABIVERSION)
luaexpat: $(LUAEXPAT_DEPENDENCIES) $(DL_DIR)/$(LUAEXPAT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(SED) 's|^EXPAT_INC=.*|EXPAT_INC= $(TARGET_includedir)|' makefile; \
$(SED) 's|^CFLAGS =.*|& -L$(TARGET_libdir)|' makefile; \
$(SED) 's|^CC =.*|CC = $(TARGET_CC)|' makefile; \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LUA_FEEDPARSER_VERSION = 0.71
LUA_FEEDPARSER_DIR = lua-feedparser-$(LUA_FEEDPARSER_VERSION)
LUA_FEEDPARSER_SOURCE = lua-feedparser-$(LUA_FEEDPARSER_VERSION).tar.gz
LUA_FEEDPARSER_SITE = https://github.com/slact/lua-feedparser/archive
$(DL_DIR)/$(LUA_FEEDPARSER_SOURCE):
$(download) $(LUA_FEEDPARSER_SITE)/$(LUA_FEEDPARSER_VERSION).tar.gz -O $(@)
LUA_FEEDPARSER_DEPENDENCIES = luaexpat
lua-feedparser: $(LUA_FEEDPARSER_DEPENDENCIES) $(DL_DIR)/$(LUA_FEEDPARSER_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(SED) 's|^PREFIX =|PREFIX ?=|' Makefile; \
$(MAKE) install PREFIX=$(TARGET_prefix)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LUAJSON_SOURCE = JSON.lua
LUAJSON_SITE = http://regex.info/code
$(DL_DIR)/$(LUAJSON_SOURCE):
$(download) $(LUAJSON_SITE)/$(LUAJSON_SOURCE)
luajson: $(DL_DIR)/$(LUAJSON_SOURCE) | $(TARGET_DIR)
$(CD) $(DL_DIR); \
curl --remote-name --time-cond $(PKG_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) || true
$(INSTALL_DATA) -D $(DL_DIR)/$(PKG_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVERSION)
ln -sf $(PKG_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVERSION)/json.lua
$(TOUCH)
# -----------------------------------------------------------------------------
LUA_CURL_VERSION = git
LUA_CURL_DIR = lua-curlv3.$(LUA_CURL_VERSION)
LUA_CURL_SOURCE = lua-curlv3.$(LUA_CURL_VERSION)
LUA_CURL_SITE = https://github.com/lua-curl/$(LUA_CURL_SOURCE)
LUA_CURL_DEPENDENCIES = libcurl lua
LUA_CURL_MAKE_ENV = \
$(TARGET_CONFIGURE_ENV)
LUA_CURL_MAKE_OPTS = \
LIBDIR=$(TARGET_libdir) \
LUA_INC=$(TARGET_includedir) \
LUA_CMOD=$(libdir)/lua/$(LUA_ABIVERSION) \
LUA_LMOD=$(datadir)/lua/$(LUA_ABIVERSION)
lua-curl: $(LUA_CURL_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LUAPOSIX_VERSION = 31
LUAPOSIX_DIR = luaposix-$(LUAPOSIX_VERSION)
LUAPOSIX_SOURCE = luaposix-$(LUAPOSIX_VERSION).tar.gz
LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive
$(DL_DIR)/$(LUAPOSIX_SOURCE):
$(download) $(LUAPOSIX_SITE)/v$(LUAPOSIX_VERSION).tar.gz -O $(@)
LUAPOSIX_DEPENDENCIES = $(HOST_LUA) lua luaexpat
LUAPOSIX_AUTORECONF = YES
LUAPOSIX_CONF_ENV = \
LUA=$(HOST_LUA)
LUAPOSIX_CONF_OPTS = \
--libdir=$(TARGET_libdir)/lua/$(LUA_ABIVERSION) \
--datadir=$(TARGET_datadir)/lua/$(LUA_ABIVERSION) \
--mandir=$(TARGET_DIR)$(REMOVE_mandir) \
--docdir=$(TARGET_DIR)$(REMOVE_docdir)
GNULIB_VERSION = 20140202
GNULIB_SOURCE = gnulib-$(GNULIB_VERSION)-stable.tar.gz
GNULIB_SITE = http://erislabs.net/ianb/projects/gnulib
$(DL_DIR)/$(GNULIB_SOURCE):
$(download) $(GNULIB_SITE)/$(GNULIB_SOURCE)
SLINGSHOT_VERSION = 6
SLINGSHOT_SOURCE = slingshot-$(SLINGSHOT_VERSION).tar.gz
SLINGSHOT_SITE = https://github.com/gvvaughan/slingshot/archive
$(DL_DIR)/$(SLINGSHOT_SOURCE):
$(download) $(SLINGSHOT_SITE)/v$(SLINGSHOT_VERSION).tar.gz -O $(@)
luaposix: $(LUAPOSIX_DEPENDENCIES) $(DL_DIR)/$(SLINGSHOT_SOURCE) $(DL_DIR)/$(GNULIB_SOURCE) $(DL_DIR)/$(LUAPOSIX_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
tar -C gnulib --strip=1 -xf $(DL_DIR)/$(GNULIB_SOURCE); \
tar -C slingshot --strip=1 -xf $(DL_DIR)/$(SLINGSHOT_SOURCE); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

283
make/target-neutrino-plugins.mk

@ -1,283 +0,0 @@
#
# makefile to build neutrino-plugins
#
# -----------------------------------------------------------------------------
plugins:
$(MAKE) neutrino-plugins
$(MAKE) logo-addon
$(MAKE) neutrino-mediathek
$(MAKE) doscam-webif-skin
ifneq ($(BOXSERIES),hd1)
$(MAKE) channellogos
ifneq ($(BOXMODEL),kronos_v2)
$(MAKE) links
endif
endif
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_OBJ = $(NI_NEUTRINO_PLUGINS)-obj
NEUTRINO_PLUGINS_BUILD_DIR = $(BUILD_DIR)/$(NEUTRINO_PLUGINS_OBJ)
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_DEPENDENCIES =
NEUTRINO_PLUGINS_DEPENDENCIES += ffmpeg
NEUTRINO_PLUGINS_DEPENDENCIES += libcurl
NEUTRINO_PLUGINS_DEPENDENCIES += libpng
NEUTRINO_PLUGINS_DEPENDENCIES += libjpeg-turbo
NEUTRINO_PLUGINS_DEPENDENCIES += giflib
NEUTRINO_PLUGINS_DEPENDENCIES += freetype
NEUTRINO_PLUGINS_DEPENDENCIES += lua-curl
NEUTRINO_PLUGINS_DEPENDENCIES += lua-feedparser
NEUTRINO_PLUGINS_DEPENDENCIES += luaexpat
NEUTRINO_PLUGINS_DEPENDENCIES += luajson
NEUTRINO_PLUGINS_DEPENDENCIES += luaposix
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_CONF_ENV = \
$(TARGET_CONFIGURE_ENV)
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_CONF_OPTS = \
--build=$(GNU_HOST_NAME) \
--host=$(TARGET) \
--target=$(TARGET) \
--prefix=$(prefix) \
--sysconfdir=$(sysconfdir) \
$(if $(findstring 1,$(KBUILD_VERBOSE)),--disable-silent-rules,--enable-silent-rules) \
--enable-maintainer-mode \
\
--with-neutrino-source=$(SOURCE_DIR)/$(NI_NEUTRINO) \
--with-neutrino-build=$(NEUTRINO_BUILD_DIR) \
\
--with-target=cdk \
--with-targetprefix=$(prefix) \
--with-boxtype=$(BOXTYPE)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
NEUTRINO_PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXSERIES)
else
NEUTRINO_PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXMODEL)
endif
NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-logoupdater \
--disable-logoview \
--disable-mountpointmanagement \
--disable-filmon \
--disable-stbup
ifeq ($(BOXTYPE),coolstream)
ifeq ($(BOXSERIES),hd1)
NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-plutotv \
--disable-rakutentv \
--disable-spiegel_tv_doc \
--disable-tierwelt_tv
endif
NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-showiframe \
--disable-stb_startup \
--disable-imgbackup \
--disable-rcu_switcher
endif
# -----------------------------------------------------------------------------
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
NEUTRINO_PLUGINS_BOXMODEL = $(BOXSERIES)
else
NEUTRINO_PLUGINS_BOXMODEL = $(BOXMODEL)
endif
# -----------------------------------------------------------------------------
$(NEUTRINO_PLUGINS_BUILD_DIR)/config.status: $(NEUTRINO_PLUGINS_DEPENDENCIES)
test -d $(NEUTRINO_PLUGINS_BUILD_DIR) || $(INSTALL) -d $(NEUTRINO_PLUGINS_BUILD_DIR)
$(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/autogen.sh
$(CD) $(NEUTRINO_PLUGINS_BUILD_DIR); \
$(NEUTRINO_PLUGINS_CONF_ENV) \
$(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/configure \
$(NEUTRINO_PLUGINS_CONF_OPTS)
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS =
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += emmrd
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += fritzcallmonitor
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += openvpn
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += rcu_switcher
#NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += stbup
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += tuxcald
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += tuxmaild
NEUTRINO_PLUGINS_INIT_SCRIPTS = $(NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS)
NEUTRINO_PLUGINS_INIT_SCRIPTS += turnoff_power
define NEUTRINO_PLUGINS_RUNLEVEL_LINKS_INSTALL
for script in $(NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS); do \
if [ -x $(TARGET_sysconfdir)/init.d/$$script ]; then \
$(UPDATE-RC.D) $$script defaults 80 20; \
fi; \
done
if [ -x $(TARGET_sysconfdir)/init.d/turnoff_power ]; then \
$(UPDATE-RC.D) turnoff_power start 99 0 .; \
fi
endef
define NEUTRINO_PLUGINS_RUNLEVEL_LINKS_UNINSTALL
for script in $(NEUTRINO_PLUGINS_INIT_SCRIPTS); do \
if [ -x $(TARGET_DIR)/etc/init.d/$$script ]; then \
$(REMOVE-RC.D) $$script remove; \
fi; \
done
endef
# -----------------------------------------------------------------------------
neutrino-plugins: neutrino $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR) install DESTDIR=$(TARGET_DIR)
$(NEUTRINO_PLUGINS_RUNLEVEL_LINKS_INSTALL)
$(TOUCH)
# -----------------------------------------------------------------------------
neutrino-plugins-uninstall:
$(NEUTRINO_PLUGINS_RUNLEVEL_LINKS_UNINSTALL)
-make -C $(NEUTRINO_PLUGINS_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR)
neutrino-plugins-distclean:
-make -C $(NEUTRINO_PLUGINS_BUILD_DIR) distclean
neutrino-plugins-clean: neutrino-plugins-uninstall neutrino-plugins-distclean
rm -f $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
rm -f $(DEPS_DIR)/neutrino-plugins
neutrino-plugins-clean-all: neutrino-plugins-clean
rm -rf $(NEUTRINO_PLUGINS_BUILD_DIR)
# -----------------------------------------------------------------------------
# To build single plugins from neutrino-plugins repository call
# make neutrino-plugin-<subdir>; e.g. make neutrino-plugin-tuxwetter
neutrino-plugin-%: $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@))
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@)) install DESTDIR=$(TARGET_DIR)
# -----------------------------------------------------------------------------
channellogos: $(SOURCE_DIR)/$(NI_LOGO_STUFF) $(SHARE_ICONS)
rm -rf $(SHARE_LOGOS)
$(INSTALL) -d $(SHARE_LOGOS)
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logos/* $(SHARE_LOGOS)
$(INSTALL) -d $(SHARE_LOGOS)/events
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logos-events/* $(SHARE_LOGOS)/events
$(CD) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-links; \
./logo-linker.sh logo-links.db $(SHARE_LOGOS)
$(TOUCH)
# -----------------------------------------------------------------------------
logo-addon: $(SOURCE_DIR)/$(NI_LOGO_STUFF) $(SHARE_PLUGINS)
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.sh $(SHARE_PLUGINS)/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.cfg $(SHARE_PLUGINS)/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.png $(SHARE_PLUGINS)/
$(TOUCH)
# -----------------------------------------------------------------------------
doscam-webif-skin:
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/doscam_ni-dark.css $(TARGET_datadir)/doscam/skin/doscam_ni-dark.css
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/IC_doscam_ni.tpl $(TARGET_datadir)/doscam/tpl/IC_doscam_ni.tpl
$(TOUCH)
# -----------------------------------------------------------------------------
NEUTRINO_MEDIATHEK_VERSION = git
NEUTRINO_MEDIATHEK_DIR = mediathek.$(NEUTRINO_MEDIATHEK_VERSION)
NEUTRINO_MEDIATHEK_SOURCE = mediathek.$(NEUTRINO_MEDIATHEK_VERSION)
NEUTRINO_MEDIATHEK_SITE = https://github.com/neutrino-mediathek
neutrino-mediathek: $(SHARE_PLUGINS) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(INSTALL_COPY) plugins/* $(SHARE_PLUGINS)/; \
$(INSTALL_COPY) share/* $(TARGET_datadir)
$(REMOVE)/$(PKG_DIR)
# temporarily use beta-version from our board
rm -rf $(SHARE_PLUGINS)/neutrino-mediathek*
$(INSTALL_COPY) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/plugins/mediathek/* $(SHARE_PLUGINS)/
$(TOUCH)
# -----------------------------------------------------------------------------
LINKS_VERSION = 2.25
LINKS_DIR = links-$(LINKS_VERSION)
LINKS_SOURCE = links-$(LINKS_VERSION).tar.bz2
LINKS_SITE = http://links.twibright.com/download
$(DL_DIR)/$(LINKS_SOURCE):
$(download) $(LINKS_SITE)/$(LINKS_SOURCE)
LINKS_DEPENDENCIES = libpng libjpeg-turbo openssl
LINKS_PATCH = links.patch
LINKS_PATCH += links-ac-prog-cxx.patch
LINKS_PATCH += links-accept_https_play.patch
ifeq ($(BOXTYPE),$(filter $(BOXTYPE),coolstream))
LINKS_PATCH += links-input-nevis_ir.patch
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k))
LINKS_PATCH += links-input-event1.patch
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),h7))
LINKS_PATCH += links-input-event2.patch
endif
LINKS_AUTORECONF = YES
LINKS_CONF_OPTS = \
--enable-graphics \
--with-fb \
--with-libjpeg \
--with-ssl=$(TARGET_DIR) \
--without-atheos \
--without-directfb \
--without-libtiff \
--without-lzma \
--without-pmshell \
--without-svgalib \
--without-x
links: $(LINKS_DEPENDENCIES) $(DL_DIR)/$(LINKS_SOURCE) $(SHARE_PLUGINS) | $(TARGET_DIR)
$(REMOVE)/$(LINKS_DIR)
$(UNTAR)/$(LINKS_SOURCE)
$(CHDIR)/$(LINKS_DIR)/intl; \
$(SED) 's|^T_SAVE_HTML_OPTIONS,.*|T_SAVE_HTML_OPTIONS, "HTML-Optionen speichern",|' german.lng; \
echo "english" > index.txt; \
echo "german" >> index.txt; \
./gen-intl
$(call APPLY_PATCHES,$(LINKS_PATCH))
$(CHDIR)/$(LINKS_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
mv -f $(TARGET_bindir)/links $(SHARE_PLUGINS)/links.so
$(INSTALL_COPY) $(PKG_FILES_DIR)-skel/* $(TARGET_DIR)/
$(REMOVE)/$(LINKS_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
PHONY += plugins
PHONY += neutrino-plugins-uninstall neutrino-plugins-distclean
PHONY += neutrino-plugins-clean neutrino-plugins-clean-all
PHONY += neutrino-plugin-%

182
make/target-tools-unused.mk

@ -1,182 +0,0 @@
#
# makefile to build system tools (currently unused in ni-image)
#
# -----------------------------------------------------------------------------
# usbutils-008 needs udev
USBUTILS_VERSION = 007
USBUTILS_DIR = usbutils-$(USBUTILS_VERSION)
USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.xz
USBUTILS_SITE = $(KERNEL_MIRROR)/linux/utils/usb/usbutils
$(DL_DIR)/$(USBUTILS_SOURCE):
$(download) $(USBUTILS_SITE)/$(USBUTILS_SOURCE)
USBUTILS_DEPENDENCIES = libusb-compat
usbutils: $(USBUTILS_DEPENDENCIES) $(DL_DIR)/$(USBUTILS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(TARGET_bindir)/lsusb.py
$(TARGET_RM) $(TARGET_bindir)/usbhid-dump
$(TARGET_RM) $(TARGET_sbindir)/update-usbids.sh
$(TARGET_RM) $(TARGET_datadir)/pkgconfig
$(TARGET_RM) $(TARGET_datadir)/usb.ids.gz
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
BINUTILS_VERSION = 2.35
BINUTILS_DIR = binutils-$(BINUTILS_VERSION)
BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.bz2
BINUTILS_SITE = $(GNU_MIRROR)/binutils
$(DL_DIR)/$(BINUTILS_SOURCE):
$(download) $(BINUTILS_SITE)/$(BINUTILS_SOURCE)
BINUTILS_CONF_OPTS = \
--disable-multilib \
--disable-werror \
--disable-plugins \
--enable-build-warnings=no \
--disable-sim \
--disable-gdb
BINUTILS_BINARIES = objdump objcopy
binutils: $(DL_DIR)/$(BINUTILS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
for bin in $($(PKG)_BINARIES); do \
$(INSTALL_EXEC) $(BUILD_DIR)/$(PKG_DIR)/binutils/$$bin $(TARGET_bindir)/; \
done
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
BZIP2_VERSION = 1.0.8
BZIP2_DIR = bzip2-$(BZIP2_VERSION)
BZIP2_SOURCE = bzip2-$(BZIP2_VERSION).tar.gz
BZIP2_SITE = https://sourceware.org/pub/bzip2
$(DL_DIR)/$(BZIP2_SOURCE):
$(download) $(BZIP2_SITE)/$(BZIP2_SOURCE)
bzip2: $(DL_DIR)/$(BZIP2_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
mv Makefile-libbz2_so Makefile; \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install PREFIX=$(TARGET_prefix)
$(TARGET_RM) $(TARGET_bindir)/bzip2
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
IOZONE_VERSION = 3_490
IOZONE_DIR = iozone$(IOZONE_VERSION)
IOZONE_SOURCE = iozone$(IOZONE_VERSION).tar
IOZONE_SITE = http://www.iozone.org/src/current
$(DL_DIR)/$(IOZONE_SOURCE):
$(download) $(IOZONE_SITE)/$(IOZONE_SOURCE)
iozone: $(DL_DIR)/$(IOZONE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR)/src/current; \
$(SED) "s/= gcc/= $(TARGET_CC)/" makefile; \
$(SED) "s/= cc/= $(TARGET_CC)/" makefile; \
$(TARGET_CONFIGURE_ENV) \
$(MAKE) linux-arm; \
$(INSTALL_EXEC) -D iozone $(TARGET_bindir)/iozone
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LIBZEN_VERSION = 0.4.38
LIBZEN_DIR = ZenLib
LIBZEN_SOURCE = libzen_$(LIBZEN_VERSION).tar.bz2
LIBZEN_SITE = https://mediaarea.net/download/source/libzen/$(LIBZEN_VERSION)
$(DL_DIR)/$(LIBZEN_SOURCE):
$(download) $(LIBZEN_SITE)/$(LIBZEN_SOURCE)
LIBZEN_DEPENDENCIES = zlib
LIBZEN_AUTORECONF = YES
libzen: $(LIBZEN_DEPENDENCIES) $(DL_DIR)/$(LIBZEN_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR)/Project/GNU/Library; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
LIBMEDIAINFO_VERSION = 20.08
LIBMEDIAINFO_DIR = MediaInfoLib
LIBMEDIAINFO_SOURCE = libmediainfo_$(LIBMEDIAINFO_VERSION).tar.bz2
LIBMEDIAINFO_SITE = https://mediaarea.net/download/source/libmediainfo/$(LIBMEDIAINFO_VERSION)
$(DL_DIR)/$(LIBMEDIAINFO_SOURCE):
$(download) $(LIBMEDIAINFO_SITE)/$(LIBMEDIAINFO_SOURCE)
LIBMEDIAINFO_DEPENDENCIES = libzen
LIBMEDIAINFO_AUTORECONF = YES
libmediainfo: $(LIBMEDIAINFO_DEPENDENCIES) $(DL_DIR)/$(LIBMEDIAINFO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR)/Project/GNU/Library; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
MEDIAINFO_VERSION = 20.08
MEDIAINFO_DIR = MediaInfo
MEDIAINFO_SOURCE = mediainfo_$(MEDIAINFO_VERSION).tar.bz2
MEDIAINFO_SITE = https://mediaarea.net/download/source/mediainfo/$(MEDIAINFO_VERSION)
$(DL_DIR)/$(MEDIAINFO_SOURCE):
$(download) $(MEDIAINFO_SITE)/$(MEDIAINFO_SOURCE)
MEDIAINFO_DEPENDENCIES = libmediainfo
MEDIAINFO_AUTORECONF = YES
mediainfo: $(MEDIAINFO_DEPENDENCIES) $(DL_DIR)/$(MEDIAINFO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(MEDIAINFO_DIR)
$(UNTAR)/$(MEDIAINFO_SOURCE)
$(CHDIR)/$(MEDIAINFO_DIR)/Project/GNU/CLI; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(MEDIAINFO_DIR)
$(TOUCH)

1122
make/target-tools.mk

File diff suppressed because it is too large

67
package/autofs/autofs.mk

@ -0,0 +1,67 @@
################################################################################
#
# autofs
#
################################################################################
AUTOFS_VERSION = 5.1.7
AUTOFS_DIR = autofs-$(AUTOFS_VERSION)
AUTOFS_SOURCE = autofs-$(AUTOFS_VERSION).tar.xz
AUTOFS_SITE = $(KERNEL_MIRROR)/linux/daemons/autofs/v5
$(DL_DIR)/$(AUTOFS_SOURCE):
$(download) $(AUTOFS_SITE)/$(AUTOFS_SOURCE)
# cd package/autofs/patches
# wget -N https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.8/patch_order_5.1.7
# for p in $(cat patch_order_5.1.7); do test -f $p || wget https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.8/$p; done
AUTOFS_PATCH = 0000-force-STRIP-to-emtpy.patch
AUTOFS_PATCH += $(shell cat $(PKG_PATCHES_DIR)/patch_order_$(AUTOFS_VERSION))
AUTOFS_DEPENDENCIES = libtirpc
AUTOFS_AUTORECONF = YES
AUTOFS_CONF_ENV = \
ac_cv_path_E2FSCK=/sbin/fsck \
ac_cv_path_E3FSCK=no \
ac_cv_path_E4FSCK=no \
ac_cv_path_KRB5_CONFIG=no \
ac_cv_path_MODPROBE=/sbin/modprobe \
ac_cv_path_MOUNT=/bin/mount \
ac_cv_path_MOUNT_NFS=/sbin/mount.nfs \
ac_cv_path_UMOUNT=/bin/umount \
ac_cv_linux_procfs=yes
AUTOFS_CONF_OPTS = \
--datarootdir=$(REMOVE_datarootdir) \
--disable-mount-locking \
--enable-ignore-busy \
--without-openldap \
--without-sasl \
--with-path="$(PATH)" \
--with-hesiod=no \
--with-libtirpc \
--with-confdir=/etc \
--with-mapdir=/etc \
--with-fifodir=/var/run \
--with-flagdir=/var/run
AUTOFS_MAKE_ENV = \
DONTSTRIP=1
autofs: $(AUTOFS_DEPENDENCIES) $(DL_DIR)/$(AUTOFS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$($(PKG)_PATCH))
$(CHDIR)/$(PKG_DIR); \
$(SED) "s|nfs/nfs.h|linux/nfs.h|" include/rpc_subs.h; \
$(CONFIGURE); \
$($(PKG)_MAKE_ENV) \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(INSTALL_COPY) $(PKG_FILES_DIR)-skel/* $(TARGET_DIR)/
$(UPDATE-RC.D) autofs defaults 75 25
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

35
package/binutils/binutils.mk

@ -0,0 +1,35 @@
################################################################################
#
# binutils
#
################################################################################
BINUTILS_VERSION = 2.35
BINUTILS_DIR = binutils-$(BINUTILS_VERSION)
BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.bz2
BINUTILS_SITE = $(GNU_MIRROR)/binutils
$(DL_DIR)/$(BINUTILS_SOURCE):
$(download) $(BINUTILS_SITE)/$(BINUTILS_SOURCE)
BINUTILS_CONF_OPTS = \
--disable-multilib \
--disable-werror \
--disable-plugins \
--enable-build-warnings=no \
--disable-sim \
--disable-gdb
BINUTILS_BINARIES = objdump objcopy
binutils: $(DL_DIR)/$(BINUTILS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
for bin in $($(PKG)_BINARIES); do \
$(INSTALL_EXEC) $(BUILD_DIR)/$(PKG_DIR)/binutils/$$bin $(TARGET_bindir)/; \
done
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

153
package/busybox/busybox.mk

@ -0,0 +1,153 @@
################################################################################
#
# busybox
#
################################################################################
BUSYBOX_VERSION = 1.31.1
BUSYBOX_DIR = busybox-$(BUSYBOX_VERSION)
BUSYBOX_SOURCE = busybox-$(BUSYBOX_VERSION).tar.bz2
BUSYBOX_SITE = https://busybox.net/downloads
$(DL_DIR)/$(BUSYBOX_SOURCE):
$(download) $(BUSYBOX_SITE)/$(BUSYBOX_SOURCE)
BUSYBOX_DEPENDENCIES = libtirpc
# Link busybox against libtirpc so that we can leverage its RPC support for NFS
# mounting with BusyBox
BUSYBOX_CFLAGS = $(TARGET_CFLAGS)
BUSYBOX_CFLAGS += "`$(PKG_CONFIG) --cflags libtirpc`"
# Don't use LDFLAGS for -ltirpc, because LDFLAGS is used for the non-final link
# of modules as well.
BUSYBOX_CFLAGS_busybox = "`$(PKG_CONFIG) --libs libtirpc`"
# Allows the buildsystem to tweak CFLAGS
BUSYBOX_MAKE_ENV = \
CFLAGS="$(BUSYBOX_CFLAGS)" \
CFLAGS_busybox="$(BUSYBOX_CFLAGS_busybox)"
BUSYBOX_MAKE_OPTS = \
$(TARGET_MAKE_OPTS) \
CFLAGS_EXTRA="$(TARGET_CFLAGS)" \
EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
CONFIG_PREFIX="$(TARGET_DIR)"
BUSYBOX_BUILD_CONFIG = $(BUILD_DIR)/$(BUSYBOX_DIR)/.config
define BUSYBOX_INSTALL_CONFIG
$(INSTALL_DATA) $(PKG_FILES_DIR)/busybox-minimal.config $(BUSYBOX_BUILD_CONFIG)
$(call KCONFIG_SET_OPT,CONFIG_PREFIX,"$(TARGET_DIR)",$(BUSYBOX_BUILD_CONFIG))
endef
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd2 hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse vuduo))
define BUSYBOX_SET_IPV6
$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_IPV6,$(BUSYBOX_BUILD_CONFIG))
$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_IFUPDOWN_IPV6,$(BUSYBOX_BUILD_CONFIG))
endef
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse vuduo))
define BUSYBOX_SET_SWAP
$(call KCONFIG_ENABLE_OPT,CONFIG_SWAPON,$(BUSYBOX_BUILD_CONFIG))
$(call KCONFIG_ENABLE_OPT,CONFIG_SWAPOFF,$(BUSYBOX_BUILD_CONFIG))
endef
define BUSYBOX_INSTALL_SWAP
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/swap.init $(TARGET_sysconfdir)/init.d/swap
$(UPDATE-RC.D) swap stop 98 0 6 .
endef
define BUSYBOX_SET_HEXDUMP
$(call KCONFIG_ENABLE_OPT,CONFIG_HEXDUMP,$(BUSYBOX_BUILD_CONFIG))
endef
define BUSYBOX_SET_PKILL
$(call KCONFIG_ENABLE_OPT,CONFIG_PKILL,$(BUSYBOX_BUILD_CONFIG))
endef
define BUSYBOX_SET_FBSET
$(call KCONFIG_ENABLE_OPT,CONFIG_FBSET,$(BUSYBOX_BUILD_CONFIG))
$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_FBSET_FANCY,$(BUSYBOX_BUILD_CONFIG))
$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_FBSET_READMODE,$(BUSYBOX_BUILD_CONFIG))
endef
define BUSYBOX_INSTALL_FBSET
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/fb.modes $(TARGET_sysconfdir)/fb.modes
endef
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse vuduo))
define BUSYBOX_SET_START_STOP_DAEMON
$(call KCONFIG_ENABLE_OPT,CONFIG_START_STOP_DAEMON,$(BUSYBOX_BUILD_CONFIG))
$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS,$(BUSYBOX_BUILD_CONFIG))
$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_START_STOP_DAEMON_FANCY,$(BUSYBOX_BUILD_CONFIG))
endef
endif
endif
endif
define BUSYBOX_MODIFY_CONFIG
$(BUSYBOX_SET_IPV6)
$(BUSYBOX_SET_SWAP)
$(BUSYBOX_SET_HEXDUMP)
$(BUSYBOX_SET_PKILL)
$(BUSYBOX_SET_FBSET)
$(BUSYBOX_SET_START_STOP_DAEMON)
endef
define BUSYBOX_ADD_TO_SHELLS
if grep -q 'CONFIG_ASH=y' $(BUSYBOX_BUILD_CONFIG); then \
grep -qsE '^/bin/ash$$' $(TARGET_sysconfdir)/shells \
|| echo "/bin/ash" >> $(TARGET_sysconfdir)/shells; \
fi
if grep -q 'CONFIG_HUSH=y' $(BUSYBOX_BUILD_CONFIG); then \
grep -qsE '^/bin/hush$$' $(TARGET_sysconfdir)/shells \
|| echo "/bin/hush" >> $(TARGET_sysconfdir)/shells; \
fi
if grep -q 'CONFIG_SH_IS_ASH=y\|CONFIG_SH_IS_HUSH=y' $(BUSYBOX_BUILD_CONFIG); then \
grep -qsE '^/bin/sh$$' $(TARGET_sysconfdir)/shells \
|| echo "/bin/sh" >> $(TARGET_sysconfdir)/shells; \
fi
endef
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
define BUSYBOX_INSTALL_LINK_RESOLV_CONF
ln -sf /var/etc/resolv.conf $(TARGET_sysconfdir)/resolv.conf
endef
endif
define BUSYBOX_INSTALL_FILES
$(BUSYBOX_INSTALL_SWAP)
$(BUSYBOX_INSTALL_FBSET)
$(MAKE) ifupdown-scripts
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/udhcpc-default.script $(TARGET_datadir)/udhcpc/default.script
$(BUSYBOX_INSTALL_LINK_RESOLV_CONF)
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/crond.init $(TARGET_sysconfdir)/init.d/crond
$(UPDATE-RC.D) crond defaults 50
$(INSTALL) -d $(TARGET_localstatedir)/spool/cron/crontabs \
$(TARGET_sysconfdir)/cron.{daily,hourly,monthly,weekly}
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/inetd.init $(TARGET_sysconfdir)/init.d/inetd
$(UPDATE-RC.D) inetd defaults 50
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/inetd.conf $(TARGET_sysconfdir)/inetd.conf
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/mdev.init $(TARGET_sysconfdir)/init.d/mdev
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/syslogd.init $(TARGET_sysconfdir)/init.d/syslogd
$(UPDATE-RC.D) syslogd stop 98 0 6 .
endef
busybox: $(BUSYBOX_DEPENDENCIES) $(DL_DIR)/$(BUSYBOX_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$($(PKG)_INSTALL_CONFIG)
$($(PKG)_MODIFY_CONFIG)
$(CHDIR)/$(PKG_DIR); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) busybox; \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install-noclobber
$($(PKG)_ADD_TO_SHELLS)
$($(PKG)_INSTALL_FILES)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

26
package/bzip2/bzip2.mk

@ -0,0 +1,26 @@
################################################################################
#
# bzip2
#
################################################################################
BZIP2_VERSION = 1.0.8
BZIP2_DIR = bzip2-$(BZIP2_VERSION)
BZIP2_SOURCE = bzip2-$(BZIP2_VERSION).tar.gz
BZIP2_SITE = https://sourceware.org/pub/bzip2
$(DL_DIR)/$(BZIP2_SOURCE):
$(download) $(BZIP2_SITE)/$(BZIP2_SOURCE)
bzip2: $(DL_DIR)/$(BZIP2_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
mv Makefile-libbz2_so Makefile; \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install PREFIX=$(TARGET_prefix)
$(TARGET_RM) $(TARGET_bindir)/bzip2
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

20
package/ca-bundle/ca-bundle.mk

@ -0,0 +1,20 @@
################################################################################
#
# ca-bundle
#
################################################################################
CA_BUNDLE_SOURCE = cacert.pem
CA_BUNDLE_SITE = https://curl.se/ca
$(DL_DIR)/$(CA_BUNDLE_SOURCE):
$(download) $(CA_BUNDLE_SITE)/$(CA_BUNDLE_SOURCE)
CA_BUNDLE_DIR = /etc/ssl/certs
CA_BUNDLE_CRT = ca-certificates.crt
ca-bundle: $(DL_DIR)/$(CA_BUNDLE_SOURCE) | $(TARGET_DIR)
$(CD) $(DL_DIR); \
curl --remote-name --remote-time -z $(PKG_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) || true
$(INSTALL_DATA) -D $(DL_DIR)/$(PKG_SOURCE) $(TARGET_DIR)/$(CA_BUNDLE_DIR)/$(CA_BUNDLE_CRT)
$(TOUCH)

15
package/channellogos/channellogos.mk

@ -0,0 +1,15 @@
################################################################################
#
# channellogos
#
################################################################################
channellogos: $(SOURCE_DIR)/$(NI_LOGO_STUFF) $(SHARE_ICONS)
rm -rf $(SHARE_LOGOS)
$(INSTALL) -d $(SHARE_LOGOS)
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logos/* $(SHARE_LOGOS)
$(INSTALL) -d $(SHARE_LOGOS)/events
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logos-events/* $(SHARE_LOGOS)/events
$(CD) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-links; \
./logo-linker.sh logo-links.db $(SHARE_LOGOS)
$(TOUCH)

11
package/channellogos/logo-addon.mk

@ -0,0 +1,11 @@
################################################################################
#
# logo-addon
#
################################################################################
logo-addon: $(SOURCE_DIR)/$(NI_LOGO_STUFF) $(SHARE_PLUGINS)
$(INSTALL_EXEC) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.sh $(SHARE_PLUGINS)/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.cfg $(SHARE_PLUGINS)/
$(INSTALL_DATA) $(SOURCE_DIR)/$(NI_LOGO_STUFF)/logo-addon/*.png $(SHARE_PLUGINS)/
$(TOUCH)

40
package/cortex-strings/cortex-strings.mk

@ -0,0 +1,40 @@
################################################################################
#
# cortex-strings
#
################################################################################
CORTEX_STRINGS_VERSION = 48fd30c
CORTEX_STRINGS_DIR = cortex-strings-$(CORTEX_STRINGS_VERSION)
CORTEX_STRINGS_SOURCE = cortex-strings-$(CORTEX_STRINGS_VERSION).tar.bz2
CORTEX_STRINGS_SITE = http://git.linaro.org/git-ro/toolchain/cortex-strings.git
$(DL_DIR)/$(CORTEX_STRINGS_SOURCE):
$(GET_GIT_ARCHIVE) $(CORTEX_STRINGS_SITE) $(CORTEX_STRINGS_VERSION) $(@F) $(DL_DIR)
CORTEX_STRINGS_CONF_ENV = \
CFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
CPPFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
CXXFLAGS="-pipe -O2 $(TARGET_DEBUGGING) $(CXX11_ABI) -I$(TARGET_includedir)" \
LDFLAGS="-Wl,-O1 -L$(TARGET_libdir)"
CORTEX_STRINGS_CONF_OPTS = \
$(TARGET_CONFIGURE_OPTS) \
$(if $(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuultimo4k vuzero4k vuuno4k vuuno4kse),--with-neon,--without-neon) \
--enable-static \
--disable-shared
cortex-strings: $(STATIC_libdir)/libcortex-strings.la
$(STATIC_libdir)/libcortex-strings.la: $(DL_DIR)/$(CORTEX_STRINGS_SOURCE) | $(STATIC_DIR)
$(REMOVE)/$(CORTEX_STRINGS_DIR)
$(UNTAR)/$(CORTEX_STRINGS_SOURCE)
$(CHDIR)/$(CORTEX_STRINGS_DIR); \
./autogen.sh; \
$(CORTEX_STRINGS_CONF_ENV) ./configure $(CORTEX_STRINGS_CONF_OPTS); \
$(MAKE); \
$(MAKE) install DESTDIR=$(STATIC_DIR)
$(REMOVE)/$(CORTEX_STRINGS_DIR)
# -----------------------------------------------------------------------------
PHONY += cortex-strings

35
package/djmount/djmount.mk

@ -0,0 +1,35 @@
################################################################################
#
# djmount
#
################################################################################
DJMOUNT_VERSION = 0.71
DJMOUNT_DIR = djmount-$(DJMOUNT_VERSION)
DJMOUNT_SOURCE = djmount-$(DJMOUNT_VERSION).tar.gz
DJMOUNT_SITE = https://sourceforge.net/projects/djmount/files/djmount/$(DJMOUNT_VERSION)
$(DL_DIR)/$(DJMOUNT_SOURCE):
$(download) $(DJMOUNT_SITE)/$(DJMOUNT_SOURCE)
DJMOUNT_DEPENDENCIES = libfuse
DJMOUNT_AUTORECONF = YES
DJMOUNT_CONF_OPTS = \
--with-fuse-prefix=$(TARGET_prefix) \
--disable-debug
djmount: $(DJMOUNT_DEPENDENCIES) $(DL_DIR)/$(DJMOUNT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
touch libupnp/config.aux/config.rpath; \
$(CONFIGURE); \
$(MAKE1); \
$(MAKE1) install DESTDIR=$(TARGET_DIR)
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/djmount.init $(TARGET_sysconfdir)/init.d/djmount
$(UPDATE-RC.D) djmount defaults 75 25
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

10
package/doscam-webif-skin/doscam-webif-skin.mk

@ -0,0 +1,10 @@
################################################################################
#
# doscam-webif-skin
#
################################################################################
doscam-webif-skin:
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/doscam_ni-dark.css $(TARGET_datadir)/doscam/skin/doscam_ni-dark.css
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/IC_doscam_ni.tpl $(TARGET_datadir)/doscam/tpl/IC_doscam_ni.tpl
$(TOUCH)

49
package/dropbear/dropbear.mk

@ -0,0 +1,49 @@
################################################################################
#
# dropbear
#
################################################################################
DROPBEAR_VERSION = 2019.78
DROPBEAR_DIR = dropbear-$(DROPBEAR_VERSION)
DROPBEAR_SOURCE = dropbear-$(DROPBEAR_VERSION).tar.bz2
DROPBEAR_SITE = http://matt.ucc.asn.au/dropbear/releases
$(DL_DIR)/$(DROPBEAR_SOURCE):
$(download) $(DROPBEAR_SITE)/$(DROPBEAR_SOURCE)
DROPBEAR_DEPENDENCIES = zlib
DROPBEAR_CONF_OPTS = \
--disable-lastlog \
--disable-pututxline \
--disable-wtmp \
--disable-wtmpx \
--disable-loginfunc \
--disable-pam \
--disable-harden \
--enable-bundled-libtom
DROPBEAR_MAKE_OPTS = \
PROGRAMS="dropbear dbclient dropbearkey scp"
dropbear: $(DROPBEAR_DEPENDENCIES) $(DL_DIR)/$(DROPBEAR_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
# Ensure that dropbear doesn't use crypt() when it's not available; \
echo '#if !HAVE_CRYPT' >> localoptions.h; \
echo '#define DROPBEAR_SVR_PASSWORD_AUTH 0' >> localoptions.h; \
echo '#endif' >> localoptions.h; \
# disable SMALL_CODE define; \
echo '#define DROPBEAR_SMALL_CODE 0' >> localoptions.h; \
# fix PATH define; \
echo '#define DEFAULT_PATH "/sbin:/bin:/usr/sbin:/usr/bin:/var/bin"' >> localoptions.h; \
$(MAKE) $($(PKG)_MAKE_OPTS) SCPPROGRESS=1; \
$(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
$(INSTALL) -d $(TARGET_sysconfdir)/dropbear
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/dropbear.init $(TARGET_sysconfdir)/init.d/dropbear
$(UPDATE-RC.D) dropbear defaults 75 25
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

22
package/duktape/duktape.mk

@ -0,0 +1,22 @@
################################################################################
#
# duktape
#
################################################################################
DUKTAPE_VERSION = 2.6.0
DUKTAPE_DIR = duktape-$(DUKTAPE_VERSION)
DUKTAPE_SOURCE = duktape-$(DUKTAPE_VERSION).tar.xz
DUKTAPE_SITE = https://github.com/svaarala/duktape/releases/download/v$(DUKTAPE_VERSION)
duktape:
$(call DEPENDENCIES)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call STARTUP)
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$($(PKG)_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE) -f Makefile.sharedlibrary; \
$(MAKE) -f Makefile.sharedlibrary INSTALL_PREFIX=$(TARGET_DIR)/usr install
$(call TARGET_FOLLOWUP)

29
package/dvb-apps/dvb-apps.mk

@ -0,0 +1,29 @@
################################################################################
#
# dvb-apps
#
################################################################################
DVB_APPS_VERSION = git
DVB_APPS_DIR = dvb-apps.$(DVB_APPS_VERSION)
DVB_APPS_SOURCE = dvb-apps.$(DVB_APPS_VERSION)
DVB_APPS_SITE = https://github.com/openpli-arm
DVB_APPS_DEPENDENCIES = kernel-headers libiconv
DVB_APPS_MAKE_OPTS = \
KERNEL_HEADERS=$(KERNEL_HEADERS_DIR) \
enable_shared=no \
PERL5LIB=$(PKG_BUILD_DIR)/util/scan \
dvb-apps: $(DVB_APPS_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) LDLIBS="-liconv" \
$(MAKE) $($(PKG)_MAKE_OPTS); \
$(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

91
package/e2fsprogs/e2fsprogs.mk

@ -0,0 +1,91 @@
################################################################################
#
# e2fsprogs
#
################################################################################
# for coolstream: formatting ext4 failes with newer versions then 1.43.8
E2FSPROGS_VERSION = $(if $(filter $(BOXTYPE),coolstream),1.43.8,1.46.4)
E2FSPROGS_DIR = e2fsprogs-$(E2FSPROGS_VERSION)
E2FSPROGS_SOURCE = e2fsprogs-$(E2FSPROGS_VERSION).tar.gz
E2FSPROGS_SITE = https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v$(E2FSPROGS_VERSION)
$(DL_DIR)/$(E2FSPROGS_SOURCE):
$(download) $(E2FSPROGS_SITE)/$(E2FSPROGS_SOURCE)
# Use libblkid and libuuid from util-linux
E2FSPROGS_DEPENDENCIES = util-linux
#E2FSPROGS_AUTORECONF = YES
E2FSPROGS_CONF_ENV = \
ac_cv_path_LDCONFIG=true
E2FSPROGS_CONF_OPTS = \
--with-root-prefix="$(base_prefix)" \
--libdir=$(libdir) \
--includedir=$(includedir) \
--datarootdir=$(REMOVE_datarootdir) \
--disable-backtrace \
--disable-bmap-stats \
--disable-debugfs \
--disable-defrag \
--disable-e2initrd-helper \
--disable-fuse2fs \
--disable-imager \
--disable-jbd-debug \
--disable-mmp \
--disable-nls \
--disable-profile \
--disable-rpath \
--disable-tdb \
--disable-testio-debug \
--disable-libblkid \
--disable-libuuid \
--disable-uuidd \
--enable-elf-shlibs \
--enable-fsck \
--enable-symlink-build \
--enable-symlink-install \
--enable-verbose-makecmds \
--without-libintl-prefix \
--without-libiconv-prefix \
--with-gnu-ld \
--with-crond-dir=no
e2fsprogs: $(E2FSPROGS_DEPENDENCIES) $(DL_DIR)/$(E2FSPROGS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE1) install install-libs DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_base_sbindir)/,dumpe2fs e2mmpstatus e2undo logsave)
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,chattr compile_et lsattr mk_cmds uuidgen)
$(TARGET_RM) $(addprefix $(TARGET_sbindir)/,e2freefrag e4crypt filefrag)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
HOST_E2FSPROGS_VERSION = $(E2FSPROGS_VERSION)
HOST_E2FSPROGS_DIR = e2fsprogs-$(HOST_E2FSPROGS_VERSION)
HOST_E2FSPROGS_SOURCE = e2fsprogs-$(HOST_E2FSPROGS_VERSION).tar.gz
HOST_E2FSPROGS_SITE = https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/v$(HOST_E2FSPROGS_VERSION)
#$(DL_DIR)/$(HOST_E2FSPROGS_SOURCE):
# $(download) $(HOST_E2FSPROGS_SITE)/$(HOST_E2FSPROGS_SOURCE)
HOST_E2FSPROGS_CONF_OPTS = \
--enable-symlink-install \
--with-crond-dir=no
host-e2fsprogs: $(DL_DIR)/$(HOST_E2FSPROGS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(HOST_CONFIGURE);\
$(MAKE); \
$(MAKE) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

27
package/fbshot/fbshot.mk

@ -0,0 +1,27 @@
################################################################################
#
# fbshot
#
################################################################################
FBSHOT_VERSION = 0.3
FBSHOT_DIR = fbshot-$(FBSHOT_VERSION)
FBSHOT_SOURCE = fbshot-$(FBSHOT_VERSION).tar.gz
FBSHOT_SITE = http://distro.ibiblio.org/amigolinux/download/Utils/fbshot
$(DL_DIR)/$(FBSHOT_SOURCE):
$(download) $(FBSHOT_SITE)/$(FBSHOT_SOURCE)
FBSHOT_DEPENDENCIES = libpng
fbshot: $(FBSHOT_DEPENDENCIES) $(DL_DIR)/$(FBSHOT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(SED) 's| gcc | $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) |' Makefile; \
$(SED) '/strip fbshot/d' Makefile; \
$(MAKE); \
$(INSTALL_EXEC) -D fbshot $(TARGET_bindir)/fbshot
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

47
package/freetype/freetype.mk

@ -0,0 +1,47 @@
################################################################################
#
# freetype
#
################################################################################
FREETYPE_VERSION = 2.11.0
FREETYPE_DIR = freetype-$(FREETYPE_VERSION)
FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.xz
FREETYPE_SITE = https://sourceforge.net/projects/freetype/files/freetype2/$(FREETYPE_VERSION)
$(DL_DIR)/$(FREETYPE_SOURCE):
$(download) $(FREETYPE_SITE)/$(FREETYPE_SOURCE)
FREETYPE_DEPENDENCIES = zlib libpng
FREETYPE_CONFIG_SCRIPTS = freetype-config
FREETYPE_CONF_OPTS = \
--enable-shared \
--disable-static \
--enable-freetype-config \
--with-png \
--with-zlib \
--without-harfbuzz \
--without-bzip2
freetype: $(FREETYPE_DEPENDENCIES) $(DL_DIR)/$(FREETYPE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(SED) '/^FONT_MODULES += \(type1\|cid\|pfr\|type42\|pcf\|bdf\|winfonts\|cff\)/d' modules.cfg
$(CHDIR)/$(PKG_DIR)/builds/unix; \
libtoolize --force --copy; \
aclocal -I .; \
autoconf
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
ln -sf freetype2 $(TARGET_includedir)/freetype
$(REWRITE_CONFIG_SCRIPTS)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR) \
$(TARGET_datadir)/aclocal
$(TOUCH)

0
package/freetype2/patches/freetype2-config.patch → package/freetype/patches/freetype2-config.patch

0
package/freetype2/patches/freetype2-pkgconf.patch → package/freetype/patches/freetype2-pkgconf.patch

0
package/freetype2/patches/freetype2-subpixel.patch → package/freetype/patches/freetype2-subpixel.patch

42
package/gdb/gdb.mk

@ -0,0 +1,42 @@
################################################################################
#
# gdb
#
################################################################################
GDB_VERSION = 8.3
GDB_DIR = gdb-$(GDB_VERSION)
GDB_SOURCE = gdb-$(GDB_VERSION).tar.xz
GDB_SITE = https://sourceware.org/pub/gdb/releases
$(DL_DIR)/$(GDB_SOURCE):
$(download) $(GDB_SITE)/$(GDB_SOURCE)
GDB_DEPENDENCIES = zlib ncurses
GDB_CONF_OPTS = \
--infodir=$(REMOVE_infodir) \
--disable-binutils \
--disable-gdbserver \
--disable-gdbtk \
--disable-sim \
--disable-tui \
--disable-werror \
--with-curses \
--with-zlib \
--without-mpfr \
--without-uiout \
--without-x \
--enable-static
gdb: $(GDB_DEPENDENCIES) $(DL_DIR)/$(GDB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(GDB_DIR)
$(UNTAR)/$(GDB_SOURCE)
$(CHDIR)/$(GDB_DIR); \
$(CONFIGURE); \
$(MAKE) all-gdb; \
$(MAKE) install-gdb DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_datadir)/,system-gdbinit)
find $(TARGET_datadir)/gdb/syscalls -type f -not -name 'arm-linux.xml' -not -name 'gdb-syscalls.dtd' -print0 | xargs -0 rm --
$(REMOVE)/$(GDB_DIR)
$(TOUCH)

38
package/gettext/gettext.mk

@ -0,0 +1,38 @@
################################################################################
#
# gettext
#
################################################################################
GETTEXT_VERSION = 0.19.8.1
GETTEXT_DIR = gettext-$(GETTEXT_VERSION)
GETTEXT_SOURCE = gettext-$(GETTEXT_VERSION).tar.xz
GETTEXT_SITE = $(GNU_MIRROR)/gettext
$(DL_DIR)/$(GETTEXT_SOURCE):
$(download) $(GETTEXT_SITE)/$(GETTEXT_SOURCE)
GETTEXT_AUTORECONF = YES
GETTEXT_CONF_OPTS = \
--bindir=$(REMOVE_bindir) \
--datarootdir=$(REMOVE_datarootdir) \
--disable-libasprintf \
--disable-acl \
--disable-openmp \
--disable-java \
--disable-native-java \
--disable-csharp \
--disable-relocatable \
--without-emacs
gettext: $(DL_DIR)/$(GETTEXT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE) -C gettext-runtime; \
$(MAKE) -C gettext-runtime install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

23
package/giflib/giflib.mk

@ -0,0 +1,23 @@
################################################################################
#
# giflib
#
################################################################################
GIFLIB_VERSION = 5.2.1
GIFLIB_DIR = giflib-$(GIFLIB_VERSION)
GIFLIB_SOURCE = giflib-$(GIFLIB_VERSION).tar.gz
GIFLIB_SITE = https://sourceforge.net/projects/giflib/files
$(DL_DIR)/$(GIFLIB_SOURCE):
$(download) $(GIFLIB_SITE)/$(GIFLIB_SOURCE)
giflib: $(DL_DIR)/$(GIFLIB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install-include install-lib DESTDIR=$(TARGET_DIR) PREFIX=$(prefix)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

30
package/gptfdisk/gptfdisk.mk

@ -0,0 +1,30 @@
################################################################################
#
# gptfdisk
#
################################################################################
GPTFDISK_VERSION = 1.0.8
GPTFDISK_DIR = gptfdisk-$(GPTFDISK_VERSION)
GPTFDISK_SOURCE = gptfdisk-$(GPTFDISK_VERSION).tar.gz
GPTFDISK_SITE = https://sourceforge.net/projects/gptfdisk/files/gptfdisk/$(GPTFDISK_VERSION)
$(DL_DIR)/$(GPTFDISK_SOURCE):
$(download) $(GPTFDISK_SITE)/$(GPTFDISK_SOURCE)
GPTFDISK_DEPENDENCIES = popt e2fsprogs ncurses
GPTFDISK_SBINARIES = sgdisk
gptfdisk: $(GPTFDISK_DEPENDENCIES) $(DL_DIR)/$(GPTFDISK_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE) $($(PKG)_SBINARIES); \
for sbin in $($(PKG)_SBINARIES); do \
$(INSTALL_EXEC) -D $$sbin $(TARGET_sbindir)/$$sbin; \
done
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

32
package/graphlcd-base/graphlcd-base.mk

@ -0,0 +1,32 @@
################################################################################
#
# graphlcd-base
#
################################################################################
GRAPHLCD_BASE_VERSION = git
GRAPHLCD_BASE_DIR = graphlcd-base.$(GRAPHLCD_BASE_VERSION)
GRAPHLCD_BASE_SOURCE = graphlcd-base.$(GRAPHLCD_BASE_VERSION)
GRAPHLCD_BASE_SITE = git://projects.vdr-developer.org
GRAPHLCD_BASE_PATCH = graphlcd.patch
GRAPHLCD_BASE_PATCH += 0003-strip-graphlcd-conf.patch
GRAPHLCD_BASE_PATCH += 0004-material-colors.patch
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo4k vuduo4kse vusolo4k vuultimo4k vuuno4kse))
GRAPHLCD_BASE_PATCH += 0005-add-vuplus-driver.patch
endif
GRAPHLCD_BASE_DEPENDENCIES = freetype libiconv libusb
graphlcd-base: $(GRAPHLCD_BASE_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCH))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) PREFIX=$(prefix)
$(TARGET_RM) $(TARGET_sysconfdir)/udev
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

23
package/hd-idle/hd-idle.mk

@ -0,0 +1,23 @@
################################################################################
#
# hd-idle
#
################################################################################
HD_IDLE_VERSION = 1.05
HD_IDLE_DIR = hd-idle
HD_IDLE_SOURCE = hd-idle-$(HD_IDLE_VERSION).tgz
HD_IDLE_SITE = https://sourceforge.net/projects/hd-idle/files
$(DL_DIR)/$(HD_IDLE_SOURCE):
$(download) $(HD_IDLE_SITE)/$(HD_IDLE_SOURCE)
hd-idle: $(DL_DIR)/$(HD_IDLE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(INSTALL_EXEC) -D hd-idle $(TARGET_sbindir)/hd-idle
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

24
package/hdparm/hdparm.mk

@ -0,0 +1,24 @@
################################################################################
#
# hdparm
#
################################################################################
HDPARM_VERSION = 9.60
HDPARM_DIR = hdparm-$(HDPARM_VERSION)
HDPARM_SOURCE = hdparm-$(HDPARM_VERSION).tar.gz
HDPARM_SITE = https://sourceforge.net/projects/hdparm/files/hdparm
$(DL_DIR)/$(HDPARM_SOURCE):
$(download) $(HDPARM_SITE)/$(HDPARM_SOURCE)
hdparm: $(DL_DIR)/$(HDPARM_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) mandir=$(REMOVE_mandir)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

25
package/iozone/iozone.mk

@ -0,0 +1,25 @@
################################################################################
#
# iozone
#
################################################################################
IOZONE_VERSION = 3_490
IOZONE_DIR = iozone$(IOZONE_VERSION)
IOZONE_SOURCE = iozone$(IOZONE_VERSION).tar
IOZONE_SITE = http://www.iozone.org/src/current
$(DL_DIR)/$(IOZONE_SOURCE):
$(download) $(IOZONE_SITE)/$(IOZONE_SOURCE)
iozone: $(DL_DIR)/$(IOZONE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR)/src/current; \
$(SED) "s/= gcc/= $(TARGET_CC)/" makefile; \
$(SED) "s/= cc/= $(TARGET_CC)/" makefile; \
$(TARGET_CONFIGURE_ENV) \
$(MAKE) linux-arm; \
$(INSTALL_EXEC) -D iozone $(TARGET_bindir)/iozone
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

40
package/lcd4linux/lcd4linux.mk

@ -0,0 +1,40 @@
################################################################################
#
# lcd4linux
#
################################################################################
LCD4LINUX_VERSION = git
LCD4LINUX_DIR = lcd4linux.$(LCD4LINUX_VERSION)
LCD4LINUX_SOURCE = lcd4linux.$(LCD4LINUX_VERSION)
LCD4LINUX_SITE = https://github.com/TangoCash
LCD4LINUX_DEPENDENCIES = ncurses libgd libdpf
LCD4LINUX_DRIVERS = DPF,SamsungSPF,PNG
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vuduo4k vuduo4kse vusolo4k vuultimo4k vuuno4kse))
LCD4LINUX_DRIVERS += ,VUPLUS4K
endif
LCD4LINUX_CONF_OPTS = \
--libdir=$(TARGET_libdir) \
--includedir=$(TARGET_includedir) \
--bindir=$(TARGET_bindir) \
--docdir=$(REMOVE_docdir) \
--with-ncurses=$(TARGET_libdir) \
--with-drivers='$(LCD4LINUX_DRIVERS)' \
--with-plugins='all,!dbus,!mpris_dbus,!asterisk,!isdn,!pop3,!ppp,!seti,!huawei,!imon,!kvv,!sample,!w1retap,!wireless,!xmms,!gps,!mpd,!mysql,!qnaplog,!iconv' \
lcd4linux: $(LCD4LINUX_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE) vcs_version; \
$(MAKE); \
$(MAKE) install
$(INSTALL_COPY) $(PKG_FILES_DIR)-skel/* $(TARGET_DIR)/
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

33
package/libaacs/libaacs.mk

@ -0,0 +1,33 @@
################################################################################
#
# libaacs
#
################################################################################
LIBAACS_VERSION = 0.9.0
LIBAACS_DIR = libaacs-$(LIBAACS_VERSION)
LIBAACS_SOURCE = libaacs-$(LIBAACS_VERSION).tar.bz2
LIBAACS_SITE = ftp://ftp.videolan.org/pub/videolan/libaacs/$(LIBAACS_VERSION)
$(DL_DIR)/$(LIBAACS_SOURCE):
$(download) $(LIBAACS_SITE)/$(LIBAACS_SOURCE)
LIBAACS_DEPENDENCIES = libgcrypt
LIBAACS_CONF_OPTS = \
--enable-shared \
--disable-static
libaacs: $(LIBAACS_DEPENDENCIES) $(DL_DIR)/$(LIBAACS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(INSTALL) -d $(TARGET_DIR)/.cache/aacs/vuk
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/KEYDB.cfg $(TARGET_DIR)/.config/aacs/KEYDB.cfg
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

33
package/libbdplus/libbdplus.mk

@ -0,0 +1,33 @@
################################################################################
#
# libbdplus
#
################################################################################
LIBBDPLUS_VERSION = 0.1.2
LIBBDPLUS_DIR = libbdplus-$(LIBBDPLUS_VERSION)
LIBBDPLUS_SOURCE = libbdplus-$(LIBBDPLUS_VERSION).tar.bz2
LIBBDPLUS_SITE = ftp://ftp.videolan.org/pub/videolan/libbdplus/$(LIBBDPLUS_VERSION)
$(DL_DIR)/$(LIBBDPLUS_SOURCE):
$(download) $(LIBBDPLUS_SITE)/$(LIBBDPLUS_SOURCE)
LIBBDPLUS_DEPENDENCIES = libaacs
LIBBDPLUS_CONF_OPTS = \
--enable-shared \
--disable-static
libbdplus: $(LIBBDPLUS_DEPENDENCIES) $(DL_DIR)/$(LIBBDPLUS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(INSTALL) -d $(TARGET_DIR)/.config/bdplus/vm0
$(INSTALL_COPY) $(PKG_FILES_DIR)/* $(TARGET_DIR)/.config/bdplus/vm0
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

45
package/libbluray/libbluray.mk

@ -0,0 +1,45 @@
################################################################################
#
# libbluray
#
################################################################################
LIBBLURAY_VERSION = 0.9.3
LIBBLURAY_DIR = libbluray-$(LIBBLURAY_VERSION)
LIBBLURAY_SOURCE = libbluray-$(LIBBLURAY_VERSION).tar.bz2
LIBBLURAY_SITE = ftp.videolan.org/pub/videolan/libbluray/$(LIBBLURAY_VERSION)
$(DL_DIR)/$(LIBBLURAY_SOURCE):
$(download) $(LIBBLURAY_SITE)/$(LIBBLURAY_SOURCE)
LIBBLURAY_DEPENDENCIES = freetype
ifeq ($(BOXSERIES),hd2)
LIBBLURAY_DEPENDENCIES += libaacs libbdplus
endif
LIBBLURAY_CONF_OPTS = \
--enable-shared \
--disable-static \
--disable-extra-warnings \
--disable-doxygen-doc \
--disable-doxygen-dot \
--disable-doxygen-html \
--disable-doxygen-ps \
--disable-doxygen-pdf \
--disable-examples \
--disable-bdjava \
--without-libxml2 \
--without-fontconfig
libbluray: $(LIBBLURAY_DEPENDENCIES) $(DL_DIR)/$(LIBBLURAY_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

29
package/libdpf/libdpf.mk

@ -0,0 +1,29 @@
################################################################################
#
# libdpf
#
################################################################################
LIBDPF_VERSION = git
LIBDPF_DIR = dpf-ax.$(LIBDPF_VERSION)
LIBDPF_SOURCE = dpf-ax.$(LIBDPF_VERSION)
LIBDPF_SITE = $(GITHUB)/MaxWiesel
LIBDPF_DEPENDENCIES = libusb-compat
LIBDPF_MAKE_OPTS = \
CC=$(TARGET_CC) PREFIX=$(TARGET_prefix)
libdpf: $(LIBDPF_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(MAKE1) -C dpflib libdpf.a $($(PKG)_MAKE_OPTS)
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/dpflib/libdpf.a $(TARGET_libdir)/libdpf.a
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/dpflib/dpf.h $(TARGET_includedir)/libdpf/libdpf.h
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/include/spiflash.h $(TARGET_includedir)/libdpf/spiflash.h
$(INSTALL_DATA) -D $(PKG_BUILD_DIR)/include/usbuser.h $(TARGET_includedir)/libdpf/usbuser.h
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

28
package/libmediainfo/libmediainfo.mk

@ -0,0 +1,28 @@
################################################################################
#
# libmediainfo
#
################################################################################
LIBMEDIAINFO_VERSION = 20.08
LIBMEDIAINFO_DIR = MediaInfoLib
LIBMEDIAINFO_SOURCE = libmediainfo_$(LIBMEDIAINFO_VERSION).tar.bz2
LIBMEDIAINFO_SITE = https://mediaarea.net/download/source/libmediainfo/$(LIBMEDIAINFO_VERSION)
$(DL_DIR)/$(LIBMEDIAINFO_SOURCE):
$(download) $(LIBMEDIAINFO_SITE)/$(LIBMEDIAINFO_SOURCE)
LIBMEDIAINFO_DEPENDENCIES = libzen
LIBMEDIAINFO_AUTORECONF = YES
libmediainfo: $(LIBMEDIAINFO_DEPENDENCIES) $(DL_DIR)/$(LIBMEDIAINFO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR)/Project/GNU/Library; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

32
package/libsigc/libsigc.mk

@ -0,0 +1,32 @@
################################################################################
#
# libsigc++
#
################################################################################
LIBSIGC_VERSION = 2.10.3
LIBSIGC_DIR = libsigc++-$(LIBSIGC_VERSION)
LIBSIGC_SOURCE = libsigc++-$(LIBSIGC_VERSION).tar.xz
LIBSIGC_SITE = https://download.gnome.org/sources/libsigc++/$(basename $(LIBSIGC_VERSION))
$(DL_DIR)/$(LIBSIGC_SOURCE):
$(download) $(LIBSIGC_SITE)/$(LIBSIGC_SOURCE)
LIBSIGC_CONF_OPTS = \
--disable-benchmark \
--disable-documentation \
--disable-warnings \
--without-boost
libsigc: $(DL_DIR)/$(LIBSIGC_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR); \
cp sigc++config.h $(TARGET_includedir)
ln -sf ./sigc++-2.0/sigc++ $(TARGET_includedir)/sigc++
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

73
package/libstb-hal/libstb-hal.mk

@ -0,0 +1,73 @@
################################################################################
#
# libstb-hal
#
################################################################################
LIBSTB_HAL_OBJ = $(NI_LIBSTB_HAL)-obj
LIBSTB_HAL_BUILD_DIR = $(BUILD_DIR)/$(LIBSTB_HAL_OBJ)
# -----------------------------------------------------------------------------
LIBSTB_HAL_DEPENDENCIES =
LIBSTB_HAL_DEPENDENCIES += ffmpeg
LIBSTB_HAL_DEPENDENCIES += openthreads
# -----------------------------------------------------------------------------
LIBSTB_HAL_CONF_ENV = \
$(NEUTRINO_CONF_ENV)
# -----------------------------------------------------------------------------
LIBSTB_HAL_CONF_OPTS = \
--build=$(GNU_HOST_NAME) \
--host=$(TARGET) \
--target=$(TARGET) \
--prefix=$(prefix) \
$(if $(findstring 1,$(KBUILD_VERBOSE)),--disable-silent-rules,--enable-silent-rules) \
--enable-maintainer-mode \
--enable-shared=no \
\
--with-target=cdk \
--with-targetprefix=$(prefix) \
--with-boxtype=$(BOXTYPE)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
LIBSTB_HAL_CONF_OPTS += --with-boxmodel=$(BOXSERIES)
else
LIBSTB_HAL_CONF_OPTS += --with-boxmodel=$(BOXMODEL)
endif
# -----------------------------------------------------------------------------
$(LIBSTB_HAL_BUILD_DIR)/config.status: $(LIBSTB_HAL_DEPENDENCIES)
test -d $(LIBSTB_HAL_BUILD_DIR) || $(INSTALL) -d $(LIBSTB_HAL_BUILD_DIR)
$(SOURCE_DIR)/$(NI_LIBSTB_HAL)/autogen.sh
$(CD) $(LIBSTB_HAL_BUILD_DIR); \
$(LIBSTB_HAL_CONF_ENV) \
$(SOURCE_DIR)/$(NI_LIBSTB_HAL)/configure \
$(LIBSTB_HAL_CONF_OPTS)
# -----------------------------------------------------------------------------
libstb-hal: $(LIBSTB_HAL_BUILD_DIR)/config.status
$(MAKE) -C $(LIBSTB_HAL_BUILD_DIR)
$(MAKE) -C $(LIBSTB_HAL_BUILD_DIR) install DESTDIR=$(NEUTRINO_INST_DIR)
$(REWRITE_LIBTOOL)
$(TOUCH)
# -----------------------------------------------------------------------------
libstb-hal-uninstall:
-make -C $(LIBSTB_HAL_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR)
libstb-hal-distclean:
-make -C $(LIBSTB_HAL_BUILD_DIR) distclean
libstb-hal-clean: libstb-hal-uninstall libstb-hal-distclean
rm -f $(LIBSTB_HAL_BUILD_DIR)/config.status
rm -f $(DEPS_DIR)/libstb-hal
libstb-hal-clean-all: libstb-hal-clean
rm -rf $(LIBSTB_HAL_BUILD_DIR)

28
package/libzen/libzen.mk

@ -0,0 +1,28 @@
################################################################################
#
# libzen
#
################################################################################
LIBZEN_VERSION = 0.4.38
LIBZEN_DIR = ZenLib
LIBZEN_SOURCE = libzen_$(LIBZEN_VERSION).tar.bz2
LIBZEN_SITE = https://mediaarea.net/download/source/libzen/$(LIBZEN_VERSION)
$(DL_DIR)/$(LIBZEN_SOURCE):
$(download) $(LIBZEN_SITE)/$(LIBZEN_SOURCE)
LIBZEN_DEPENDENCIES = zlib
LIBZEN_AUTORECONF = YES
libzen: $(LIBZEN_DEPENDENCIES) $(DL_DIR)/$(LIBZEN_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR)/Project/GNU/Library; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

60
package/links/links.mk

@ -0,0 +1,60 @@
################################################################################
#
# links
#
################################################################################
LINKS_VERSION = 2.25
LINKS_DIR = links-$(LINKS_VERSION)
LINKS_SOURCE = links-$(LINKS_VERSION).tar.bz2
LINKS_SITE = http://links.twibright.com/download
$(DL_DIR)/$(LINKS_SOURCE):
$(download) $(LINKS_SITE)/$(LINKS_SOURCE)
LINKS_DEPENDENCIES = libpng libjpeg-turbo openssl
LINKS_PATCH = links.patch
LINKS_PATCH += links-ac-prog-cxx.patch
LINKS_PATCH += links-accept_https_play.patch
ifeq ($(BOXTYPE),$(filter $(BOXTYPE),coolstream))
LINKS_PATCH += links-input-nevis_ir.patch
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),hd51 bre2ze4k))
LINKS_PATCH += links-input-event1.patch
else ifeq ($(BOXMODEL),$(filter $(BOXMODEL),h7))
LINKS_PATCH += links-input-event2.patch
endif
LINKS_AUTORECONF = YES
LINKS_CONF_OPTS = \
--enable-graphics \
--with-fb \
--with-libjpeg \
--with-ssl=$(TARGET_DIR) \
--without-atheos \
--without-directfb \
--without-libtiff \
--without-lzma \
--without-pmshell \
--without-svgalib \
--without-x
links: $(LINKS_DEPENDENCIES) $(DL_DIR)/$(LINKS_SOURCE) $(SHARE_PLUGINS) | $(TARGET_DIR)
$(REMOVE)/$(LINKS_DIR)
$(UNTAR)/$(LINKS_SOURCE)
$(CHDIR)/$(LINKS_DIR)/intl; \
$(SED) 's|^T_SAVE_HTML_OPTIONS,.*|T_SAVE_HTML_OPTIONS, "HTML-Optionen speichern",|' german.lng; \
echo "english" > index.txt; \
echo "german" >> index.txt; \
./gen-intl
$(call APPLY_PATCHES,$(LINKS_PATCH))
$(CHDIR)/$(LINKS_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
mv -f $(TARGET_bindir)/links $(SHARE_PLUGINS)/links.so
$(INSTALL_COPY) $(PKG_FILES_DIR)-skel/* $(TARGET_DIR)/
$(REMOVE)/$(LINKS_DIR)
$(TOUCH)

31
package/lua-curl/lua-curl.mk

@ -0,0 +1,31 @@
################################################################################
#
# lua-curl
#
################################################################################
LUA_CURL_VERSION = git
LUA_CURL_DIR = lua-curlv3.$(LUA_CURL_VERSION)
LUA_CURL_SOURCE = lua-curlv3.$(LUA_CURL_VERSION)
LUA_CURL_SITE = https://github.com/lua-curl/$(LUA_CURL_SOURCE)
LUA_CURL_DEPENDENCIES = libcurl lua
LUA_CURL_MAKE_ENV = \
$(TARGET_CONFIGURE_ENV)
LUA_CURL_MAKE_OPTS = \
LIBDIR=$(TARGET_libdir) \
LUA_INC=$(TARGET_includedir) \
LUA_CMOD=$(libdir)/lua/$(LUA_ABIVERSION) \
LUA_LMOD=$(datadir)/lua/$(LUA_ABIVERSION)
lua-curl: $(LUA_CURL_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

25
package/lua-feedparser/lua-feedparser.mk

@ -0,0 +1,25 @@
################################################################################
#
# lua-feedparser
#
################################################################################
LUA_FEEDPARSER_VERSION = 0.71
LUA_FEEDPARSER_DIR = lua-feedparser-$(LUA_FEEDPARSER_VERSION)
LUA_FEEDPARSER_SOURCE = lua-feedparser-$(LUA_FEEDPARSER_VERSION).tar.gz
LUA_FEEDPARSER_SITE = https://github.com/slact/lua-feedparser/archive
$(DL_DIR)/$(LUA_FEEDPARSER_SOURCE):
$(download) $(LUA_FEEDPARSER_SITE)/$(LUA_FEEDPARSER_VERSION).tar.gz -O $(@)
LUA_FEEDPARSER_DEPENDENCIES = luaexpat
lua-feedparser: $(LUA_FEEDPARSER_DEPENDENCIES) $(DL_DIR)/$(LUA_FEEDPARSER_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(SED) 's|^PREFIX =|PREFIX ?=|' Makefile; \
$(MAKE) install PREFIX=$(TARGET_prefix)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

58
package/lua/lua.mk

@ -0,0 +1,58 @@
################################################################################
#
# lua
#
################################################################################
LUA_ABIVERSION = 5.2
LUA_VERSION = 5.2.4
LUA_DIR = lua-$(LUA_VERSION)
LUA_SOURCE = lua-$(LUA_VERSION).tar.gz
LUA_SITE = https://www.lua.org
$(DL_DIR)/$(LUA_SOURCE):
$(download) $(LUA_SITE)/ftp/$(LUA_SOURCE)
LUA_DEPENDENCIES = ncurses
lua: $(LUA_DEPENDENCIES) $(DL_DIR)/$(LUA_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(LUA_DIR)
$(UNTAR)/$(LUA_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(LUA_DIR); \
$(MAKE) linux \
PKG_VERSION=$(LUA_VERSION) \
$(TARGET_MAKE_OPTS) \
AR="$(TARGET_AR) rcu" \
LDFLAGS="$(TARGET_LDFLAGS)" \
; \
$(MAKE) install INSTALL_TOP=$(TARGET_prefix) INSTALL_MAN=$(TARGET_DIR)$(REMOVE_man1dir); \
$(MAKE) pc INSTALL_TOP=$(TARGET_prefix) > $(TARGET_libdir)/pkgconfig/lua.pc
$(TARGET_RM) $(TARGET_bindir)/luac
$(REMOVE)/$(LUA_DIR)
$(TOUCH)
# -----------------------------------------------------------------------------
HOST_LUA_VERSION = $(LUA_VERSION)
HOST_LUA_DIR = lua-$(HOST_LUA_VERSION)
HOST_LUA_SOURCE = lua-$(HOST_LUA_VERSION).tar.gz
HOST_LUA_SITE = http://www.lua.org/ftp
#$(DL_DIR)/$(HOST_LUA_SOURCE):
# $(download) $(HOST_LUA_SITE)/$(HOST_LUA_SOURCE)
HOST_LUA_PATCH = lua-01-fix-LUA_ROOT.patch
HOST_LUA_PATCH += lua-01-remove-readline.patch
HOST_LUA = $(HOST_DIR)/bin/lua
host-lua: $(DL_DIR)/$(HOST_LUA_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCH))
$(CHDIR)/$(PKG_DIR); \
$(MAKE) linux; \
$(MAKE) install INSTALL_TOP=$(HOST_DIR) INSTALL_MAN=$(HOST_DIR)/share/man/man1
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

34
package/luaexpat/luaexpat.mk

@ -0,0 +1,34 @@
################################################################################
#
# luaexpat
#
################################################################################
LUAEXPAT_VERSION = 1.3.3
LUAEXPAT_DIR = luaexpat-$(LUAEXPAT_VERSION)
LUAEXPAT_SOURCE = luaexpat-$(LUAEXPAT_VERSION).tar.gz
LUAEXPAT_SITE = https://github.com/tomasguisasola/luaexpat/archive
$(DL_DIR)/$(LUAEXPAT_SOURCE):
$(download) $(LUAEXPAT_SITE)/v$(LUAEXPAT_VERSION).tar.gz -O $(@)
LUAEXPAT_DEPENDENCIES = expat lua
LUAEXPAT_MAKE_ENV = \
$(TARGET_CONFIGURE_ENV)
LUAEXPAT_MAKE_OPTS = \
PREFIX=$(TARGET_prefix) \
LUA_SYS_VER=$(LUA_ABIVERSION)
luaexpat: $(LUAEXPAT_DEPENDENCIES) $(DL_DIR)/$(LUAEXPAT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(SED) 's|^EXPAT_INC=.*|EXPAT_INC= $(TARGET_includedir)|' makefile; \
$(SED) 's|^CFLAGS =.*|& -L$(TARGET_libdir)|' makefile; \
$(SED) 's|^CC =.*|CC = $(TARGET_CC)|' makefile; \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

18
package/luajson/luajson.mk

@ -0,0 +1,18 @@
################################################################################
#
# luajson
#
################################################################################
LUAJSON_SOURCE = JSON.lua
LUAJSON_SITE = http://regex.info/code
$(DL_DIR)/$(LUAJSON_SOURCE):
$(download) $(LUAJSON_SITE)/$(LUAJSON_SOURCE)
luajson: $(DL_DIR)/$(LUAJSON_SOURCE) | $(TARGET_DIR)
$(CD) $(DL_DIR); \
curl --remote-name --time-cond $(PKG_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) || true
$(INSTALL_DATA) -D $(DL_DIR)/$(PKG_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVERSION)
ln -sf $(PKG_SOURCE) $(TARGET_datadir)/lua/$(LUA_ABIVERSION)/json.lua
$(TOUCH)

54
package/luaposix/luaposix.mk

@ -0,0 +1,54 @@
################################################################################
#
# luaposix
#
################################################################################
LUAPOSIX_VERSION = 31
LUAPOSIX_DIR = luaposix-$(LUAPOSIX_VERSION)
LUAPOSIX_SOURCE = luaposix-$(LUAPOSIX_VERSION).tar.gz
LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive
$(DL_DIR)/$(LUAPOSIX_SOURCE):
$(download) $(LUAPOSIX_SITE)/v$(LUAPOSIX_VERSION).tar.gz -O $(@)
LUAPOSIX_DEPENDENCIES = $(HOST_LUA) lua luaexpat
LUAPOSIX_AUTORECONF = YES
LUAPOSIX_CONF_ENV = \
LUA=$(HOST_LUA)
LUAPOSIX_CONF_OPTS = \
--libdir=$(TARGET_libdir)/lua/$(LUA_ABIVERSION) \
--datadir=$(TARGET_datadir)/lua/$(LUA_ABIVERSION) \
--mandir=$(TARGET_DIR)$(REMOVE_mandir) \
--docdir=$(TARGET_DIR)$(REMOVE_docdir)
GNULIB_VERSION = 20140202
GNULIB_SOURCE = gnulib-$(GNULIB_VERSION)-stable.tar.gz
GNULIB_SITE = http://erislabs.net/ianb/projects/gnulib
$(DL_DIR)/$(GNULIB_SOURCE):
$(download) $(GNULIB_SITE)/$(GNULIB_SOURCE)
SLINGSHOT_VERSION = 6
SLINGSHOT_SOURCE = slingshot-$(SLINGSHOT_VERSION).tar.gz
SLINGSHOT_SITE = https://github.com/gvvaughan/slingshot/archive
$(DL_DIR)/$(SLINGSHOT_SOURCE):
$(download) $(SLINGSHOT_SITE)/v$(SLINGSHOT_VERSION).tar.gz -O $(@)
luaposix: $(LUAPOSIX_DEPENDENCIES) $(DL_DIR)/$(SLINGSHOT_SOURCE) $(DL_DIR)/$(GNULIB_SOURCE) $(DL_DIR)/$(LUAPOSIX_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
tar -C gnulib --strip=1 -xf $(DL_DIR)/$(GNULIB_SOURCE); \
tar -C slingshot --strip=1 -xf $(DL_DIR)/$(SLINGSHOT_SOURCE); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

27
package/mediainfo/mediainfo.mk

@ -0,0 +1,27 @@
################################################################################
#
# mediainfo
#
################################################################################
MEDIAINFO_VERSION = 20.08
MEDIAINFO_DIR = MediaInfo
MEDIAINFO_SOURCE = mediainfo_$(MEDIAINFO_VERSION).tar.bz2
MEDIAINFO_SITE = https://mediaarea.net/download/source/mediainfo/$(MEDIAINFO_VERSION)
$(DL_DIR)/$(MEDIAINFO_SOURCE):
$(download) $(MEDIAINFO_SITE)/$(MEDIAINFO_SOURCE)
MEDIAINFO_DEPENDENCIES = libmediainfo
MEDIAINFO_AUTORECONF = YES
mediainfo: $(MEDIAINFO_DEPENDENCIES) $(DL_DIR)/$(MEDIAINFO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(MEDIAINFO_DIR)
$(UNTAR)/$(MEDIAINFO_SOURCE)
$(CHDIR)/$(MEDIAINFO_DIR)/Project/GNU/CLI; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(MEDIAINFO_DIR)
$(TOUCH)

35
package/minisatip/minisatip.mk

@ -0,0 +1,35 @@
################################################################################
#
# minisatip
#
################################################################################
MINISATIP_VERSION = git
MINISATIP_DIR = minisatip.$(MINISATIP_VERSION)
MINISATIP_SOURCE = minisatip.$(MINISATIP_VERSION)
MINISATIP_SITE = https://github.com/catalinii
MINISATIP_DEPENDENCIES = libdvbcsa openssl dvb-apps
MINISATIP_CONF_OPTS = \
--enable-static \
--enable-enigma \
--disable-netcv
minisatip: $(MINISATIP_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE)
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/minisatip $(TARGET_bindir)/minisatip
$(INSTALL) -d $(TARGET_datadir)/minisatip
$(INSTALL_COPY) $(PKG_BUILD_DIR)/html $(TARGET_datadir)/minisatip
$(INSTALL) -d $(TARGET_sysconfdir)/default
echo 'MINISATIP_OPTS="-x 9090 -t -o /tmp/camd.socket"' > $(TARGET_sysconfdir)/default/minisatip
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/minisatip.init $(TARGET_sysconfdir)/init.d/minisatip
$(UPDATE-RC.D) minisatip defaults 75 25
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

23
package/mtools/aio-grab.mk

@ -0,0 +1,23 @@
################################################################################
#
# mtools
#
################################################################################
HOST_MTOOLS_VERSION = 4.0.19
HOST_MTOOLS_DIR = mtools-$(HOST_MTOOLS_VERSION)
HOST_MTOOLS_SOURCE = mtools-$(HOST_MTOOLS_VERSION).tar.gz
HOST_MTOOLS_SITE = $(GNU_MIRROR)/mtools
$(DL_DIR)/$(HOST_MTOOLS_SOURCE):
$(download) $(HOST_MTOOLS_SITE)/$(HOST_MTOOLS_SOURCE)
host-mtools: $(DL_DIR)/$(HOST_MTOOLS_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(HOST_CONFIGURE);\
$(MAKE1); \
$(MAKE) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

45
package/nano/nano.mk

@ -0,0 +1,45 @@
################################################################################
#
# nano
#
################################################################################
NANO_VERSION = 5.8
NANO_DIR = nano-$(NANO_VERSION)
NANO_SOURCE = nano-$(NANO_VERSION).tar.gz
NANO_SITE = $(GNU_MIRROR)/nano
$(DL_DIR)/$(NANO_SOURCE):
$(download) $(NANO_SITE)/$(NANO_SOURCE)
NANO_DEPENDENCIES = ncurses
ifeq ($(BS_PACKAGE_NCURSES_WCHAR),y)
NANO_CONF_ENV = \
ac_cv_prog_NCURSESW_CONFIG=$(HOST_DIR)/bin/$(NCURSES_CONFIG_SCRIPTS)
else
NANO_CONF_ENV = \
ac_cv_prog_NCURSESW_CONFIG=false
NANO_MAKE_ENV = \
CURSES_LIB="-lncurses"
endif
NANO_CONF_OPTS = \
--datarootdir=$(REMOVE_datarootdir) \
--disable-nls \
--disable-libmagic \
--enable-tiny \
--without-slang \
--with-wordbounds
nano: $(NANO_DEPENDENCIES) $(DL_DIR)/$(NANO_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(NANO_MAKE_ENV) $(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(INSTALL) -d $(TARGET_sysconfdir)/profile.d
echo "export EDITOR=nano" > $(TARGET_sysconfdir)/profile.d/editor.sh
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

23
package/neutrino-mediathek/neutrino-mediathek.mk

@ -0,0 +1,23 @@
################################################################################
#
# neutrino-mediathek
#
################################################################################
NEUTRINO_MEDIATHEK_VERSION = git
NEUTRINO_MEDIATHEK_DIR = mediathek.$(NEUTRINO_MEDIATHEK_VERSION)
NEUTRINO_MEDIATHEK_SOURCE = mediathek.$(NEUTRINO_MEDIATHEK_VERSION)
NEUTRINO_MEDIATHEK_SITE = https://github.com/neutrino-mediathek
neutrino-mediathek: $(SHARE_PLUGINS) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(GET_GIT_SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
$(CPDIR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(INSTALL_COPY) plugins/* $(SHARE_PLUGINS)/; \
$(INSTALL_COPY) share/* $(TARGET_datadir)
$(REMOVE)/$(PKG_DIR)
# temporarily use beta-version from our board
rm -rf $(SHARE_PLUGINS)/neutrino-mediathek*
$(INSTALL_COPY) $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/plugins/mediathek/* $(SHARE_PLUGINS)/
$(TOUCH)

12
package/neutrino-plugins/neutrino-plugin.mk

@ -0,0 +1,12 @@
################################################################################
#
# neutrino-plugin
#
################################################################################
# To build single plugins from neutrino-plugins repository call
# make neutrino-plugin-<subdir>; e.g. make neutrino-plugin-tuxwetter
neutrino-plugin-%: $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@))
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)/$(subst neutrino-plugin-,,$(@)) install DESTDIR=$(TARGET_DIR)

149
package/neutrino-plugins/neutrino-plugins.mk

@ -0,0 +1,149 @@
################################################################################
#
# neutrino-plugins
#
################################################################################
NEUTRINO_PLUGINS_OBJ = $(NI_NEUTRINO_PLUGINS)-obj
NEUTRINO_PLUGINS_BUILD_DIR = $(BUILD_DIR)/$(NEUTRINO_PLUGINS_OBJ)
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_DEPENDENCIES =
NEUTRINO_PLUGINS_DEPENDENCIES += ffmpeg
NEUTRINO_PLUGINS_DEPENDENCIES += libcurl
NEUTRINO_PLUGINS_DEPENDENCIES += libpng
NEUTRINO_PLUGINS_DEPENDENCIES += libjpeg-turbo
NEUTRINO_PLUGINS_DEPENDENCIES += giflib
NEUTRINO_PLUGINS_DEPENDENCIES += freetype
NEUTRINO_PLUGINS_DEPENDENCIES += lua-curl
NEUTRINO_PLUGINS_DEPENDENCIES += lua-feedparser
NEUTRINO_PLUGINS_DEPENDENCIES += luaexpat
NEUTRINO_PLUGINS_DEPENDENCIES += luajson
NEUTRINO_PLUGINS_DEPENDENCIES += luaposix
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_CONF_ENV = \
$(TARGET_CONFIGURE_ENV)
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_CONF_OPTS = \
--build=$(GNU_HOST_NAME) \
--host=$(TARGET) \
--target=$(TARGET) \
--prefix=$(prefix) \
--sysconfdir=$(sysconfdir) \
$(if $(findstring 1,$(KBUILD_VERBOSE)),--disable-silent-rules,--enable-silent-rules) \
--enable-maintainer-mode \
\
--with-neutrino-source=$(SOURCE_DIR)/$(NI_NEUTRINO) \
--with-neutrino-build=$(NEUTRINO_BUILD_DIR) \
\
--with-target=cdk \
--with-targetprefix=$(prefix) \
--with-boxtype=$(BOXTYPE)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
NEUTRINO_PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXSERIES)
else
NEUTRINO_PLUGINS_CONF_OPTS += --with-boxmodel=$(BOXMODEL)
endif
NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-logoupdater \
--disable-logoview \
--disable-mountpointmanagement \
--disable-filmon \
--disable-stbup
ifeq ($(BOXTYPE),coolstream)
ifeq ($(BOXSERIES),hd1)
NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-plutotv \
--disable-rakutentv \
--disable-spiegel_tv_doc \
--disable-tierwelt_tv
endif
NEUTRINO_PLUGINS_CONF_OPTS += \
--disable-showiframe \
--disable-stb_startup \
--disable-imgbackup \
--disable-rcu_switcher
endif
# -----------------------------------------------------------------------------
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
NEUTRINO_PLUGINS_BOXMODEL = $(BOXSERIES)
else
NEUTRINO_PLUGINS_BOXMODEL = $(BOXMODEL)
endif
# -----------------------------------------------------------------------------
$(NEUTRINO_PLUGINS_BUILD_DIR)/config.status: $(NEUTRINO_PLUGINS_DEPENDENCIES)
test -d $(NEUTRINO_PLUGINS_BUILD_DIR) || $(INSTALL) -d $(NEUTRINO_PLUGINS_BUILD_DIR)
$(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/autogen.sh
$(CD) $(NEUTRINO_PLUGINS_BUILD_DIR); \
$(NEUTRINO_PLUGINS_CONF_ENV) \
$(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/configure \
$(NEUTRINO_PLUGINS_CONF_OPTS)
# -----------------------------------------------------------------------------
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS =
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += emmrd
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += fritzcallmonitor
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += openvpn
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += rcu_switcher
#NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += stbup
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += tuxcald
NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS += tuxmaild
NEUTRINO_PLUGINS_INIT_SCRIPTS = $(NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS)
NEUTRINO_PLUGINS_INIT_SCRIPTS += turnoff_power
define NEUTRINO_PLUGINS_RUNLEVEL_LINKS_INSTALL
for script in $(NEUTRINO_PLUGINS_INIT_SCRIPTS_DEFAULTS); do \
if [ -x $(TARGET_sysconfdir)/init.d/$$script ]; then \
$(UPDATE-RC.D) $$script defaults 80 20; \
fi; \
done
if [ -x $(TARGET_sysconfdir)/init.d/turnoff_power ]; then \
$(UPDATE-RC.D) turnoff_power start 99 0 .; \
fi
endef
define NEUTRINO_PLUGINS_RUNLEVEL_LINKS_UNINSTALL
for script in $(NEUTRINO_PLUGINS_INIT_SCRIPTS); do \
if [ -x $(TARGET_DIR)/etc/init.d/$$script ]; then \
$(REMOVE-RC.D) $$script remove; \
fi; \
done
endef
# -----------------------------------------------------------------------------
neutrino-plugins: neutrino $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR)
$(MAKE) -C $(NEUTRINO_PLUGINS_BUILD_DIR) install DESTDIR=$(TARGET_DIR)
$(NEUTRINO_PLUGINS_RUNLEVEL_LINKS_INSTALL)
$(TOUCH)
# -----------------------------------------------------------------------------
neutrino-plugins-uninstall:
$(NEUTRINO_PLUGINS_RUNLEVEL_LINKS_UNINSTALL)
-make -C $(NEUTRINO_PLUGINS_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR)
neutrino-plugins-distclean:
-make -C $(NEUTRINO_PLUGINS_BUILD_DIR) distclean
neutrino-plugins-clean: neutrino-plugins-uninstall neutrino-plugins-distclean
rm -f $(NEUTRINO_PLUGINS_BUILD_DIR)/config.status
rm -f $(DEPS_DIR)/neutrino-plugins
neutrino-plugins-clean-all: neutrino-plugins-clean
rm -rf $(NEUTRINO_PLUGINS_BUILD_DIR)

82
make/target-neutrino.mk → package/neutrino/neutrino.mk

@ -1,7 +1,8 @@
################################################################################
# #
# makefile to build libstb-hal and neutrino # neutrino
# #
# ----------------------------------------------------------------------------- ################################################################################
NEUTRINO_INST_DIR ?= $(TARGET_DIR) NEUTRINO_INST_DIR ?= $(TARGET_DIR)
@ -14,9 +15,6 @@ NEUTRINO_BUILD_DIR = $(BUILD_DIR)/$(NEUTRINO_OBJ)
NEUTRINO_BRANCH ?= master NEUTRINO_BRANCH ?= master
#endif #endif
LIBSTB_HAL_OBJ = $(NI_LIBSTB_HAL)-obj
LIBSTB_HAL_BUILD_DIR = $(BUILD_DIR)/$(LIBSTB_HAL_OBJ)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
NEUTRINO_DEPENDENCIES = NEUTRINO_DEPENDENCIES =
@ -184,56 +182,6 @@ neutrino: $(NEUTRINO_BUILD_DIR)/config.status
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LIBSTB_HAL_DEPENDENCIES =
LIBSTB_HAL_DEPENDENCIES += ffmpeg
LIBSTB_HAL_DEPENDENCIES += openthreads
# -----------------------------------------------------------------------------
LIBSTB_HAL_CONF_ENV = \
$(NEUTRINO_CONF_ENV)
# -----------------------------------------------------------------------------
LIBSTB_HAL_CONF_OPTS = \
--build=$(GNU_HOST_NAME) \
--host=$(TARGET) \
--target=$(TARGET) \
--prefix=$(prefix) \
$(if $(findstring 1,$(KBUILD_VERBOSE)),--disable-silent-rules,--enable-silent-rules) \
--enable-maintainer-mode \
--enable-shared=no \
\
--with-target=cdk \
--with-targetprefix=$(prefix) \
--with-boxtype=$(BOXTYPE)
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
LIBSTB_HAL_CONF_OPTS += --with-boxmodel=$(BOXSERIES)
else
LIBSTB_HAL_CONF_OPTS += --with-boxmodel=$(BOXMODEL)
endif
# -----------------------------------------------------------------------------
$(LIBSTB_HAL_BUILD_DIR)/config.status: $(LIBSTB_HAL_DEPENDENCIES)
test -d $(LIBSTB_HAL_BUILD_DIR) || $(INSTALL) -d $(LIBSTB_HAL_BUILD_DIR)
$(SOURCE_DIR)/$(NI_LIBSTB_HAL)/autogen.sh
$(CD) $(LIBSTB_HAL_BUILD_DIR); \
$(LIBSTB_HAL_CONF_ENV) \
$(SOURCE_DIR)/$(NI_LIBSTB_HAL)/configure \
$(LIBSTB_HAL_CONF_OPTS)
# -----------------------------------------------------------------------------
libstb-hal: $(LIBSTB_HAL_BUILD_DIR)/config.status
$(MAKE) -C $(LIBSTB_HAL_BUILD_DIR)
$(MAKE) -C $(LIBSTB_HAL_BUILD_DIR) install DESTDIR=$(NEUTRINO_INST_DIR)
$(REWRITE_LIBTOOL)
$(TOUCH)
# -----------------------------------------------------------------------------
neutrino-bin: neutrino-bin:
ifeq ($(CLEAN),yes) ifeq ($(CLEAN),yes)
$(MAKE) neutrino-clean $(MAKE) neutrino-clean
@ -261,27 +209,3 @@ neutrino-clean: neutrino-uninstall neutrino-distclean
neutrino-clean-all: neutrino-clean neutrino-clean-all: neutrino-clean
rm -rf $(NEUTRINO_BUILD_DIR) rm -rf $(NEUTRINO_BUILD_DIR)
# -----------------------------------------------------------------------------
libstb-hal-uninstall:
-make -C $(LIBSTB_HAL_BUILD_DIR) uninstall DESTDIR=$(TARGET_DIR)
libstb-hal-distclean:
-make -C $(LIBSTB_HAL_BUILD_DIR) distclean
libstb-hal-clean: libstb-hal-uninstall libstb-hal-distclean
rm -f $(LIBSTB_HAL_BUILD_DIR)/config.status
rm -f $(DEPS_DIR)/libstb-hal
libstb-hal-clean-all: libstb-hal-clean
rm -rf $(LIBSTB_HAL_BUILD_DIR)
# -----------------------------------------------------------------------------
PHONY += neutrino-bin
PHONY += neutrino-uninstall neutrino-distclean
PHONY += neutrino-clean neutrino-clean-all
PHONY += libstb-hal-uninstall libstb-hal-distclean
PHONY += libstb-hal-clean libstb-hal-clean-all

18
package/ofgwrite/ofgwrite.mk

@ -0,0 +1,18 @@
################################################################################
#
# ofgwrite
#
################################################################################
ofgwrite: $(SOURCE_DIR)/$(NI_OFGWRITE) | $(TARGET_DIR)
$(REMOVE)/$(NI_OFGWRITE)
tar -C $(SOURCE_DIR) --exclude-vcs -cp $(NI_OFGWRITE) | tar -C $(BUILD_DIR) -x
$(CHDIR)/$(NI_OFGWRITE); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE)
$(INSTALL_EXEC) $(BUILD_DIR)/$(NI_OFGWRITE)/ofgwrite_bin $(TARGET_bindir)
$(INSTALL_EXEC) $(BUILD_DIR)/$(NI_OFGWRITE)/ofgwrite_caller $(TARGET_bindir)
$(INSTALL_EXEC) $(BUILD_DIR)/$(NI_OFGWRITE)/ofgwrite $(TARGET_bindir)
$(SED) 's|prefix=.*|prefix=$(prefix)|' $(TARGET_bindir)/ofgwrite
$(REMOVE)/$(NI_OFGWRITE)
$(TOUCH)

45
package/openssh/openssh.mk

@ -0,0 +1,45 @@
################################################################################
#
# openssh
#
################################################################################
OPENSSH_VERSION = 8.6p1
OPENSSH_DIR = openssh-$(OPENSSH_VERSION)
OPENSSH_SOURCE = openssh-$(OPENSSH_VERSION).tar.gz
OPENSSH_SITE = https://artfiles.org/openbsd/OpenSSH/portable
$(DL_DIR)/$(OPENSSH_SOURCE):
$(download) $(OPENSSH_SITE)/$(OPENSSH_SOURCE)
OPENSSH_DEPENDENCIES = openssl zlib
OPENSSH_CONF_ENV = \
ac_cv_search_dlopen=no
OPENSSH_CONF_OPTS = \
--docdir=$(REMOVE_docdir) \
--sysconfdir=$(sysconfdir)/ssh \
--libexecdir=$(sbindir) \
--with-pid-dir=/tmp \
--with-privsep-path=/var/empty \
--with-cppflags="-pipe $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(TARGET_ABI) -I$(TARGET_includedir)" \
--with-ldflags="-L$(TARGET_libdir)" \
--disable-strip \
--disable-lastlog \
--disable-utmp \
--disable-utmpx \
--disable-wtmp \
--disable-wtmpx \
--disable-pututline \
--disable-pututxline
openssh: $(OPENSSH_DEPENDENCIES) $(DL_DIR)/$(OPENSSH_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$($(PKG)_CONF_ENV) ./configure $(TARGET_CONFIGURE_OPTS); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

70
package/openssl/openssl.mk

@ -0,0 +1,70 @@
################################################################################
#
# openssl
#
################################################################################
OPENSSL_VERSION = 1.0.2u
OPENSSL_DIR = openssl-$(OPENSSL_VERSION)
OPENSSL_SOURCE = openssl-$(OPENSSL_VERSION).tar.gz
OPENSSL_SITE = https://www.openssl.org/source
$(DL_DIR)/$(OPENSSL_SOURCE):
$(download) $(OPENSSL_SITE)/$(OPENSSL_SOURCE)
ifeq ($(TARGET_ARCH),arm)
OPENSSL_TARGET_ARCH = linux-armv4
else ifeq ($(TARGET_ARCH),mips)
OPENSSL_TARGET_ARCH = linux-generic32
endif
OPENSSL_CONF_OPTS = \
--cross-compile-prefix=$(TARGET_CROSS) \
--prefix=$(prefix) \
--openssldir=$(sysconfdir)/ssl
OPENSSL_CONF_OPTS += \
$(OPENSSL_TARGET_ARCH) \
shared \
threads \
no-hw \
no-engine \
no-sse2 \
no-perlasm \
no-tests \
no-fuzz-afl \
no-fuzz-libfuzzer
OPENSSL_CONF_OPTS += \
-DTERMIOS -fomit-frame-pointer \
-DOPENSSL_SMALL_FOOTPRINT \
$(TARGET_CFLAGS) \
$(TARGET_LDFLAGS) \
openssl: $(DL_DIR)/$(OPENSSL_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
./Configure \
$($(PKG)_CONF_OPTS); \
$(SED) 's| build_tests||' Makefile; \
$(SED) 's|^MANDIR=.*|MANDIR=$(REMOVE_mandir)|' Makefile; \
$(SED) 's|^HTMLDIR=.*|HTMLDIR=$(REMOVE_htmldir)|' Makefile; \
$(MAKE) depend; \
$(MAKE); \
$(MAKE) install_sw INSTALL_PREFIX=$(TARGET_DIR)
$(TARGET_RM) $(TARGET_libdir)/engines
$(TARGET_RM) $(TARGET_bindir)/c_rehash
$(TARGET_RM) $(TARGET_sysconfdir)/ssl/misc/{CA.pl,tsget}
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
$(TARGET_RM) $(TARGET_bindir)/openssl
$(TARGET_RM) $(TARGET_sysconfdir)/ssl/misc/{CA.*,c_*}
endif
chmod 0755 $(TARGET_libdir)/lib{crypto,ssl}.so.*
for version in 0.9.7 0.9.8 1.0.2; do \
ln -sf libcrypto.so.1.0.0 $(TARGET_libdir)/libcrypto.so.$$version; \
ln -sf libssl.so.1.0.0 $(TARGET_libdir)/libssl.so.$$version; \
done
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

20
package/openthreads/openthreads.mk

@ -0,0 +1,20 @@
################################################################################
#
# openthreads
#
################################################################################
OPENTHREADS_CONF_OPTS = \
-DCMAKE_SUPPRESS_DEVELOPER_WARNINGS="1" \
-D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE="0" \
-D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE__TRYRUN_OUTPUT="1"
openthreads: $(SOURCE_DIR)/$(NI_OPENTHREADS) | $(TARGET_DIR)
$(REMOVE)/$(NI_OPENTHREADS)
tar -C $(SOURCE_DIR) --exclude-vcs -cp $(NI_OPENTHREADS) | tar -C $(BUILD_DIR) -x
$(CHDIR)/$(NI_OPENTHREADS)/; \
$(CMAKE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(NI_OPENTHREADS)
$(TOUCH)

26
package/rtmpdump/rtmpdump.mk

@ -0,0 +1,26 @@
################################################################################
#
# rtmpdump
#
################################################################################
RTMPDUMP_DEPENDENCIES = zlib openssl
RTMPDUMP_MAKE_ENV = \
CROSS_COMPILE=$(TARGET_CROSS) \
XCFLAGS="$(TARGET_CFLAGS)" \
XLDFLAGS="$(TARGET_LDFLAGS)"
RTMPDUMP_MAKE_OPTS = \
prefix=$(prefix) \
mandir=$(REMOVE_mandir)
rtmpdump: $(RTMPDUMP_DEPENDENCIES) $(SOURCE_DIR)/$(NI_RTMPDUMP) | $(TARGET_DIR)
$(REMOVE)/$(NI_RTMPDUMP)
tar -C $(SOURCE_DIR) --exclude-vcs -cp $(NI_RTMPDUMP) | tar -C $(BUILD_DIR) -x
$(CHDIR)/$(NI_RTMPDUMP); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_sbindir)/,rtmpgw rtmpsrv rtmpsuck)
$(REMOVE)/$(NI_RTMPDUMP)
$(TOUCH)

8
package/samba/samba.mk

@ -0,0 +1,8 @@
################################################################################
#
# samba
#
################################################################################
samba: $(if $(filter $(BOXSERIES),hd1),samba33,samba36)
$(TOUCH)

70
package/samba33/samba33.mk

@ -0,0 +1,70 @@
################################################################################
#
# samba
#
################################################################################
SAMBA33_VERSION = 3.3.16
SAMBA33_DIR = samba-$(SAMBA33_VERSION)
SAMBA33_SOURCE = samba-$(SAMBA33_VERSION).tar.gz
SAMBA33_SITE = https://download.samba.org/pub/samba
$(DL_DIR)/$(SAMBA33_SOURCE):
$(download) $(SAMBA33_SITE)/$(SAMBA33_SOURCE)
SAMBA33_DEPENDENCIES = zlib
SAMBA33_CONF_ENV = \
CONFIG_SITE=$(PKG_FILES_DIR)/samba33-config.site
SAMBA33_CONF_OPTS = \
--datadir=/var/samba \
--datarootdir=$(REMOVE_datarootdir) \
--localstatedir=/var/samba \
--sysconfdir=/etc/samba \
--with-configdir=/etc/samba \
--with-privatedir=/etc/samba \
--with-modulesdir=$(REMOVE_libdir)/samba \
--with-sys-quotas=no \
--with-piddir=/var/run \
--enable-static \
--disable-shared \
--without-cifsmount \
--without-acl-support \
--without-ads \
--without-cluster-support \
--without-dnsupdate \
--without-krb5 \
--without-ldap \
--without-libnetapi \
--without-libtalloc \
--without-libtdb \
--without-libsmbsharemodes \
--without-libsmbclient \
--without-libaddns \
--without-pam \
--without-winbind \
--disable-shared-libs \
--disable-avahi \
--disable-cups \
--disable-iprint \
--disable-pie \
--disable-relro \
--disable-swat
samba33: $(SAMBA33_DEPENDENCIES) $(DL_DIR)/$(SAMBA33_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR)/source; \
./autogen.sh; \
$(CONFIGURE); \
$(MAKE1) all; \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(INSTALL) -d $(TARGET_localstatedir)/samba/locks
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/smb3.conf $(TARGET_sysconfdir)/samba/smb.conf
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/samba3.init $(TARGET_sysconfdir)/init.d/samba
$(UPDATE-RC.D) samba defaults 75 25
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,testparm findsmb smbtar smbclient smbpasswd)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

68
package/samba36/samba36.mk

@ -0,0 +1,68 @@
################################################################################
#
# samba
#
################################################################################
SAMBA36_VERSION = 3.6.25
SAMBA36_DIR = samba-$(SAMBA36_VERSION)
SAMBA36_SOURCE = samba-$(SAMBA36_VERSION).tar.gz
SAMBA36_SITE = https://download.samba.org/pub/samba/stable
$(DL_DIR)/$(SAMBA36_SOURCE):
$(download) $(SAMBA36_SITE)/$(SAMBA36_SOURCE)
SAMBA36_DEPENDENCIES = zlib
SAMBA36_CONF_ENV = \
CONFIG_SITE=$(PKG_FILES_DIR)/samba36-config.site
SAMBA36_CONF_OPTS = \
--datadir=/var/samba \
--datarootdir=$(REMOVE_datarootdir) \
--localstatedir=/var/samba \
--sysconfdir=/etc/samba \
--with-configdir=/etc/samba \
--with-privatedir=/etc/samba \
--with-modulesdir=$(REMOVE_libdir)/samba \
--with-piddir=/var/run \
--with-sys-quotas=no \
--enable-static \
--disable-shared \
--without-acl-support \
--without-ads \
--without-cluster-support \
--without-dmapi \
--without-dnsupdate \
--without-krb5 \
--without-ldap \
--without-libnetapi \
--without-libsmbsharemodes \
--without-libsmbclient \
--without-libaddns \
--without-pam \
--without-winbind \
--disable-shared-libs \
--disable-avahi \
--disable-cups \
--disable-iprint \
--disable-pie \
--disable-relro \
--disable-swat \
samba36: $(SAMBA36_DEPENDENCIES) $(DL_DIR)/$(SAMBA36_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR)/source3; \
./autogen.sh; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(INSTALL) -d $(TARGET_localstatedir)/samba/locks
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/smb3.conf $(TARGET_sysconfdir)/samba/smb.conf
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/samba3.init $(TARGET_sysconfdir)/init.d/samba
$(UPDATE-RC.D) samba defaults 75 25
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,testparm findsmb smbtar smbclient smbpasswd)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

24
package/strace/strace.mk

@ -0,0 +1,24 @@
################################################################################
#
# strace
#
################################################################################
STRACE_VERSION = 5.1
STRACE_DIR = strace-$(STRACE_VERSION)
STRACE_SOURCE = strace-$(STRACE_VERSION).tar.xz
STRACE_SITE = https://strace.io/files/$(STRACE_VERSION)
$(DL_DIR)/$(STRACE_SOURCE):
$(download) $(STRACE_SITE)/$(STRACE_SOURCE)
strace: $(DL_DIR)/$(STRACE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(STRACE_DIR)
$(UNTAR)/$(STRACE_SOURCE)
$(CHDIR)/$(STRACE_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,strace-graph strace-log-merge)
$(REMOVE)/$(STRACE_DIR)
$(TOUCH)

30
package/streamripper/streamripper.mk

@ -0,0 +1,30 @@
################################################################################
#
# streamripper
#
################################################################################
STREAMRIPPER_DEPENDENCIES = libvorbisidec libmad glib2
STREAMRIPPER_AUTORECONF = yes
STREAMRIPPER_CONF_OPTS = \
--includedir=$(TARGET_includedir) \
--datarootdir=$(REMOVE_datarootdir) \
--with-ogg-includes=$(TARGET_includedir) \
--with-ogg-libraries=$(TARGET_libdir) \
--with-vorbis-includes=$(TARGET_includedir) \
--with-vorbis-libraries=$(TARGET_libdir) \
--with-included-argv=yes \
--with-included-libmad=no
streamripper: $(STREAMRIPPER_DEPENDENCIES) | $(TARGET_DIR)
$(REMOVE)/$(NI_STREAMRIPPER)
tar -C $(SOURCE_DIR) --exclude-vcs -cp $(NI_STREAMRIPPER) | tar -C $(BUILD_DIR) -x
$(CHDIR)/$(NI_STREAMRIPPER); \
$(CONFIGURE); \
$(MAKE); \
$(INSTALL_EXEC) -D streamripper $(TARGET_bindir)/streamripper
$(INSTALL_EXEC) $(PKG_FILES_DIR)/streamripper.sh $(TARGET_bindir)/
$(REMOVE)/$(NI_STREAMRIPPER)
$(TOUCH)

48
package/sysvinit/sysvinit.mk

@ -0,0 +1,48 @@
################################################################################
#
# sysvinit
#
################################################################################
SYSVINIT_VERSION = 3.00
SYSVINIT_DIR = sysvinit-$(SYSVINIT_VERSION)
SYSVINIT_SOURCE = sysvinit-$(SYSVINIT_VERSION).tar.xz
SYSVINIT_SITE = http://download.savannah.nongnu.org/releases/sysvinit
$(DL_DIR)/$(SYSVINIT_SOURCE):
$(download) $(SYSVINIT_SITE)/$(SYSVINIT_SOURCE)
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse))
define SYSVINIT_INSTALL_RCS
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcS-vuplus $(TARGET_sysconfdir)/init.d/rcS
endef
else
define SYSVINIT_INSTALL_RCS
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcS-$(BOXSERIES) $(TARGET_sysconfdir)/init.d/rcS
endef
endif
define SYSVINIT_INSTALL_FILES
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/inittab $(TARGET_sysconfdir)/inittab
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/default-rcS $(TARGET_sysconfdir)/default/rcS
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rc $(TARGET_sysconfdir)/init.d/rc
$(SYSVINIT_INSTALL_RCS)
$(SED) "s|%(BOXMODEL)|$(BOXMODEL)|g" $(TARGET_sysconfdir)/init.d/rcS
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcK $(TARGET_sysconfdir)/init.d/rcK
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/service $(TARGET_sbindir)/service
$(INSTALL_EXEC) -D support/scripts/update-rc.d $(TARGET_sbindir)/update-rc.d
endef
sysvinit: $(DL_DIR)/$(SYSVINIT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE) -C src SULOGINLIBS=-lcrypt; \
$(MAKE) install ROOT=$(TARGET_DIR) MANDIR=$(REMOVE_mandir)
$(TARGET_RM) $(addprefix $(TARGET_base_sbindir)/,bootlogd fstab-decode logsave telinit)
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,last lastb mesg readbootlog utmpdump wall)
$($(PKG)_INSTALL_FILES)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

48
package/tzdata/tzdata.mk

@ -0,0 +1,48 @@
################################################################################
#
# tzdata
#
################################################################################
TZDATA_VERSION = 2020f
TZDATA_DIR = tzdata$(TZDATA_VERSION)
TZDATA_SOURCE = tzdata$(TZDATA_VERSION).tar.gz
TZDATA_SITE = ftp://ftp.iana.org/tz/releases
$(DL_DIR)/$(TZDATA_SOURCE):
$(download) $(TZDATA_SITE)/$(TZDATA_SOURCE)
TZDATA_DEPENDENCIES = host-zic
TZDATA_ZONELIST = \
africa antarctica asia australasia europe northamerica \
southamerica etcetera backward factory
TZDATA_LOCALTIME = CET
ETC_LOCALTIME = $(if $(filter $(PERSISTENT_VAR_PARTITION),yes),/var/etc/localtime,/etc/localtime)
tzdata: $(TZDATA_DEPENDENCIES) $(DL_DIR)/$(TZDATA_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(MKDIR)/$(PKG_DIR)
$(CHDIR)/$(PKG_DIR); \
tar -xf $(DL_DIR)/$(PKG_SOURCE); \
unset ${!LC_*}; LANG=POSIX; LC_ALL=POSIX; export LANG LC_ALL; \
$(HOST_ZIC) -b fat -d zoneinfo.tmp $(TZDATA_ZONELIST); \
sed -n '/zone=/{s/.*zone="\(.*\)".*$$/\1/; p}' $(PKG_FILES_DIR)/timezone.xml | sort -u | \
while read x; do \
find zoneinfo.tmp -type f -name $$x | sort | \
while read y; do \
test -e $$y && $(INSTALL_DATA) -D $$y $(TARGET_datadir)/zoneinfo/$$x; \
done; \
done; \
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/timezone.xml $(TARGET_sysconfdir)/timezone.xml
ln -sf $(datadir)/zoneinfo/$(TZDATA_LOCALTIME) $(TARGET_DIR)$(ETC_LOCALTIME)
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
ln -sf $(ETC_LOCALTIME) $(TARGET_sysconfdir)/localtime
endif
echo "$(TZDATA_LOCALTIME)" > $(TARGET_sysconfdir)/timezone
$(INSTALL) -d $(TARGET_sysconfdir)/profile.d
echo "export TZ=\$$(cat $(sysconfdir)/timezone)" > $(TARGET_sysconfdir)/profile.d/tz.sh
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

26
package/u-boot/u-boot.mk

@ -0,0 +1,26 @@
################################################################################
#
# u-boot
#
################################################################################
HOST_U_BOOT_VERSION = 2018.09
HOST_U_BOOT_DIR = u-boot-$(HOST_U_BOOT_VERSION)
HOST_U_BOOT_SOURCE = u-boot-$(HOST_U_BOOT_VERSION).tar.bz2
HOST_U_BOOT_SITE = ftp://ftp.denx.de/pub/u-boot
$(DL_DIR)/$(HOST_U_BOOT_SOURCE):
$(download) $(HOST_U_BOOT_SITE)/$(HOST_U_BOOT_SOURCE)
HOST_MKIMAGE = $(HOST_DIR)/bin/mkimage
host-u-boot: $(DL_DIR)/$(HOST_U_BOOT_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
$(MAKE) defconfig; \
$(MAKE) silentoldconfig; \
$(MAKE) tools-only
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/tools/mkimage $(HOST_MKIMAGE)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

32
package/usbutils/usbutils.mk

@ -0,0 +1,32 @@
################################################################################
#
# usbutils
#
################################################################################
# usbutils-008 needs udev
USBUTILS_VERSION = 007
USBUTILS_DIR = usbutils-$(USBUTILS_VERSION)
USBUTILS_SOURCE = usbutils-$(USBUTILS_VERSION).tar.xz
USBUTILS_SITE = $(KERNEL_MIRROR)/linux/utils/usb/usbutils
$(DL_DIR)/$(USBUTILS_SOURCE):
$(download) $(USBUTILS_SITE)/$(USBUTILS_SOURCE)
USBUTILS_DEPENDENCIES = libusb-compat
usbutils: $(USBUTILS_DEPENDENCIES) $(DL_DIR)/$(USBUTILS_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(TARGET_bindir)/lsusb.py
$(TARGET_RM) $(TARGET_bindir)/usbhid-dump
$(TARGET_RM) $(TARGET_sbindir)/update-usbids.sh
$(TARGET_RM) $(TARGET_datadir)/pkgconfig
$(TARGET_RM) $(TARGET_datadir)/usb.ids.gz
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

39
package/ushare/ushare.mk

@ -0,0 +1,39 @@
################################################################################
#
# ushare
#
################################################################################
USHARE_VERSION = 1.1a
USHARE_DIR = ushare-uShare_v$(USHARE_VERSION)
USHARE_SOURCE = uShare_v$(USHARE_VERSION).tar.gz
USHARE_SITE = https://github.com/GeeXboX/ushare/archive
$(DL_DIR)/$(USHARE_SOURCE):
$(download) $(USHARE_SITE)/$(USHARE_SOURCE)
USHARE_DEPENDENCIES = libupnp
USHARE_CONF_OPTS = \
--prefix=$(prefix) \
--sysconfdir=$(sysconfdir) \
--disable-dlna \
--disable-nls \
--cross-compile \
--cross-prefix=$(TARGET_CROSS)
ushare: $(USHARE_DEPENDENCIES) $(DL_DIR)/$(USHARE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) ./configure $($(PKG)_CONF_OPTS); \
ln -sf ../config.h src/; \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/ushare.conf $(TARGET_sysconfdir)/ushare.conf
$(SED) 's|%(BOXTYPE)|$(BOXTYPE)|; s|%(BOXMODEL)|$(BOXMODEL)|' $(TARGET_sysconfdir)/ushare.conf
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/ushare.init $(TARGET_sysconfdir)/init.d/ushare
$(UPDATE-RC.D) ushare defaults 75 25
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

34
package/valgrind/valgrind.mk

@ -0,0 +1,34 @@
################################################################################
#
# valgrind
#
################################################################################
VALGRIND_VERSION = 3.13.0
VALGRIND_DIR = valgrind-$(VALGRIND_VERSION)
VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2
VALGRIND_SITE = ftp://sourceware.org/pub/valgrind
$(DL_DIR)/$(VALGRIND_SOURCE):
$(download) $(VALGRIND_SITE)/$(VALGRIND_SOURCE)
VALGRIND_PATCH = valgrind-fix-build-$(TARGET_CPU).patch
VALGRIND_AUTORECONF = YES
VALGRIND_CONF_OPTS = \
--enable-only32bit \
--datadir=$(REMOVE_datadir)
valgrind: $(DL_DIR)/$(VALGRIND_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCH))
$(CHDIR)/$(PKG_DIR); \
$(CONFIGURE); \
$(MAKE); \
make install DESTDIR=$(TARGET_DIR)
$(TARGET_RM) $(addprefix $(TARGET_libdir)/valgrind/,*.a *.xml)
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,cg_* callgrind_* ms_print)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

35
package/vsftpd/vsftpd.mk

@ -0,0 +1,35 @@
################################################################################
#
# vsftpd
#
################################################################################
VSFTPD_VERSION = 3.0.3
VSFTPD_DIR = vsftpd-$(VSFTPD_VERSION)
VSFTPD_SOURCE = vsftpd-$(VSFTPD_VERSION).tar.gz
VSFTPD_SITE = https://security.appspot.com/downloads
$(DL_DIR)/$(VSFTPD_SOURCE):
$(download) $(VSFTPD_SITE)/$(VSFTPD_SOURCE)
VSFTPD_LIBS += -lcrypt $$($(PKG_CONFIG) --libs libssl libcrypto)
VSFTPD_DEPENDENCIES = openssl
vsftpd: $(VSFTPD_DEPENDENCIES) $(DL_DIR)/$(VSFTPD_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(SED) 's/.*VSF_BUILD_PAM/#undef VSF_BUILD_PAM/' builddefs.h; \
$(SED) 's/.*VSF_BUILD_SSL/#define VSF_BUILD_SSL/' builddefs.h; \
$(MAKE) clean; \
$(MAKE) $(TARGET_CONFIGURE_ENV) LIBS="$($(PKG)_LIBS)"; \
$(INSTALL_EXEC) -D vsftpd $(TARGET_sbindir)/vsftpd
$(INSTALL) -d $(TARGET_datadir)/empty
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/vsftpd.conf $(TARGET_sysconfdir)/vsftpd.conf
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/vsftpd.chroot_list $(TARGET_sysconfdir)/vsftpd.chroot_list
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/vsftpd.init $(TARGET_sysconfdir)/init.d/vsftpd
$(UPDATE-RC.D) vsftpd defaults 75 25
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

31
package/wpa_supplicant/wpa_supplicant.mk

@ -0,0 +1,31 @@
################################################################################
#
# wpa_supplicant
#
################################################################################
WPA_SUPPLICANT_VERSION = 0.7.3
WPA_SUPPLICANT_DIR = wpa_supplicant-$(WPA_SUPPLICANT_VERSION)
WPA_SUPPLICANT_SOURCE = wpa_supplicant-$(WPA_SUPPLICANT_VERSION).tar.gz
WPA_SUPPLICANT_SITE = https://w1.fi/releases
$(DL_DIR)/$(WPA_SUPPLICANT_SOURCE):
$(download) $(WPA_SUPPLICANT_SITE)/$(WPA_SUPPLICANT_SOURCE)
WPA_SUPPLICANT_DEPENDENCIES = openssl
wpa_supplicant: $(WPA_SUPPLICANT_DEPENDENCIES) $(DL_DIR)/$(WPA_SUPPLICANT_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR)/wpa_supplicant; \
$(INSTALL_DATA) $(PKG_FILES_DIR)/wpa_supplicant.config .config; \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) BINDIR=$(sbindir)
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/pre-wlan0.sh $(TARGET_sysconfdir)/network/pre-wlan0.sh
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/post-wlan0.sh $(TARGET_sysconfdir)/network/post-wlan0.sh
ifeq ($(PERSISTENT_VAR_PARTITION),yes)
ln -sf /var/etc/wpa_supplicant.conf $(TARGET_sysconfdir)/wpa_supplicant.conf
endif
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

51
package/xupnpd/xupnpd.mk

@ -0,0 +1,51 @@
################################################################################
#
# xupnpd
#
################################################################################
XUPNPD_VERSION = git
XUPNPD_DIR = xupnpd.$(XUPNPD_VERSION)
XUPNPD_SOURCE = xupnpd.$(XUPNPD_VERSION)
XUPNPD_SITE = https://github.com/clark15b
XUPNPD_CHECKOUT = 25d6d44
XUPNPD_DEPENDENCIES = lua openssl
XUPNPD_MAKE_OPTS = \
TARGET=$(TARGET) LUAFLAGS="$(TARGET_LDFLAGS) -I$(TARGET_includedir)"
define XUPNPD_TARGET_CLEANUP
$(TARGET_RM) $(TARGET_datadir)/xupnpd/plugins/staff/xupnpd_18plus.lua
endef
XUPNPD_TARGET_FINALIZE_HOOKS += XUPNPD_TARGET_CLEANUP
define XUPNPD_INSTALL_PLUGINS
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_18plus.lua $(TARGET_datadir)/xupnpd/plugins/
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_cczwei.lua $(TARGET_datadir)/xupnpd/plugins/
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_neutrino.lua $(TARGET_datadir)/xupnpd/plugins/
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_vimeo.lua $(TARGET_datadir)/xupnpd/plugins/
$(INSTALL_DATA) -D $(SOURCE_DIR)/$(NI_NEUTRINO_PLUGINS)/scripts-lua/xupnpd/xupnpd_youtube.lua $(TARGET_datadir)/xupnpd/plugins/
endef
XUPNPD_TARGET_FINALIZE_HOOKS += XUPNPD_INSTALL_PLUGINS
define XUPNPD_INSTALL_SKEL
$(INSTALL_COPY) $(PKG_FILES_DIR)-skel/* $(TARGET_DIR)/
$(UPDATE-RC.D) xupnpd defaults 75 25
endef
XUPNPD_TARGET_FINALIZE_HOOKS += XUPNPD_INSTALL_SKEL
xupnpd: $(XUPNPD_DEPENDENCIES) | $(TARGET_DIR)
$(call DEPENDENCIES)
$(call DOWNLOAD,$($(PKG)_SOURCE))
$(call STARTUP)
$(call EXTRACT,$(BUILD_DIR))
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE) -C src $($(PKG)_MAKE_OPTS) embedded
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/src/xupnpd $(TARGET_bindir)/xupnpd
$(INSTALL) -d $(TARGET_datadir)/xupnpd/config
$(INSTALL_COPY) $(PKG_BUILD_DIR)/src/{plugins,profiles,ui,www,*.lua} $(TARGET_datadir)/xupnpd/
$(call TARGET_FOLLOWUP)

27
package/zic/zic.mk

@ -0,0 +1,27 @@
################################################################################
#
# zic
#
################################################################################
HOST_ZIC_VERSION = 2020f
HOST_ZIC_DIR = tzcode$(HOST_ZIC_VERSION)
HOST_ZIC_SOURCE = tzcode$(HOST_ZIC_VERSION).tar.gz
HOST_ZIC_SITE = ftp://ftp.iana.org/tz/releases
$(DL_DIR)/$(HOST_ZIC_SOURCE):
$(download) $(HOST_ZIC_SITE)/$(HOST_ZIC_SOURCE)
HOST_ZIC = $(HOST_DIR)/sbin/zic
host-zic: $(DL_DIR)/$(HOST_ZIC_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(MKDIR)/$(PKG_DIR)
$(CHDIR)/$(PKG_DIR); \
tar -xf $(DL_DIR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(MAKE) zic
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/zic $(HOST_ZIC)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

33
package/zlib/zlib.mk

@ -0,0 +1,33 @@
################################################################################
#
# zlib
#
################################################################################
ZLIB_VERSION = 1.2.11
ZLIB_DIR = zlib-$(ZLIB_VERSION)
ZLIB_SOURCE = zlib-$(ZLIB_VERSION).tar.xz
ZLIB_SITE = https://sourceforge.net/projects/libpng/files/zlib/$(ZLIB_VERSION)
$(DL_DIR)/$(ZLIB_SOURCE):
$(download) $(ZLIB_SITE)/$(ZLIB_SOURCE)
ZLIB_CONF_ENV = \
mandir=$(REMOVE_mandir)
ZLIB_CONF_OPTS = \
--prefix=$(prefix) \
--shared \
--uname=Linux
zlib: $(DL_DIR)/$(ZLIB_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
$(TARGET_CONFIGURE_ENV) \
./configure $($(PKG)_CONF_OPTS); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
Loading…
Cancel
Save