Makefile (1480B)
1 # 2 # Copyright (C) 2008-2017 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=pcmciautils 11 PKG_VERSION:=018 12 PKG_RELEASE:=3 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 15 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/pcmcia 16 PKG_MD5SUM:=5d85669b3440baa4532363da6caaf1b4 17 18 PKG_LICENSE:=GPL-2.0 19 PKG_LICENSE_FILES:=COPYING 20 PKG_MAINATINER:=Tomasz Maciej Nowak <tomek_n@o2.pl> 21 22 include $(INCLUDE_DIR)/package.mk 23 24 define Package/pcmciautils 25 SECTION:=utils 26 CATEGORY:=Utilities 27 DEPENDS:=+libsysfs @PCMCIA_SUPPORT 28 TITLE:=PCMCIA Utilities 29 URL:=http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html 30 endef 31 32 define Build/Compile 33 $(call Build/Compile/Default, \ 34 LD="$(TARGET_CC)" UDEV=false \ 35 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \ 36 -DPCMCIAUTILS_VERSION=\\\"$(PKG_VERSION)\\\"" \ 37 prefix=/usr all \ 38 ) 39 endef 40 41 define Package/pcmciautils/install 42 $(INSTALL_DIR) $(1)/usr/sbin/ 43 $(CP) $(PKG_BUILD_DIR)/pccardctl $(1)/usr/sbin/ 44 $(CP) $(PKG_BUILD_DIR)/pcmcia-check-broken-cis $(1)/usr/sbin/ 45 $(CP) $(PKG_BUILD_DIR)/pcmcia-socket-startup $(1)/usr/sbin/ 46 rm -f $(1)/usr/sbin/lspcmcia 47 ln -s pccardctl $(1)/usr/sbin/lspcmcia 48 $(INSTALL_DIR) $(1)/etc/pcmcia/ 49 $(CP) $(PKG_BUILD_DIR)/config/config.opts $(1)/etc/pcmcia/ 50 $(CP) files/* $(1)/ 51 endef 52 53 define Package/pcmciautils/conffiles 54 /etc/pcmcia/config.opts 55 endef 56 57 $(eval $(call BuildPackage,pcmciautils))