package clean up
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/gkrellm-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/gkrellmd
24 SECTION:=admin
25 CATEGORY:=Administration
26 DEPENDS:=+glib1
27 TITLE:=System monitoring daemon
28 URL:=http://gkrellm.net/
29 endef
30
31 define Build/Compile
32 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
33 LDFLAGS="$(EXTRA_LDFLAGS) " \
34 $(MAKE) -C $(PKG_BUILD_DIR)/server \
35 CC="$(TARGET_CC)" \
36 glib12="yes" \
37 GLIB12_LIB="-L$(STAGING_DIR)/usr/lib -lglib -lgmodule" \
38 GLIB12_INCLUDE="-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include"
39 endef
40
41 define Package/gkrellmd/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/server/$(PKG_NAME) $(1)/usr/bin/
44 $(INSTALL_DIR) $(1)/etc
45 $(INSTALL_CONF) $(PKG_BUILD_DIR)/server/$(PKG_NAME).conf $(1)/etc/
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/gkrellmd.init $(1)/etc/init.d/gkrellmd
48 endef
49
50 $(eval $(call BuildPackage,gkrellmd))