libftdi1: Don't build examples
Add PKG_BUILD_PARALLEL for faster compilation. Replace InstallDev section with CMAKE_INSTALL Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
7276289795
commit
2e12e13a3b
1 changed files with 9 additions and 23 deletions
|
@ -9,17 +9,18 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libftdi1
|
PKG_NAME:=libftdi1
|
||||||
PKG_VERSION:=1.4
|
PKG_VERSION:=1.4
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
|
PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
|
||||||
PKG_HASH:=ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681cb31b74
|
PKG_HASH:=ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681cb31b74
|
||||||
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
|
||||||
|
|
||||||
PKG_LICENSE:=LGPL-2.0
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
||||||
|
PKG_LICENSE:=LGPL-2.1-only
|
||||||
PKG_LICENSE_FILES:=COPYING.LIB
|
PKG_LICENSE_FILES:=COPYING.LIB
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
CMAKE_INSTALL:=1
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_USE_MIPS16:=0
|
PKG_USE_MIPS16:=0
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -58,26 +59,11 @@ define Package/ftdi_eeprom/description
|
||||||
read. Otherwise, you will still get the old values.
|
read. Otherwise, you will still get the old values.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CMAKE_OPTIONS:= \
|
CMAKE_OPTIONS += \
|
||||||
|
-DBoost_NO_BOOST_CMAKE=ON \
|
||||||
-DBUILD_TESTS=OFF \
|
-DBUILD_TESTS=OFF \
|
||||||
-DBoost_NO_BOOST_CMAKE=ON
|
-DEXAMPLES=OFF \
|
||||||
|
-DFTDI_EEPROM=OFF
|
||||||
define Build/InstallDev
|
|
||||||
$(INSTALL_DIR) $(1)/usr/include/libftdi1/
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/libftdi1/ftdi.h $(1)/usr/include/libftdi1/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi1.{a,so*} $(1)/usr/lib/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/cmake/libftdi1
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/libftdi1/* $(1)/usr/lib/cmake/libftdi1/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libftdi1.pc $(1)/usr/lib/pkgconfig/libftdi1.pc
|
|
||||||
$(SED) \
|
|
||||||
's,/usr/include,$$$${prefix}/include,g' \
|
|
||||||
$(1)/usr/lib/pkgconfig/libftdi1.pc
|
|
||||||
$(SED) \
|
|
||||||
's,/usr/lib,$$$${prefix}/lib,g' \
|
|
||||||
$(1)/usr/lib/pkgconfig/libftdi1.pc
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/libftdi1/install
|
define Package/libftdi1/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
|
Loading…
Reference in a new issue