3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=d61c5755cb77207f9ad3584b26e8bf08
10 PKG_SOURCE_URL
:=http
://people.ee.ethz.ch
/~oetiker
/webtools
/rrdtool
/pub
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBRRD
,librrd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,RRDCGI
,rrdcgi
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,RRDTOOL
,rrdtool
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/freetype2 -I$(STAGING_DIR)/usr/include/libart-2.0" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib " \
30 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
31 rd_cv_ieee_works
=yes \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
42 --libexecdir
=/usr
/lib \
44 --datadir=/usr
/share \
45 --localstatedir
=/var \
49 $(DISABLE_LARGEFILE
) \
60 --with-rrd-default-font
=/usr
/share
/rrdtool
/fonts
/DejaVuSansMono-Roman.ttf \
64 $(PKG_BUILD_DIR
)/.built
:
65 rm -rf
$(PKG_INSTALL_DIR
)
66 mkdir
-p
$(PKG_INSTALL_DIR
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 DESTDIR
="$(PKG_INSTALL_DIR)" \
73 install -d
-m0755
$(IDIR_RRDTOOL
)/usr
/bin
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/rrdtool
$(IDIR_RRDTOOL
)/usr
/bin
/
75 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/rrdupdate
$(IDIR_RRDTOOL
)/usr
/bin
/
76 $(RSTRIP
) $(IDIR_RRDTOOL
)
77 $(IPKG_BUILD
) $(IDIR_RRDTOOL
) $(PACKAGE_DIR
)
80 install -d
-m0755
$(IDIR_RRDCGI
)/usr
/bin
81 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/rrdcgi
$(IDIR_RRDCGI
)/usr
/bin
/
82 $(RSTRIP
) $(IDIR_RRDCGI
)
83 $(IPKG_BUILD
) $(IDIR_RRDCGI
) $(PACKAGE_DIR
)
86 install -d
-m0755
$(IDIR_LIBRRD
)/usr
/lib
87 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/librrd.so.
* $(IDIR_LIBRRD
)/usr
/lib
/
88 install -d
-m0755
$(IDIR_LIBRRD
)/usr
/share
/rrdtool
/fonts
89 cp
-fpR
$(PKG_BUILD_DIR
)/src
/DejaVuSansMono-Roman.ttf \
90 $(IDIR_LIBRRD
)/usr
/share
/rrdtool
/fonts
/
91 $(RSTRIP
) $(IDIR_LIBRRD
)
92 $(IPKG_BUILD
) $(IDIR_LIBRRD
) $(PACKAGE_DIR
)
94 $(STAGING_DIR
)/usr
/lib
/librrd.so
: $(PKG_BUILD_DIR
)/.built
95 mkdir
-p
$(STAGING_DIR
)/usr
/include
96 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/rrd.h
$(STAGING_DIR
)/usr
/include/
97 mkdir
-p
$(STAGING_DIR
)/usr
/lib
98 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/librrd.a
$(STAGING_DIR
)/usr
/lib
/
99 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/librrd.so
* $(STAGING_DIR
)/usr
/lib
/
102 install-dev
: $(STAGING_DIR
)/usr
/lib
/librrd.so
106 $(STAGING_DIR
)/usr
/include/rrd.h \
107 $(STAGING_DIR
)/usr
/lib
/librrd.a \
108 $(STAGING_DIR
)/usr
/lib
/librrd.so
* \
110 compile-targets
: install-dev
111 clean-targets
: uninstall-dev