pkgsrc/databases/rrdtool/Makefile
skrll 6e0f1b27b1 Make a shared libcgi as rrdtool wants to link it into a DSO.
Rearrange several bits of the rrdtool build mechanism so that we're not
cheating quite as much. The end result is that rrdtool now compiles on
both ELF and a.out.

Closes pkg/14606 from Tim Preston <tim at flibble dot org>
2002-08-10 13:59:33 +00:00

63 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2002/08/10 13:59:34 skrll Exp $
#
DISTNAME= rrdtool-1.0.33
PKGREVISION= 1
CATEGORIES= databases graphics net
MASTER_SITES= http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool/pub/
MAINTAINER= wulf@ping.net.au
HOMEPAGE= http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool
COMMENT= Data analysis tool generating graphical representations
DEPENDS+= cgilib>=0.5nb1:../../www/cgilib
DEPENDS+= gd>=1.8.4nb1:../../graphics/gd
DEPENDS+= jpeg-6*:../../graphics/jpeg
#needs FPC code not found in older versions of NetBSD
NOT_FOR_PLATFORM= NetBSD-1.[0-4]*-alpha NetBSD-1.5-alpha \
NetBSD-1.5.*-alpha NetBSD-1.5[A-U]-alpha
USE_LIBTOOL= # defined
LTCONFIG_OVERRIDE= ${WRKSRC}/config/ltconfig
LTCONFIG_OVERRIDE+= ${WRKSRC}/contrib/php4/ltconfig
USE_GMAKE= # defined
USE_X11= # defined
GNU_CONFIGURE= # defined
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-shared
MAKE_ENV+= X11BASE=${X11BASE} X11PREFIX=${X11PREFIX}
USE_PERL5= # defined
PERL5_PACKLIST+= ${PERL5_SITEARCH}/auto/RRDp/.packlist
PERL5_PACKLIST+= ${PERL5_SITEARCH}/auto/RRDs/.packlist
post-patch:
cd ${WRKSRC}; \
files="perl-shared/Makefile.PL"; \
for file in $${files}; do \
${SED} -e "s|@X11BASE@|${X11BASE}|" \
-e "s|@LOCALBASE@|${LOCALBASE}|" \
$${file} > $${file}.new; \
${MV} -f $${file}.new $${file}; \
done
# tcl build not enabled at this time. If this is turned on, the
# following files & directory would have to be added to PLIST:
#
# lib/tclrrd1.0.21.so
# lib/tclrrd1.0.21/
# lib/tclrrd1.0.21/pkgIndex.tcl
#
#DEPENDS+= tcl-8.0.5:../../x11/tk
#
#CFLAGS+= -I${LOCALBASE}/include/tcl8.0
#CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
#CONFIGURE_ARGS+= --with-tcllib=${LOCALBASE}/lib/tcl8.0
#INSTALL_TARGET= install site-tcl-install
.include "../../mk/bsd.pkg.mk"