source: packages/utils/firmwarehotplug/Makefile @ 12957

Last change on this file since 12957 was 12957, checked in by florian, 8 years ago

firmwarehotplug requires the non-free version of sdcc (#4066)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=firmwarehotplug
11PKG_VERSION:=0.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/linux-hotplug
16PKG_MD5SUM:=e5cf352b172f498e27b160167b981f24
17
18include $(INCLUDE_DIR)/package.mk
19
20# workaround for fedora sdcc naming changes
21ifneq ($(wildcard /usr/libexec/sdcc),)
22  export PATH:=$(PATH):/usr/libexec
23endif
24
25define Package/firmwarehotplug
26  SECTION:=utils
27  CATEGORY:=Utilities
28  DEPENDS:=@USB_SUPPORT +fxload
29  TITLE:=Hotplug firmware for EZ-USB microcontrollers
30  URL:=http://linux-hotplug.sourceforge.net/
31endef
32
33define Build/Compile
34        $(call Build/Compile/Default, \
35                OPT="$(TARGET_CFLAGS)" \
36                -C $(PKG_BUILD_DIR)/ezusb/midi/original \
37                DESTDIR="$(PKG_INSTALL_DIR)" \
38                all install \
39        )
40endef
41
42define Package/firmwarehotplug/install
43        $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
44        install -m755 $(PKG_BUILD_DIR)/ezusb/midi/original/Hotplug/ezusbmidi $(1)/etc/hotplug.d/usb
45        install -m644 $(PKG_BUILD_DIR)/ezusb/midi/original/Hotplug/ezusbmidi.usermap $(1)/etc/hotplug.d
46        $(INSTALL_DIR) $(1)/usr/share/usb/ezusbmidi
47        install -m644 $(PKG_BUILD_DIR)/ezusb/midi/original/ezusbmidi1x1.ihx $(1)/usr/share/usb/ezusbmidi
48        install -m644 $(PKG_BUILD_DIR)/ezusb/midi/original/ezusbmidi2x2.ihx $(1)/usr/share/usb/ezusbmidi
49endef
50
51$(eval $(call BuildPackage,firmwarehotplug))
52
53$(eval $(call RequireCommand,sdcc-nf, \
54        $(PKG_NAME) requires the SDCC Cross Compiler (sdcc). \
55))
Note: See TracBrowser for help on using the repository browser.