67127e0086
- Add LICENSE_FILE - Silence post-patch - Strip library
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# Created by: Dmitry Sivachenko <dima@Chg.RU>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rrdtool
|
|
PORTVERSION= 1.0.50
|
|
PORTREVISION= 6
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.0.x/
|
|
PKGNAMESUFFIX= 10
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Round Robin Database Tools
|
|
|
|
LICENSE= GPLv2 # or later
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
MAKE_ENV= PERL=${PERL}
|
|
|
|
CONFLICTS= rrdtool12-1.* rrdtool-1.*
|
|
|
|
USES= autoreconf pkgconfig perl5 libtool
|
|
USE_PERL5= build run
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shared --enable-local-zlib
|
|
CONFIGURE_ENV= PERL=${PERL} PERL_MAKE_OPTIONS="PREFIX=${PREFIX}"
|
|
CFLAGS:= ${CFLAGS:N-ffast-math}
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
OPTIONS_DEFINE= LATIN2 DOCS EXAMPLES
|
|
LATIN2_DESC= ISO-8859-2 fonts support
|
|
|
|
LATIN2_CONFIGURE_ENABLE= latin2
|
|
|
|
post-patch:
|
|
# fix perl5.18+ pod2x tool
|
|
@${REINPLACE_CMD} -e 's|IMG<|IMG ... E<|' \
|
|
${WRKSRC}/doc/rrdcgi.pod
|
|
@${REINPLACE_CMD} -e 's|rrdtutorial.es.pod||' \
|
|
${WRKSRC}/doc/Makefile.am \
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
post-install:
|
|
${CHMOD} u+w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/RRDs/RRDs.so
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/RRDs/RRDs.so
|
|
${CHMOD} u-w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/RRDs/RRDs.so
|
|
|
|
.include <bsd.port.mk>
|