Root/units/Makefile

1# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=units
6PKG_VERSION:=1.88
7PKG_RELEASE:=1
8#http://ftp.gnu.org/gnu/units/units-1.88.tar.gz
9
10PKG_SOURCE:=units-$(PKG_VERSION).tar.gz
11    PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/units
12    PKG_MD5SUM:=9b2ee6e7e0e9c62741944cf33fc8a656
13    PKG_CAT:=zcat
14
15PKG_BUILD_DIR:=$(BUILD_DIR)/units-$(PKG_VERSION)
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/units
20    SECTION:=utils
21    CATEGORY:=Utilities
22    TITLE:=Units
23    URL:=http://www.gnu.org/software/units/units.html#downloading
24    DEPENDS:=+libreadline +libncurses
25endef
26
27define Package/units/description
28    Simple unit converter
29endef
30
31#define Build/Configure
32# $(call Build/Configure/Default, \
33# --prefix=/usr \
34# )
35#endef
36
37define Build/Configure
38    (cd $(PKG_BUILD_DIR); \
39        $(TARGET_CONFIGURE_OPTS) \
40        CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
41        UNAME_S="Linux" \
42        ./configure \
43        --host=mipsel \
44            --prefix=/usr \
45    );
46endef
47
48
49define Package/units/install
50    $(INSTALL_DIR) $(1)/usr/bin/
51    $(INSTALL_BIN) $(PKG_BUILD_DIR)/units $(1)/usr/bin/
52     $(INSTALL_DIR) $(1)/usr/share/
53    $(INSTALL_DATA) $(PKG_BUILD_DIR)/units.dat $(1)/usr/share/
54endef
55
56$(eval $(call BuildPackage,units))
57

Archive Download this file



interactive