[packages] wxbase: update to v2.8.10, cleanup
[openwrt/svn-archive/archive.git] / libs / rrdtool-1.0.x / Makefile
1 #
2 # Copyright (C) 2006 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:=rrdtool1
11 PKG_VERSION:=1.0.50
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/rrdtool-$(PKG_VERSION)
15 PKG_SOURCE:=rrdtool-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:= \
17 http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.0.x \
18 http://www.fastmirrors.org/rrdtool/rrdtool-1.0.x \
19 ftp://ftp.sunet.se/pub/network/monitoring/rrdtool/rrdtool-1.0.x
20 PKG_MD5SUM:=c466e2e7df95fa8e318e46437da87686
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/librrd1
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+zlib
28 TITLE:=Round Robin Database (RRD) management library
29 URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
30 endef
31
32 define Package/librrd1/description
33 Round Robin Database (RRD) management library.
34 RRD is the Acronym for Round Robin Database. RRD is a system to store and
35 display time-series data (i.e. network bandwidth, machine-room temperature,
36 server load average). It stores the data in a very compact way that will
37 not expand over time, and it presents useful graphs by processing the data
38 to enforce a certain data density. It can be used either via simple wrapper
39 scripts (from shell or Perl) or via frontends that poll network devices and
40 put friendly user interface on it.
41
42 This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
43 librrd.so. The library is much smaller compared to the 1.2.x version with
44 separate dynamic linked libraries.
45
46 This package contains a shared library, used by other programs.
47 endef
48
49 define Package/rrdcgi1
50 SECTION:=utils
51 CATEGORY:=Utilities
52 DEPENDS:=+librrd1
53 TITLE:=Round Robin Database (RRD) CGI graphing tool
54 URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
55 endef
56
57 define Package/rrdcgi1/description
58 Round Robin Database (RRD) CGI graphing tool.
59 RRD is the Acronym for Round Robin Database. RRD is a system to store and
60 display time-series data (i.e. network bandwidth, machine-room temperature,
61 server load average). It stores the data in a very compact way that will
62 not expand over time, and it presents useful graphs by processing the data
63 to enforce a certain data density. It can be used either via simple wrapper
64 scripts (from shell or Perl) or via frontends that poll network devices and
65 put friendly user interface on it.
66
67 This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
68 librrd.so. The library is much smaller compared to the 1.2.x version with
69 separate dynamic linked libraries.
70
71 This package contains the rrdcgi tool used to create web pages containing
72 RRD graphs based on templates.
73 endef
74
75 define Package/rrdtool1
76 SECTION:=utils
77 CATEGORY:=Utilities
78 DEPENDS:=+librrd1
79 TITLE:=Round Robin Database (RRD) management tools
80 URL:=http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
81 endef
82
83 define Package/rrdtool1/description
84 Round Robin Database (RRD) management tools.
85 RRD is the Acronym for Round Robin Database. RRD is a system to store and
86 display time-series data (i.e. network bandwidth, machine-room temperature,
87 server load average). It stores the data in a very compact way that will
88 not expand over time, and it presents useful graphs by processing the data
89 to enforce a certain data density. It can be used either via simple wrapper
90 scripts (from shell or Perl) or via frontends that poll network devices and
91 put friendly user interface on it.
92
93 This is version 1.0.x with cgilib-0.4, gd1.3 and libpng-1.0.9 linked into
94 librrd.so. The library is much smaller compared to the 1.2.x version with
95 separate dynamic linked libraries.
96
97 This package contains command line tools used to manage RRDs.
98 endef
99
100 TARGET_CFLAGS += $(FPIC) --std=c99
101
102 CONFIGURE_ARGS += \
103 $(DISABLE_LARGEFILE) \
104 $(DISABLE_NLS) \
105 --enable-shared=yes \
106 --enable-static=yes \
107 --disable-rpath \
108 --with-gnu-ld \
109 --enable-local-zlib
110
111 CONFIGURE_VARS += \
112 ac_cv_path_PERL=no \
113 rd_cv_ieee_works=yes \
114 shrext_cmds=".so"
115
116 define Build/Compile
117 rm -rf $(PKG_INSTALL_DIR)
118 mkdir -p $(PKG_INSTALL_DIR)
119 $(MAKE) -C $(PKG_BUILD_DIR) \
120 DESTDIR="$(PKG_INSTALL_DIR)" \
121 shrext_cmds=".so" \
122 all install
123 endef
124
125 define Package/rrdtool1/install
126 $(INSTALL_DIR) $(1)/usr/bin
127 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rrd{tool,update} $(1)/usr/bin/
128 endef
129
130 define Package/rrdcgi1/install
131 $(INSTALL_DIR) $(1)/usr/bin
132 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(1)/usr/bin/
133 endef
134
135 define Package/librrd1/install
136 $(INSTALL_DIR) $(1)/usr/lib
137 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(1)/usr/lib/
138 endef
139
140 define Build/InstallDev
141 mkdir -p $(1)/usr/include
142 $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(1)/usr/include/
143 mkdir -p $(1)/usr/lib
144 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.{a,so*} $(1)/usr/lib/
145 endef
146
147 $(eval $(call BuildPackage,librrd1))
148 $(eval $(call BuildPackage,rrdcgi1))
149 $(eval $(call BuildPackage,rrdtool1))