[packages] elfutils: remove libintl hacks from makefile
[openwrt/svn-archive/archive.git] / utils / disktype / Makefile
1 #
2 # Copyright (C) 2010 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:=disktype
11 PKG_VERSION:=9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)/
16 PKG_MD5SUM:=25a673f162b9c01cd565109202559489
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/disktype
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Disk format detection
24 SUBMENU:=Filesystem
25 URL:=http://disktype.sourceforge.net
26 endef
27
28 define Package/disktype/description
29 The purpose of disktype is to detect the content format of a disk or disk image.
30 It knows about common file systems, partition tables, and boot codes.
31 The program is written in C and is designed to compile on any modern Unix flavour.
32 It is self-contained and in general works without special libraries or headers.
33 Some system-dependant features can be used to gather additional information.
34 endef
35
36 MAKE_FLAGS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"
37
38 define Package/disktype/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,disktype))