fix chillispot endianness bugs (thx, SeG), fixes #2404
[openwrt/svn-archive/archive.git] / admin / gkrellmd / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gkrellmd
12 PKG_VERSION:=2.2.10
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=http://members.dslextreme.com/users/billw/gkrellm/
16 PKG_SOURCE:=gkrellm-$(PKG_VERSION).tar.bz2
17 PKG_MD5SUM:=57ef0525c0997ac2e7720712811f5a84
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/gkrellm-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gkrellmd
26 SECTION:=admin
27 CATEGORY:=Administration
28 DEPENDS:=+glib1
29 TITLE:=System monitoring daemon
30 URL:=http://gkrellm.net/
31 endef
32
33 define Build/Compile
34 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
35 LDFLAGS="$(EXTRA_LDFLAGS) " \
36 $(MAKE) -C $(PKG_BUILD_DIR)/server \
37 CC="$(TARGET_CC)" \
38 glib12="yes" \
39 GLIB12_LIB="-L$(STAGING_DIR)/usr/lib -lglib -lgmodule" \
40 GLIB12_INCLUDE="-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include"
41 endef
42
43 define Package/gkrellmd/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/server/$(PKG_NAME) $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/etc
47 $(INSTALL_CONF) $(PKG_BUILD_DIR)/server/$(PKG_NAME).conf $(1)/etc/
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) ./files/gkrellmd.init $(1)/etc/init.d/gkrellmd
50 endef
51
52 $(eval $(call BuildPackage,gkrellmd))