packages/neon: force use of LFS and 64-bit off_t here as well
[packages.git] / utils / sg3-utils / Makefile
1
2 # Copyright (C) 2009 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:=sg3-utils
11 PKG_VERSION:=1.24
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/s/$(PKG_NAME)
16 PKG_MD5SUM:=9e1b8811b013d8f97d8ea2e0942cebad
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/sg3-utils
21   SECTION:=utils
22   CATEGORY:=Utilities
23   DEPENDS:=+kmod-usb-storage
24   TITLE:=sg3 scsi utilities
25   URL:=http://sg.danny.cz/sg/sg3_utils.html
26 endef
27
28 define Package/sg3-utils/description
29   The package includes a number of utilities to allow a user
30   to use the sg interface to find out low-level information
31   about any SCSI device.
32 endef
33
34 define Build/Configure
35 endef
36
37
38 define Build/Compile
39         $(MAKE) -C $(PKG_BUILD_DIR) -f no_lib/Makefile.linux_static \
40                 DESTDIR=$(STAGING_DIR) \
41                 CC="$(TARGET_CC)" \
42                 CFLAGS="$(TARGET_CFLAGS) -DSG3_UTILS_LINUX" \
43                 sg_start
44 endef
45
46
47 define Package/sg3-utils/install
48         $(INSTALL_DIR) $(1)/usr/bin
49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/sg_start $(1)/usr/bin
50 endef
51
52
53 $(eval $(call BuildPackage,sg3-utils))