Modify

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#13274 closed enhancement (not_a_bug)

libftdi1

Reported by: mgerzsenyi@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Attitude Adjustment 12.09 Beta
Keywords: libftdi1 Cc: mgerzsenyi@…

Description

Hi!

There is a new libfdti on http://www.intra2net.com/en/developer/libftdi/download.php.
They switch version from 0.20 to 1.0.
I tried to modify my Makefile, but it won't build.
Is there any effort to change it to the new version?
Here is my modified Makefile:

#
# Copyright (C) 2011 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:=libftdi1
PKG_VERSION:=1.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/

PKG_MD5SUM:=e02dd77ee10b82b5edfbb8c199185bbf

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/libftdi
  SECTION:=libs
  CATEGORY:=Libraries
  DEPENDS:=+libusb
  TITLE:=library to talk to FTDI chips
  URL:=http://www.intra2net.com/en/developer/libftdi/
endef

define Package/libftdi/description
  libFTDI - FTDI USB driver with bitbang mode
  libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang mode. 
  The library is linked with your program in userspace, no kernel driver required.
endef

define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/ftdi.h $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.{a,so} $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so* $(1)/usr/lib/
endef

define Package/libftdi/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so.* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libftdi))

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by jogo

  • Resolution set to not_a_bug
  • Status changed from new to closed

Please use the forums, IRC or mailing lists for help, this isn't a support forum.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:3 Changed 3 years ago by anonymous

svn up
Updating '.':
At revision 44634.

make[5]: Leaving directory '/home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1'
make[4]: Leaving directory '/home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1'
touch /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/.built
mkdir -p /home/bum/openwrt/barrier_breaker/bin/lantiq/packages /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-lantiq/avrdude/CONTROL /home/bum/openwrt/barrier_breaker/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/pkginfo
install -d -m0755 /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-lantiq/avrdude/etc
install -m0600 /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-install/etc/avrdude.conf /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-lantiq/avrdude/etc/
install -d -m0755 /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-lantiq/avrdude/usr/bin
install -m0755 /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-install/usr/bin/avrdude /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-lantiq/avrdude/usr/bin/
find /home/bum/openwrt/barrier_breaker/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/avrdude-6.0.1/ipkg-lantiq/avrdude -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package avrdude is missing dependencies for the following libraries:
libftdi1.so.2
Makefile:61: recipe for target '/home/bum/openwrt/barrier_breaker/bin/lantiq/packages/oldpackages/avrdude_6.0.1-1_lantiq.ipk' failed
make[3]: * /home/bum/openwrt/barrier_breaker/bin/lantiq/packages/oldpackages/avrdude_6.0.1-1_lantiq.ipk Error 1
make[3]: Leaving directory '/home/bum/openwrt/barrier_breaker/feeds/oldpackages/utils/avrdude'
package/Makefile:173: recipe for target 'package/feeds/oldpackages/avrdude/compile' failed
make[2]: Leaving directory '/home/bum/openwrt/barrier_breaker'
package/Makefile:170: recipe for target '/home/bum/openwrt/barrier_breaker/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: Leaving directory '/home/bum/openwrt/barrier_breaker'
/home/bum/openwrt/barrier_breaker/include/toplevel.mk:171: recipe for target 'world' failed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.