3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=c466e2e7df95fa8e318e46437da87686
10 PKG_SOURCE_URL
:=http
://people.ee.ethz.ch
/~oetiker
/webtools
/rrdtool
/pub
/rrdtool-1.0.x
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/rrdtool-
$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBRRD1
,librrd1
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,RRDCGI1
,rrdcgi1
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,RRDTOOL1
,rrdtool1
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{status
,cache
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
30 rd_cv_ieee_works
=yes \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
60 $(PKG_BUILD_DIR
)/.built
:
61 rm -rf
$(PKG_INSTALL_DIR
)
62 mkdir
-p
$(PKG_INSTALL_DIR
)
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 DESTDIR
="$(PKG_INSTALL_DIR)" \
70 install -d
-m0755
$(IDIR_RRDTOOL1
)/usr
/bin
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/rrdtool
$(IDIR_RRDTOOL1
)/usr
/bin
/
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/rrdupdate
$(IDIR_RRDTOOL1
)/usr
/bin
/
73 $(RSTRIP
) $(IDIR_RRDTOOL1
)
74 $(IPKG_BUILD
) $(IDIR_RRDTOOL1
) $(PACKAGE_DIR
)
77 install -d
-m0755
$(IDIR_RRDCGI1
)/usr
/bin
78 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/rrdcgi
$(IDIR_RRDCGI1
)/usr
/bin
/
79 $(RSTRIP
) $(IDIR_RRDCGI1
)
80 $(IPKG_BUILD
) $(IDIR_RRDCGI1
) $(PACKAGE_DIR
)
83 install -d
-m0755
$(IDIR_LIBRRD1
)/usr
/lib
84 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/librrd.so.
* $(IDIR_LIBRRD1
)/usr
/lib
/
85 $(RSTRIP
) $(IDIR_LIBRRD1
)
86 $(IPKG_BUILD
) $(IDIR_LIBRRD1
) $(PACKAGE_DIR
)
88 $(STAGING_DIR
)/usr
/lib
/librrd.so
: $(PKG_BUILD_DIR
)/.built
89 mkdir
-p
$(STAGING_DIR
)/usr
/include
90 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/rrd.h
$(STAGING_DIR
)/usr
/include/
91 mkdir
-p
$(STAGING_DIR
)/usr
/lib
92 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/librrd.a
$(STAGING_DIR
)/usr
/lib
/
93 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/librrd.so
* $(STAGING_DIR
)/usr
/lib
/
96 install-dev
: $(STAGING_DIR
)/usr
/lib
/librrd.so
100 $(STAGING_DIR
)/usr
/include/rrd.h \
101 $(STAGING_DIR
)/usr
/lib
/librrd.a \
102 $(STAGING_DIR
)/usr
/lib
/librrd.so
* \
104 compile-targets
: install-dev
105 clean-targets
: uninstall-dev