2005-04-20 22:36:16 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=usbutils
|
2005-06-05 20:40:57 +03:00
|
|
|
PKG_VERSION:=0.71
|
2005-04-20 22:36:16 +03:00
|
|
|
PKG_RELEASE:=1
|
2005-06-07 14:30:41 +03:00
|
|
|
PKG_MD5SUM:=479d7c7098ef44cc95e7978fd71c712c
|
2005-04-20 22:36:16 +03:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=@SF/linux-usb
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2005-05-15 12:16:29 +03:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
2005-04-20 22:36:16 +03:00
|
|
|
|
2005-05-15 12:16:29 +03:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
2005-04-20 22:36:16 +03:00
|
|
|
|
2005-05-15 12:16:29 +03:00
|
|
|
$(eval $(call PKG_template,LSUSB,lsusb,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-04-20 22:36:16 +03:00
|
|
|
|
2005-05-15 12:16:29 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
2005-04-20 22:36:16 +03:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
./configure \
|
2005-05-15 12:16:29 +03:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
2005-04-20 22:36:16 +03:00
|
|
|
);
|
2005-05-20 00:30:44 +03:00
|
|
|
touch $@
|
2005-04-20 22:36:16 +03:00
|
|
|
|
2005-05-15 12:16:29 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-05-20 00:30:44 +03:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
2005-05-15 12:16:29 +03:00
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
2005-04-20 22:36:16 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2005-05-15 12:16:29 +03:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2005-05-20 00:30:44 +03:00
|
|
|
all install
|
|
|
|
touch $@
|
2005-04-20 22:36:16 +03:00
|
|
|
|
2005-05-15 12:16:29 +03:00
|
|
|
$(IPKG_LSUSB):
|
|
|
|
install -d -m0755 $(IDIR_LSUSB)/usr/share
|
2005-06-08 22:54:05 +03:00
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/share/usb.ids $(IDIR_LSUSB)/usr/share/
|
2005-05-15 12:16:29 +03:00
|
|
|
install -d -m0755 $(IDIR_LSUSB)/usr/sbin
|
2005-06-08 22:54:05 +03:00
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(IDIR_LSUSB)/usr/sbin/
|
2005-05-15 12:16:29 +03:00
|
|
|
$(RSTRIP) $(IDIR_LSUSB)
|
2005-04-20 22:36:16 +03:00
|
|
|
$(IPKG_BUILD) $(IDIR_LSUSB) $(PACKAGE_DIR)
|