2001-02-21 09:17:10 +00:00
|
|
|
# New ports collection makefile for: cvsgraph
|
|
|
|
# Date created: 2001-02-21
|
|
|
|
# Whom: trevor
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cvsgraph
|
2001-02-25 03:13:11 +00:00
|
|
|
PORTVERSION= 1.0.1
|
2001-02-21 09:17:10 +00:00
|
|
|
CATEGORIES= devel graphics
|
|
|
|
MASTER_SITES= http://www.akhphd.au.dk/~bertho/cvsgraph/
|
|
|
|
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
|
|
|
|
LIB_DEPENDS= gd.1:${PORTSDIR}/graphics/gd \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.4:${PORTSDIR}/graphics/png
|
|
|
|
|
|
|
|
ALL_TARGET= cvsgraph
|
|
|
|
DOCDIR= share/doc/${PORTNAME}
|
2001-02-25 03:13:11 +00:00
|
|
|
DOCS= ChangeLog LICENCE README
|
2001-02-21 09:17:10 +00:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2001-02-25 03:13:11 +00:00
|
|
|
USE_AUTOCONF= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-gd=${LOCALBASE} \
|
|
|
|
--with-png=${LOCALBASE} \
|
|
|
|
--with-z=/usr
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${PERL} -pi -e \
|
|
|
|
"s|CFLAGS =|CFLAGS += -I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/gd|g" \
|
|
|
|
${WRKSRC}/Makefile
|
2001-02-21 09:17:10 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${ECHO} bin/cvsgraph > ${PLIST}
|
|
|
|
${ECHO} etc/cvsgraph.conf >> ${PLIST}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${ECHO} ${DOCDIR}/${i} >> ${PLIST}
|
|
|
|
.endfor
|
|
|
|
${ECHO} @dirrm ${DOCDIR} >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf ${PREFIX}/etc
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|