You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1394 lines
38 KiB
1394 lines
38 KiB
#
|
|
# makefile to build system libs
|
|
#
|
|
# -----------------------------------------------------------------------------
|
|
|
|
ZLIB_VER = 1.2.11
|
|
ZLIB_DIR = zlib-$(ZLIB_VER)
|
|
ZLIB_SOURCE = zlib-$(ZLIB_VER).tar.xz
|
|
ZLIB_SITE = https://sourceforge.net/projects/libpng/files/zlib/$(ZLIB_VER)
|
|
|
|
$(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)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(TARGET_CONFIGURE_ENV) \
|
|
./configure $($(PKG)_CONF_OPTS); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBFUSE_VER = 2.9.9
|
|
LIBFUSE_DIR = fuse-$(LIBFUSE_VER)
|
|
LIBFUSE_SOURCE = fuse-$(LIBFUSE_VER).tar.gz
|
|
LIBFUSE_SITE = https://github.com/libfuse/libfuse/releases/download/fuse-$(LIBFUSE_VER)
|
|
|
|
$(DL_DIR)/$(LIBFUSE_SOURCE):
|
|
$(DOWNLOAD) $(LIBFUSE_SITE)/$(LIBFUSE_SOURCE)
|
|
|
|
LIBFUSE_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--disable-static \
|
|
--disable-example \
|
|
--disable-mtab \
|
|
--with-gnu-ld \
|
|
--enable-util \
|
|
--enable-lib \
|
|
--enable-silent-rules
|
|
|
|
libfuse: $(DL_DIR)/$(LIBFUSE_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
-rm -r $(TARGET_sysconfdir)/udev
|
|
-rm $(TARGET_sysconfdir)/init.d/fuse
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBUPNP_VER = 1.6.25
|
|
LIBUPNP_DIR = libupnp-$(LIBUPNP_VER)
|
|
LIBUPNP_SOURCE = libupnp-$(LIBUPNP_VER).tar.bz2
|
|
LIBUPNP_SITE = http://sourceforge.net/projects/pupnp/files/pupnp/libUPnP%20$(LIBUPNP_VER)
|
|
|
|
$(DL_DIR)/$(LIBUPNP_SOURCE):
|
|
$(DOWNLOAD) $(LIBUPNP_SITE)/$(LIBUPNP_SOURCE)
|
|
|
|
LIBUPNP_CONV_OPTS = \
|
|
--enable-shared \
|
|
--disable-static
|
|
|
|
libupnp: $(DL_DIR)/$(LIBUPNP_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBDVBSI_VER = 0.3.9
|
|
LIBDVBSI_DIR = libdvbsi++-$(LIBDVBSI_VER)
|
|
LIBDVBSI_SOURCE = libdvbsi++-$(LIBDVBSI_VER).tar.bz2
|
|
LIBDVBSI_SITE = https://github.com/mtdcr/libdvbsi/releases/download/$(LIBDVBSI_VER)
|
|
|
|
$(DL_DIR)/$(LIBDVBSI_SOURCE):
|
|
$(DOWNLOAD) $(LIBDVBSI_SITE)/$(LIBDVBSI_SOURCE)
|
|
|
|
LIBDVBSI_CONV_OPTS = \
|
|
--enable-silent-rules \
|
|
--enable-shared \
|
|
--disable-static
|
|
|
|
libdvbsi: $(DL_DIR)/$(LIBDVBSI_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBDVBCSA_VER = git
|
|
LIBDVBCSA_DIR = libdvbcsa.$(LIBDVBCSA_VER)
|
|
LIBDVBCSA_SOURCE = libdvbcsa.$(LIBDVBCSA_VER)
|
|
LIBDVBCSA_SITE = https://code.videolan.org/videolan
|
|
|
|
LIBDVBCSA_AUTORECONF = YES
|
|
|
|
libdvbcsa: | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(GET-GIT-SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
|
|
$(CPDIR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
GIFLIB_VER = 5.2.1
|
|
GIFLIB_DIR = giflib-$(GIFLIB_VER)
|
|
GIFLIB_SOURCE = giflib-$(GIFLIB_VER).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)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBCURL_VER = 7.74.0
|
|
LIBCURL_DIR = curl-$(LIBCURL_VER)
|
|
LIBCURL_SOURCE = curl-$(LIBCURL_VER).tar.bz2
|
|
LIBCURL_SITE = https://curl.haxx.se/download
|
|
|
|
$(DL_DIR)/$(LIBCURL_SOURCE):
|
|
$(DOWNLOAD) $(LIBCURL_SITE)/$(LIBCURL_SOURCE)
|
|
|
|
LIBCURL_DEPS = zlib openssl rtmpdump ca-bundle
|
|
|
|
LIBCURL_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
$(if $(filter $(BOXSERIES),hd1),--disable-ipv6,--enable-ipv6) \
|
|
--disable-manual \
|
|
--disable-file \
|
|
--disable-rtsp \
|
|
--disable-dict \
|
|
--disable-ldap \
|
|
--disable-curldebug \
|
|
--disable-static \
|
|
--disable-imap \
|
|
--disable-gopher \
|
|
--disable-pop3 \
|
|
--disable-smtp \
|
|
--disable-verbose \
|
|
--disable-manual \
|
|
--disable-ntlm-wb \
|
|
--disable-ares \
|
|
--without-libidn \
|
|
--with-ca-bundle=$(CA_BUNDLE_DIR)/$(CA_BUNDLE_CRT) \
|
|
--with-random=/dev/urandom \
|
|
--with-ssl=$(TARGET_prefix) \
|
|
--with-librtmp=$(TARGET_libdir) \
|
|
--enable-optimize
|
|
|
|
libcurl: $(LIBCURL_DEPS) $(DL_DIR)/$(LIBCURL_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
mv $(TARGET_bindir)/curl-config $(HOST_DIR)/bin/
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/curl-config
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBPNG_VER = 1.6.37
|
|
LIBPNG_DIR = libpng-$(LIBPNG_VER)
|
|
LIBPNG_SOURCE = libpng-$(LIBPNG_VER).tar.xz
|
|
LIBPNG_SITE = https://sourceforge.net/projects/libpng/files/libpng16/$(LIBPNG_VER)
|
|
|
|
$(DL_DIR)/$(LIBPNG_SOURCE):
|
|
$(DOWNLOAD) $(LIBPNG_SITE)/$(LIBPNG_SOURCE)
|
|
|
|
LIBPNG_DEPS = zlib
|
|
|
|
LIBPNG_CONF_OPTS = \
|
|
--enable-silent-rules \
|
|
--disable-static \
|
|
$(if $(filter $(BOXSERIES),hd5x hd6x vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse),--enable-arm-neon,--disable-arm-neon)
|
|
|
|
libpng: $(LIBPNG_DEPS) $(DL_DIR)/$(LIBPNG_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
mv $(TARGET_bindir)/libpng*-config $(HOST_DIR)/bin/
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/libpng16-config
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
FREETYPE_VER = 2.10.4
|
|
FREETYPE_DIR = freetype-$(FREETYPE_VER)
|
|
FREETYPE_SOURCE = freetype-$(FREETYPE_VER).tar.xz
|
|
FREETYPE_SITE = https://sourceforge.net/projects/freetype/files/freetype2/$(FREETYPE_VER)
|
|
|
|
$(DL_DIR)/$(FREETYPE_SOURCE):
|
|
$(DOWNLOAD) $(FREETYPE_SITE)/$(FREETYPE_SOURCE)
|
|
|
|
FREETYPE_DEPS = zlib libpng
|
|
|
|
FREETYPE_CONF_OPTS = \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--enable-freetype-config \
|
|
--with-png \
|
|
--with-zlib \
|
|
--without-harfbuzz \
|
|
--without-bzip2
|
|
|
|
freetype: $(FREETYPE_DEPS) $(DL_DIR)/$(FREETYPE_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(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
|
|
mv $(TARGET_bindir)/freetype-config $(HOST_DIR)/bin
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/freetype-config
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR) \
|
|
$(TARGET_datadir)/aclocal
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBJPEG_TURBO_VER = 2.0.6
|
|
LIBJPEG_TURBO_DIR = libjpeg-turbo-$(LIBJPEG_TURBO_VER)
|
|
LIBJPEG_TURBO_SOURCE = libjpeg-turbo-$(LIBJPEG_TURBO_VER).tar.gz
|
|
LIBJPEG_TURBO_SITE = https://sourceforge.net/projects/libjpeg-turbo/files/$(LIBJPEG_TURBO_VER)
|
|
|
|
$(DL_DIR)/$(LIBJPEG_TURBO_SOURCE):
|
|
$(DOWNLOAD) $(LIBJPEG_TURBO_SITE)/$(LIBJPEG_TURBO_SOURCE)
|
|
|
|
LIBJPEG_TURBO_CONF_OPTS = \
|
|
-DWITH_SIMD=False \
|
|
-DWITH_JPEG8=80
|
|
|
|
libjpeg-turbo: $(DL_DIR)/$(LIBJPEG_TURBO_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CMAKE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
-rm $(addprefix $(TARGET_bindir)/,cjpeg djpeg jpegtran rdjpgcom tjbench wrjpgcom)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
OPENSSL_VER = 1.0.2t
|
|
OPENSSL_DIR = openssl-$(OPENSSL_VER)
|
|
OPENSSL_SOURCE = openssl-$(OPENSSL_VER).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_CONV_OPTS = \
|
|
--cross-compile-prefix=$(TARGET_CROSS) \
|
|
--prefix=$(prefix) \
|
|
--openssldir=$(sysconfdir)/ssl
|
|
|
|
OPENSSL_CONV_OPTS += \
|
|
$(OPENSSL_TARGET_ARCH) \
|
|
shared \
|
|
threads \
|
|
no-hw \
|
|
no-engine \
|
|
no-sse2 \
|
|
no-perlasm \
|
|
no-tests \
|
|
no-fuzz-afl \
|
|
no-fuzz-libfuzzer
|
|
|
|
OPENSSL_CONV_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)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
./Configure \
|
|
$($(PKG)_CONV_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)
|
|
rm -rf $(TARGET_libdir)/engines
|
|
rm -f $(TARGET_bindir)/c_rehash
|
|
rm -f $(TARGET_sysconfdir)/ssl/misc/{CA.pl,tsget}
|
|
ifeq ($(BOXSERIES),$(filter $(BOXSERIES),hd1 hd2))
|
|
rm -f $(TARGET_bindir)/openssl
|
|
rm -f $(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)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
NCURSES_VER = 6.1
|
|
NCURSES_DIR = ncurses-$(NCURSES_VER)
|
|
NCURSES_SOURCE = ncurses-$(NCURSES_VER).tar.gz
|
|
NCURSES_SITE = $(GNU_MIRROR)/ncurses
|
|
|
|
$(DL_DIR)/$(NCURSES_SOURCE):
|
|
$(DOWNLOAD) $(NCURSES_SITE)/$(NCURSES_SOURCE)
|
|
|
|
NCURSES_CONF_OPTS = \
|
|
--enable-pc-files \
|
|
--with-pkg-config \
|
|
--with-pkg-config-libdir=$(libdir)/pkgconfig \
|
|
--with-shared \
|
|
--with-fallbacks='linux vt100 xterm' \
|
|
--disable-big-core \
|
|
--without-manpages \
|
|
--without-progs \
|
|
--without-tests \
|
|
--without-debug \
|
|
--without-ada \
|
|
--without-profile \
|
|
--without-cxx-binding
|
|
|
|
ncurses: $(DL_DIR)/$(NCURSES_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE) libs; \
|
|
$(MAKE) install.libs DESTDIR=$(TARGET_DIR)
|
|
-rm $(addprefix $(TARGET_libdir)/,libform* libmenu* libpanel*)
|
|
-rm $(addprefix $(TARGET_libdir)/pkgconfig/,form.pc menu.pc panel.pc)
|
|
mv $(TARGET_bindir)/ncurses6-config $(HOST_DIR)/bin
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/ncurses6-config
|
|
$(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) -cp $(NI_OPENTHREADS) --exclude-vcs | tar -C $(BUILD_DIR) -x
|
|
$(CHDIR)/$(NI_OPENTHREADS)/; \
|
|
$(CMAKE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REMOVE)/$(NI_OPENTHREADS)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBUSB_VER = 1.0.23
|
|
LIBUSB_DIR = libusb-$(LIBUSB_VER)
|
|
LIBUSB_SOURCE = libusb-$(LIBUSB_VER).tar.bz2
|
|
LIBUSB_SITE = https://github.com/libusb/libusb/releases/download/v$(LIBUSB_VER)
|
|
|
|
$(DL_DIR)/$(LIBUSB_SOURCE):
|
|
$(DOWNLOAD) $(LIBUSB_SITE)/$(LIBUSB_SOURCE)
|
|
|
|
LIBUSB_CONF_OPTS = \
|
|
--disable-udev
|
|
|
|
libusb: $(DL_DIR)/$(LIBUSB_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR); \
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBUSB_COMPAT_VER = 0.1.7
|
|
LIBUSB_COMPAT_DIR = libusb-compat-$(LIBUSB_COMPAT_VER)
|
|
LIBUSB_COMPAT_SOURCE = libusb-compat-$(LIBUSB_COMPAT_VER).tar.bz2
|
|
LIBUSB_COMPAT_SITE = https://github.com/libusb/libusb-compat-0.1/releases/download/v$(LIBUSB_COMPAT_VER)
|
|
|
|
$(DL_DIR)/$(LIBUSB_COMPAT_SOURCE):
|
|
$(DOWNLOAD) $(LIBUSB_COMPAT_SITE)/$(LIBUSB_COMPAT_SOURCE)
|
|
|
|
LIBUSB_COMPAT_DEPS = libusb
|
|
|
|
libusb-compat: $(LIBUSB_COMPAT_DEPS) $(DL_DIR)/$(LIBUSB_COMPAT_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR); \
|
|
mv $(TARGET_bindir)/libusb-config $(HOST_DIR)/bin
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/libusb-config
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBGD_VER = 2.2.5
|
|
LIBGD_DIR = libgd-$(LIBGD_VER)
|
|
LIBGD_SOURCE = libgd-$(LIBGD_VER).tar.xz
|
|
LIBGD_SITE = https://github.com/libgd/libgd/releases/download/gd-$(LIBGD_VER)
|
|
|
|
$(DL_DIR)/$(LIBGD_SOURCE):
|
|
$(DOWNLOAD) $(LIBGD_SITE)/$(LIBGD_SOURCE)
|
|
|
|
LIBGD_DEPS = zlib libpng libjpeg-turbo freetype
|
|
|
|
LIBGD_CONF_OPTS = \
|
|
--bindir=$(REMOVE_bindir) \
|
|
--without-fontconfig \
|
|
--without-xpm \
|
|
--without-x
|
|
|
|
libgd: $(LIBGD_DEPS) $(DL_DIR)/$(LIBGD_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBDPF_VER = git
|
|
LIBDPF_DIR = dpf-ax.$(LIBDPF_VER)
|
|
LIBDPF_SOURCE = dpf-ax.$(LIBDPF_VER)
|
|
LIBDPF_SITE = $(GITHUB)/MaxWiesel
|
|
|
|
LIBDPF_DEPS = libusb-compat
|
|
|
|
LIBDPF_MAKE_OPTS = \
|
|
CC=$(TARGET_CC) PREFIX=$(TARGET_prefix)
|
|
|
|
libdpf: $(LIBDPF_DEPS) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(GET-GIT-SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
|
|
$(CPDIR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(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)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LZO_VER = 2.10
|
|
LZO_DIR = lzo-$(LZO_VER)
|
|
LZO_SOURCE = lzo-$(LZO_VER).tar.gz
|
|
LZO_SITE = https://www.oberhumer.com/opensource/lzo/download
|
|
|
|
$(DL_DIR)/$(LZO_SOURCE):
|
|
$(DOWNLOAD) $(LZO_SITE)/$(LZO_SOURCE)
|
|
|
|
lzo: $(DL_DIR)/$(LZO_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBSIGC_VER = 2.10.3
|
|
LIBSIGC_DIR = libsigc++-$(LIBSIGC_VER)
|
|
LIBSIGC_SOURCE = libsigc++-$(LIBSIGC_VER).tar.xz
|
|
LIBSIGC_SITE = https://download.gnome.org/sources/libsigc++/$(basename $(LIBSIGC_VER))
|
|
|
|
$(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)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
EXPAT_VER = 2.2.9
|
|
EXPAT_DIR = expat-$(EXPAT_VER)
|
|
EXPAT_SOURCE = expat-$(EXPAT_VER).tar.bz2
|
|
EXPAT_SITE = https://sourceforge.net/projects/expat/files/expat/$(EXPAT_VER)
|
|
|
|
$(DL_DIR)/$(EXPAT_SOURCE):
|
|
$(DOWNLOAD) $(EXPAT_SITE)/$(EXPAT_SOURCE)
|
|
|
|
EXPAT_AUTORECONF = YES
|
|
|
|
EXPAT_CONF_OPTS = \
|
|
--docdir=$(REMOVE_docdir) \
|
|
--without-xmlwf \
|
|
--without-docbook
|
|
|
|
expat: $(DL_DIR)/$(EXPAT_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBBLURAY_VER = 0.9.3
|
|
LIBBLURAY_DIR = libbluray-$(LIBBLURAY_VER)
|
|
LIBBLURAY_SOURCE = libbluray-$(LIBBLURAY_VER).tar.bz2
|
|
LIBBLURAY_SITE = ftp.videolan.org/pub/videolan/libbluray/$(LIBBLURAY_VER)
|
|
|
|
$(DL_DIR)/$(LIBBLURAY_SOURCE):
|
|
$(DOWNLOAD) $(LIBBLURAY_SITE)/$(LIBBLURAY_SOURCE)
|
|
|
|
LIBBLURAY_DEPS = freetype
|
|
ifeq ($(BOXSERIES),hd2)
|
|
LIBBLURAY_DEPS += 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_DEPS) $(DL_DIR)/$(LIBBLURAY_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
./bootstrap; \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBASS_VER = 0.14.0
|
|
LIBASS_DIR = libass-$(LIBASS_VER)
|
|
LIBASS_SOURCE = libass-$(LIBASS_VER).tar.xz
|
|
LIBASS_SITE = https://github.com/libass/libass/releases/download/$(LIBASS_VER)
|
|
|
|
$(DL_DIR)/$(LIBASS_SOURCE):
|
|
$(DOWNLOAD) $(LIBASS_SITE)/$(LIBASS_SOURCE)
|
|
|
|
LIBASS_DEPS = freetype fribidi
|
|
|
|
LIBASS_CONF_OPTS = \
|
|
--disable-static \
|
|
--disable-test \
|
|
--disable-fontconfig \
|
|
--disable-harfbuzz \
|
|
--disable-require-system-font-provider
|
|
|
|
libass: $(LIBASS_DEPS) $(DL_DIR)/$(LIBASS_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBGPG_ERROR_VER = 1.37
|
|
LIBGPG_ERROR_DIR = libgpg-error-$(LIBGPG_ERROR_VER)
|
|
LIBGPG_ERROR_SOURCE = libgpg-error-$(LIBGPG_ERROR_VER).tar.bz2
|
|
LIBGPG_ERROR_SITE = ftp://ftp.gnupg.org/gcrypt/libgpg-error
|
|
|
|
$(DL_DIR)/$(LIBGPG_ERROR_SOURCE):
|
|
$(DOWNLOAD) $(LIBGPG_ERROR_SITE)/$(LIBGPG_ERROR_SOURCE)
|
|
|
|
LIBGPG_ERROR_AUTORECONF = YES
|
|
|
|
LIBGPG_ERROR_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--enable-maintainer-mode \
|
|
--enable-shared \
|
|
--disable-doc \
|
|
--disable-languages \
|
|
--disable-static \
|
|
--disable-tests
|
|
|
|
libgpg-error: $(DL_DIR)/$(LIBGPG_ERROR_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
pushd src/syscfg; \
|
|
ln -s lock-obj-pub.arm-unknown-linux-gnueabi.h lock-obj-pub.$(TARGET).h; \
|
|
ln -s lock-obj-pub.arm-unknown-linux-gnueabi.h lock-obj-pub.linux-uclibcgnueabi.h; \
|
|
popd; \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
mv $(TARGET_bindir)/gpg-error-config $(HOST_DIR)/bin
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/gpg-error-config
|
|
$(REWRITE_LIBTOOL)
|
|
-rm $(addprefix $(TARGET_bindir)/,gpg-error gpgrt-config)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBGCRYPT_VER = 1.8.5
|
|
LIBGCRYPT_DIR = libgcrypt-$(LIBGCRYPT_VER)
|
|
LIBGCRYPT_SOURCE = libgcrypt-$(LIBGCRYPT_VER).tar.gz
|
|
LIBGCRYPT_SITE = ftp://ftp.gnupg.org/gcrypt/libgcrypt
|
|
|
|
$(DL_DIR)/$(LIBGCRYPT_SOURCE):
|
|
$(DOWNLOAD) $(LIBGCRYPT_SITE)/$(LIBGCRYPT_SOURCE)
|
|
|
|
LIBGCRYPT_DEPS = libgpg-error
|
|
|
|
LIBGCRYPT_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--enable-maintainer-mode \
|
|
--enable-silent-rules \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--disable-tests
|
|
|
|
libgcrypt: $(LIBGCRYPT_DEPS) $(DL_DIR)/$(LIBGCRYPT_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
mv $(TARGET_bindir)/libgcrypt-config $(HOST_DIR)/bin
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/libgcrypt-config
|
|
$(REWRITE_LIBTOOL)
|
|
-rm $(addprefix $(TARGET_bindir)/,dumpsexp hmac256 mpicalc)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBAACS_VER = 0.9.0
|
|
LIBAACS_DIR = libaacs-$(LIBAACS_VER)
|
|
LIBAACS_SOURCE = libaacs-$(LIBAACS_VER).tar.bz2
|
|
LIBAACS_SITE = ftp://ftp.videolan.org/pub/videolan/libaacs/$(LIBAACS_VER)
|
|
|
|
$(DL_DIR)/$(LIBAACS_SOURCE):
|
|
$(DOWNLOAD) $(LIBAACS_SITE)/$(LIBAACS_SOURCE)
|
|
|
|
LIBAACS_DEPS = libgcrypt
|
|
|
|
LIBAACS_CONF_OPTS = \
|
|
--enable-maintainer-mode \
|
|
--enable-silent-rules \
|
|
--enable-shared \
|
|
--disable-static
|
|
|
|
libaacs: $(LIBAACS_DEPS) $(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_VER = 0.1.2
|
|
LIBBDPLUS_DIR = libbdplus-$(LIBBDPLUS_VER)
|
|
LIBBDPLUS_SOURCE = libbdplus-$(LIBBDPLUS_VER).tar.bz2
|
|
LIBBDPLUS_SITE = ftp://ftp.videolan.org/pub/videolan/libbdplus/$(LIBBDPLUS_VER)
|
|
|
|
$(DL_DIR)/$(LIBBDPLUS_SOURCE):
|
|
$(DOWNLOAD) $(LIBBDPLUS_SITE)/$(LIBBDPLUS_SOURCE)
|
|
|
|
LIBBDPLUS_DEPS = libaacs
|
|
|
|
LIBBDPLUS_CONF_OPTS = \
|
|
--enable-maintainer-mode \
|
|
--enable-silent-rules \
|
|
--enable-shared \
|
|
--disable-static
|
|
|
|
libbdplus: $(LIBBDPLUS_DEPS) $(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)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBXML2_VER = 2.9.10
|
|
LIBXML2_DIR = libxml2-$(LIBXML2_VER)
|
|
LIBXML2_SOURCE = libxml2-$(LIBXML2_VER).tar.gz
|
|
LIBXML2_SITE = http://xmlsoft.org/sources
|
|
|
|
$(DL_DIR)/$(LIBXML2_SOURCE):
|
|
$(DOWNLOAD) $(LIBXML2_SITE)/$(LIBXML2_SOURCE)
|
|
|
|
LIBXML2_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--without-python \
|
|
--without-debug \
|
|
--without-c14n \
|
|
--without-legacy \
|
|
--without-catalog \
|
|
--without-docbook \
|
|
--without-mem-debug \
|
|
--without-lzma \
|
|
--without-schematron
|
|
|
|
libxml2: $(DL_DIR)/$(LIBXML2_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
mv $(TARGET_bindir)/xml2-config $(HOST_DIR)/bin
|
|
$(REWRITE_CONFIG) $(HOST_DIR)/bin/xml2-config
|
|
$(REWRITE_LIBTOOL)
|
|
-rm -r $(TARGET_libdir)/cmake
|
|
-rm $(addprefix $(TARGET_libdir)/,xml2Conf.sh)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
PUGIXML_VER = 1.11.1
|
|
PUGIXML_DIR = pugixml-$(PUGIXML_VER)
|
|
PUGIXML_SOURCE = pugixml-$(PUGIXML_VER).tar.gz
|
|
PUGIXML_SITE = https://github.com/zeux/pugixml/releases/download/v$(PUGIXML_VER)
|
|
|
|
$(DL_DIR)/$(PUGIXML_SOURCE):
|
|
$(DOWNLOAD) $(PUGIXML_SITE)/$(PUGIXML_SOURCE)
|
|
|
|
pugixml: $(DL_DIR)/$(PUGIXML_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CMAKE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
-rm -r $(TARGET_libdir)/cmake
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBROXML_VER = 3.0.2
|
|
LIBROXML_DIR = libroxml-$(LIBROXML_VER)
|
|
LIBROXML_SOURCE = libroxml-$(LIBROXML_VER).tar.gz
|
|
LIBROXML_SITE = http://download.libroxml.net/pool/v3.x
|
|
|
|
$(DL_DIR)/$(LIBROXML_SOURCE):
|
|
$(DOWNLOAD) $(LIBROXML_SITE)/$(LIBROXML_SOURCE)
|
|
|
|
LIBROXML_CONF_OPTS = \
|
|
--disable-roxml
|
|
|
|
libroxml: $(DL_DIR)/$(LIBROXML_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
RTMPDUMP_DEPS = 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_DEPS) $(SOURCE_DIR)/$(NI_RTMPDUMP) | $(TARGET_DIR)
|
|
$(REMOVE)/$(NI_RTMPDUMP)
|
|
tar -C $(SOURCE_DIR) -cp $(NI_RTMPDUMP) --exclude-vcs | 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)
|
|
-rm $(addprefix $(TARGET_sbindir)/,rtmpgw rtmpsrv rtmpsuck)
|
|
$(REMOVE)/$(NI_RTMPDUMP)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBTIRPC_VER = 1.2.6
|
|
LIBTIRPC_DIR = libtirpc-$(LIBTIRPC_VER)
|
|
LIBTIRPC_SOURCE = libtirpc-$(LIBTIRPC_VER).tar.bz2
|
|
LIBTIRPC_SITE = https://sourceforge.net/projects/libtirpc/files/libtirpc/$(LIBTIRPC_VER)
|
|
|
|
$(DL_DIR)/$(LIBTIRPC_SOURCE):
|
|
$(DOWNLOAD) $(LIBTIRPC_SITE)/$(LIBTIRPC_SOURCE)
|
|
|
|
LIBTIRPC_AUTORECONF = YES
|
|
|
|
LIBTIRPC_CONF_OPTS = \
|
|
--disable-gssapi \
|
|
--enable-silent-rules
|
|
|
|
libtirpc: $(DL_DIR)/$(LIBTIRPC_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
ifeq ($(BOXSERIES),hd1)
|
|
$(SED) '/^\(udp\|tcp\)6/ d' $(TARGET_sysconfdir)/netconfig
|
|
endif
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
CONFUSE_VER = 3.2.2
|
|
CONFUSE_DIR = confuse-$(CONFUSE_VER)
|
|
CONFUSE_SOURCE = confuse-$(CONFUSE_VER).tar.xz
|
|
CONFUSE_SITE = https://github.com/martinh/libconfuse/releases/download/v$(CONFUSE_VER)
|
|
|
|
$(DL_DIR)/$(CONFUSE_SOURCE):
|
|
$(DOWNLOAD) $(CONFUSE_SITE)/$(CONFUSE_SOURCE)
|
|
|
|
CONFUSE_CONF_OPTS = \
|
|
--docdir=$(REMOVE_docdir) \
|
|
--enable-silent-rules \
|
|
--enable-static \
|
|
--disable-shared
|
|
|
|
confuse: $(DL_DIR)/$(CONFUSE_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBITE_VER = 2.0.2
|
|
LIBITE_DIR = libite-$(LIBITE_VER)
|
|
LIBITE_SOURCE = libite-$(LIBITE_VER).tar.xz
|
|
LIBITE_SITE = https://github.com/troglobit/libite/releases/download/v$(LIBITE_VER)
|
|
|
|
$(DL_DIR)/$(LIBITE_SOURCE):
|
|
$(DOWNLOAD) $(LIBITE_SITE)/$(LIBITE_SOURCE)
|
|
|
|
LIBITE_CONF_OPTS = \
|
|
--docdir=$(REMOVE_docdir) \
|
|
--enable-silent-rules \
|
|
--enable-static \
|
|
--disable-shared
|
|
|
|
libite: $(DL_DIR)/$(LIBITE_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBMAD_VER = 0.15.1b
|
|
LIBMAD_DIR = libmad-$(LIBMAD_VER)
|
|
LIBMAD_SOURCE = libmad-$(LIBMAD_VER).tar.gz
|
|
LIBMAD_SITE = https://sourceforge.net/projects/mad/files/libmad/$(LIBMAD_VER)
|
|
|
|
$(DL_DIR)/$(LIBMAD_SOURCE):
|
|
$(DOWNLOAD) $(LIBMAD_SITE)/$(LIBMAD_SOURCE)
|
|
|
|
LIBMAD_AUTORECONF = YES
|
|
|
|
LIBMAD_CONF_OPTS = \
|
|
--enable-shared=yes \
|
|
--enable-accuracy \
|
|
--enable-fpm=arm \
|
|
--enable-sso
|
|
|
|
libmad: $(DL_DIR)/$(LIBMAD_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBVORBIS_VER = 1.3.7
|
|
LIBVORBIS_DIR = libvorbis-$(LIBVORBIS_VER)
|
|
LIBVORBIS_SOURCE = libvorbis-$(LIBVORBIS_VER).tar.xz
|
|
LIBVORBIS_SITE = https://downloads.xiph.org/releases/vorbis
|
|
|
|
$(DL_DIR)/$(LIBVORBIS_SOURCE):
|
|
$(DOWNLOAD) $(LIBVORBIS_SITE)/$(LIBVORBIS_SOURCE)
|
|
|
|
LIBVORBIS_DEPS = libogg
|
|
|
|
LIBVORBIS_AUTORECONF = YES
|
|
|
|
LIBVORBIS_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--disable-docs \
|
|
--disable-examples \
|
|
--disable-oggtest
|
|
|
|
libvorbis: $(LIBVORBIS_DEPS) $(DL_DIR)/$(LIBVORBIS_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBVORBISIDEC_VER = 1.2.1+git20180316
|
|
LIBVORBISIDEC_DIR = libvorbisidec-$(LIBVORBISIDEC_VER)
|
|
LIBVORBISIDEC_SOURCE = libvorbisidec_$(LIBVORBISIDEC_VER).orig.tar.gz
|
|
LIBVORBISIDEC_SITE = https://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec
|
|
|
|
$(DL_DIR)/$(LIBVORBISIDEC_SOURCE):
|
|
$(DOWNLOAD) $(LIBVORBISIDEC_SITE)/$(LIBVORBISIDEC_SOURCE)
|
|
|
|
LIBVORBISIDEC_DEPS = libogg
|
|
|
|
LIBVORBISIDEC_AUTORECONF = YES
|
|
|
|
libvorbisidec: $(LIBVORBISIDEC_DEPS) $(DL_DIR)/$(LIBVORBISIDEC_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(SED) '122 s/^/#/' configure.in; \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBOGG_VER = 1.3.4
|
|
LIBOGG_DIR = libogg-$(LIBOGG_VER)
|
|
LIBOGG_SOURCE = libogg-$(LIBOGG_VER).tar.gz
|
|
LIBOGG_SITE = http://downloads.xiph.org/releases/ogg
|
|
|
|
$(DL_DIR)/$(LIBOGG_SOURCE):
|
|
$(DOWNLOAD) $(LIBOGG_SITE)/$(LIBOGG_SOURCE)
|
|
|
|
LIBOGG_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--enable-shared
|
|
|
|
libogg: $(DL_DIR)/$(LIBOGG_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBEXIF_VER = 0.6.22
|
|
LIBEXIF_DIR = libexif-$(LIBEXIF_VER)
|
|
LIBEXIF_SOURCE = libexif-$(LIBEXIF_VER).tar.xz
|
|
LIBEXIF_SITE = https://github.com/libexif/libexif/releases/download/libexif-$(subst .,_,$(LIBEXIF_VER))-release
|
|
|
|
$(DL_DIR)/$(LIBEXIF_SOURCE):
|
|
$(DOWNLOAD) $(LIBEXIF_SITE)/$(LIBEXIF_SOURCE)
|
|
|
|
LIBEXIF_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--with-doc-dir=$(REMOVE_docdir)
|
|
|
|
libexif: $(DL_DIR)/$(LIBEXIF_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
FRIBIDI_VER = 1.0.10
|
|
FRIBIDI_DIR = fribidi-$(FRIBIDI_VER)
|
|
FRIBIDI_SOURCE = fribidi-$(FRIBIDI_VER).tar.xz
|
|
FRIBIDI_SITE = https://github.com/fribidi/fribidi/releases/download/v$(FRIBIDI_VER)
|
|
|
|
$(DL_DIR)/$(FRIBIDI_SOURCE):
|
|
$(DOWNLOAD) $(FRIBIDI_SITE)/$(FRIBIDI_SOURCE)
|
|
|
|
FRIBIDI_CONF_OPTS = \
|
|
--disable-debug \
|
|
--disable-deprecated
|
|
|
|
fribidi: $(DL_DIR)/$(FRIBIDI_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBFFI_VER = 3.3
|
|
LIBFFI_DIR = libffi-$(LIBFFI_VER)
|
|
LIBFFI_SOURCE = libffi-$(LIBFFI_VER).tar.gz
|
|
LIBFFI_SITE = https://github.com/libffi/libffi/releases/download/v$(HOST_LIBFFI_VER)
|
|
|
|
$(DL_DIR)/$(LIBFFI_SOURCE):
|
|
$(DOWNLOAD) $(LIBFFI_SITE)/$(LIBFFI_SOURCE)
|
|
|
|
LIBFFI_AUTORECONF = YES
|
|
|
|
LIBFFI_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
$(if $(filter $(BOXSERIES),hd1),--enable-static --disable-shared)
|
|
|
|
libffi: $(DL_DIR)/$(LIBFFI_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
GLIB2_VER = 2.56.3
|
|
GLIB2_DIR = glib-$(GLIB2_VER)
|
|
GLIB2_SOURCE = glib-$(GLIB2_VER).tar.xz
|
|
GLIB2_SITE = https://ftp.gnome.org/pub/gnome/sources/glib/$(basename $(GLIB2_VER))
|
|
|
|
$(DL_DIR)/$(GLIB2_SOURCE):
|
|
$(DOWNLOAD) $(GLIB2_SITE)/$(GLIB2_SOURCE)
|
|
|
|
GLIB2_DEPS = zlib libffi
|
|
ifeq ($(BOXSERIES),hd2)
|
|
GLIB2_DEPS += gettext
|
|
endif
|
|
|
|
GLIB2_AUTORECONF = YES
|
|
|
|
GLIB2_CONF_OPTS = \
|
|
--bindir=$(REMOVE_bindir) \
|
|
--datadir=$(REMOVE_datadir) \
|
|
$(if $(filter $(BOXSERIES),hd1),--enable-static --disable-shared) \
|
|
--cache-file=arm-linux.cache \
|
|
--disable-debug \
|
|
--disable-selinux \
|
|
--disable-libmount \
|
|
--disable-fam \
|
|
--disable-gtk-doc \
|
|
--disable-gtk-doc-html \
|
|
--disable-compile-warnings \
|
|
--with-threads="posix" \
|
|
--with-pcre=internal
|
|
|
|
ifeq ($(BOXTYPE),$(filter $(BOXTYPE),armbox mipsbox))
|
|
GLIB2_DEPS += libiconv
|
|
GLIB2_CONF_OPTS += --with-libiconv=gnu
|
|
endif
|
|
|
|
glib2: $(GLIB2_DEPS) $(DL_DIR)/$(GLIB2_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
echo "ac_cv_type_long_long=yes" > arm-linux.cache; \
|
|
echo "glib_cv_stack_grows=no" >> arm-linux.cache; \
|
|
echo "glib_cv_uscore=no" >> arm-linux.cache; \
|
|
echo "glib_cv_va_copy=no" >> arm-linux.cache; \
|
|
echo "glib_cv_va_val_copy=yes" >> arm-linux.cache; \
|
|
echo "ac_cv_func_posix_getpwuid_r=yes" >> arm-linux.cache; \
|
|
echo "ac_cv_func_posix_getgrgid_r=yes" >> arm-linux.cache; \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
ALSA_LIB_VER = 1.2.4
|
|
ALSA_LIB_DIR = alsa-lib-$(ALSA_LIB_VER)
|
|
ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VER).tar.bz2
|
|
ALSA_LIB_SITE = https://www.alsa-project.org/files/pub/lib
|
|
|
|
$(DL_DIR)/$(ALSA_LIB_SOURCE):
|
|
$(DOWNLOAD) $(ALSA_LIB_SITE)/$(ALSA_LIB_SOURCE)
|
|
|
|
ALSA_LIB_AUTORECONF = YES
|
|
|
|
ALSA_LIB_CONF_OPTS = \
|
|
--with-alsa-devdir=/dev/snd/ \
|
|
--with-plugindir=$(libdir)/alsa \
|
|
--without-debug \
|
|
--with-debug=no \
|
|
--with-versioned=no \
|
|
--enable-symbolic-functions \
|
|
--disable-aload \
|
|
--disable-rawmidi \
|
|
--disable-resmgr \
|
|
--disable-old-symbols \
|
|
--disable-alisp \
|
|
--disable-ucm \
|
|
--disable-hwdep \
|
|
--disable-python \
|
|
--disable-topology
|
|
|
|
alsa-lib: $(DL_DIR)/$(ALSA_LIB_SOURCE)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(APPLY_PATCHES); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
find $(TARGET_datadir)/alsa/cards/ -name '*.conf' ! -name 'aliases.conf' | xargs --no-run-if-empty rm
|
|
find $(TARGET_datadir)/alsa/pcm/ -name '*.conf' ! -name 'default.conf' ! -name 'dmix.conf' ! -name 'dsnoop.conf' | xargs --no-run-if-empty rm
|
|
-rm -r $(TARGET_datadir)/aclocal
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
POPT_VER = 1.16
|
|
POPT_DIR = popt-$(POPT_VER)
|
|
POPT_SOURCE = popt-$(POPT_VER).tar.gz
|
|
POPT_SITE = ftp://anduin.linuxfromscratch.org/BLFS/popt
|
|
|
|
$(DL_DIR)/$(POPT_SOURCE):
|
|
$(DOWNLOAD) $(POPT_SITE)/$(POPT_SOURCE)
|
|
|
|
POPT_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir)
|
|
|
|
popt: $(DL_DIR)/$(POPT_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
LIBICONV_VER = 1.15
|
|
LIBICONV_DIR = libiconv-$(LIBICONV_VER)
|
|
LIBICONV_SOURCE = libiconv-$(LIBICONV_VER).tar.gz
|
|
LIBICONV_SITE = $(GNU_MIRROR)/libiconv
|
|
|
|
$(DL_DIR)/$(LIBICONV_SOURCE):
|
|
$(DOWNLOAD) $(LIBICONV_SITE)/$(LIBICONV_SOURCE)
|
|
|
|
LIBICONV_CONF_ENV = \
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) -fPIC"
|
|
|
|
LIBICONV_CONF_OPTS = \
|
|
--datarootdir=$(REMOVE_datarootdir) \
|
|
--enable-static \
|
|
--disable-shared \
|
|
--enable-relocatable
|
|
|
|
libiconv: $(DL_DIR)/$(LIBICONV_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(SED) '/preload/d' Makefile.in; \
|
|
$(CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REWRITE_LIBTOOL)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
GRAPHLCD_BASE_VER = git
|
|
GRAPHLCD_BASE_DIR = graphlcd-base.$(GRAPHLCD_BASE_VER)
|
|
GRAPHLCD_BASE_SOURCE = graphlcd-base.$(GRAPHLCD_BASE_VER)
|
|
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_DEPS = freetype libiconv libusb
|
|
|
|
graphlcd-base: $(GRAPHLCD_BASE_DEPS) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(GET-GIT-SOURCE) $(PKG_SITE)/$(PKG_SOURCE) $(DL_DIR)/$(PKG_SOURCE)
|
|
$(CPDIR)/$(PKG_SOURCE)
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(call apply_patches,$(addprefix $(PKG_PATCHES_DIR)/,$(PKG_PATCH))); \
|
|
$(TARGET_CONFIGURE_ENV) \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR) PREFIX=$(prefix)
|
|
-rm -r $(TARGET_sysconfdir)/udev
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|