summaryrefslogtreecommitdiff
path: root/package/rrdtool/Makefile
blob: 36d642daf259bf2148d5349aa1b474ae44d1d857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		rrdtool
PKG_VERSION:=		1.2.30
PKG_RELEASE:=		1
PKG_MD5SUM:=		19b24f7184a8dbf7b48c1bbb565ad9fb
PKG_DESCR:=		Round Robin Database (RRD) management library and tools
PKG_SECTION:=		libs
PKG_DEPENDS:=		libart libfreetype libpng zlib
PKG_BUILDDEP+=		libxml2 cgilib freetype libart libpng
PKG_URL:=		http://oss.oetiker.ch/
PKG_SITES:=		http://oss.oetiker.ch/rrdtool/pub/

PKG_SECTION_RRDCGI:=	misc
PKG_SECTION_RRDTOOL:=	misc

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LIBRRD,librrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,RRDCGI,rrdcgi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION_RRDCGI}))
$(eval $(call PKG_template,RRDTOOL,rrdtool,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION_RRDTOOL}))

CONFIGURE_ENV+=		rd_cv_ieee_works=yes
CONFIGURE_ARGS+=	--enable-rrdcgi \
			--disable-mmap \
			--disable-perl \
			--disable-ruby \
			--disable-tcl \
			--disable-python \
			--without-x \
			--with-rrd-default-font=/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
TCPPFLAGS+=		-I${STAGING_DIR}/usr/include/freetype2

post-install:
	${INSTALL_DIR} ${IDIR_RRDTOOL}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/rrdtool ${WRKINST}/usr/bin/rrdupdate \
	               ${IDIR_RRDTOOL}/usr/bin/
	${INSTALL_DIR} ${IDIR_RRDCGI}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/rrdcgi ${IDIR_RRDCGI}/usr/bin/
	${INSTALL_DIR} ${IDIR_LIBRRD}/usr/lib
	${CP} ${WRKINST}/usr/lib/librrd.so.* ${IDIR_LIBRRD}/usr/lib/
	${INSTALL_DIR} ${IDIR_LIBRRD}/usr/share/rrdtool/fonts
	${CP} ${WRKBUILD}/src/DejaVuSansMono-Roman.ttf \
		${IDIR_LIBRRD}/usr/share/rrdtool/fonts/

include ${TOPDIR}/mk/pkg-bottom.mk