Tina 添加tmux,fftw库
-
添加tmux
Makefile放package/utils/tmux下
# # Copyright (C) 2009-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=tmux PKG_VERSION:=3.4 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/tmux/tmux/releases/download/$(PKG_VERSION) PKG_HASH:=ae135ec37c1bf6b7750a84e3a35e93d91033a806943e034521c8af51b12d95df PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com> PKG_LICENSE:=ISC PKG_LICENSE_FILES:=COPYING PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 PKG_FIXUP:=autoreconf include $(BUILD_DIR)/package.mk define Package/tmux SECTION:=utils CATEGORY:=Utilities SUBMENU:=Terminal TITLE:=Terminal multiplexer DEPENDS:=+libncurses +libevent2 +libpthread +librt URL:=http://tmux.github.io/ endef define Package/tmux/description tmux is a modern, BSD-licensed alternative to GNU screen. endef define Package/tmux/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tmux $(1)/usr/bin/ endef $(eval $(call BuildPackage,tmux))
添加fftw库
文件放package/libs/fftw3下
# # Copyright (C) 2007-2017 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=fftw3 PKG_VERSION:=3.3.10 PKG_RELEASE:=1 PKG_LICENSE:=GPL-2.0+ PKG_SOURCE:=fftw-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.fftw.org PKG_MD5SUM:=927e481edbb32575397eb3d62535a856 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/fftw-$(PKG_VERSION) PKG_FIXUP:=autoreconf include $(BUILD_DIR)/package.mk define Package/fftw3 SECTION:=libs CATEGORY:=Libraries DEPENDS:=@!avr32 +libpthread VARIANT:=double TITLE:=Fast Fourier transform library URL:=http://www.fftw.org/ MAINTAINER:=Vladimir Ulrich <admin@evl.su> endef define Package/fftw3f $(call Package/fftw3) VARIANT:=single TITLE+= (single precision) endef define Package/fftw3l $(call Package/fftw3) DEPENDS:=@BROKEN VARIANT:=long-double TITLE+= (long-double precision) endef define Package/fftw3/description FFTW is a collection of fast C routines for computing the Discrete Fourier Transform in one or more dimensions. It includes complex, real, and parallel transforms, and can handle arbitrary array sizes efficiently. endef define Package/fftw3f/description $(call Package/fftw3/description) This package contains the single precision library. endef define Package/fftw3l/description $(call Package/fftw3/description) This package contains the long-double precision library. endef TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --prefix=/usr \ --without-libiconv-prefix \ --without-libintl-prefix \ --enable-shared \ --enable-threads \ --enable-type-prefix \ --disable-debug \ --disable-fortran ifeq ($(BUILD_VARIANT), single) CONFIGURE_ARGS += \ --enable-single endif ifeq ($(BUILD_VARIANT), long-double) CONFIGURE_ARGS += \ --enable-long-double endif define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/fftw3.h $(1)/usr/include $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3*.{a,la} $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3*.so* $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ endef define Package/fftw3/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3.so* $(1)/usr/lib/ endef define Package/fftw3f/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3f.so* $(1)/usr/lib/ endef define Package/fftw3l/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3l.so* $(1)/usr/lib/ endef $(eval $(call BuildPackage,fftw3)) $(eval $(call BuildPackage,fftw3f)) $(eval $(call BuildPackage,fftw3l))
-
大佬能添加个可以显示图片的库吗,jpg
-
@lyg116 自带fbviewer的
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号