1PORTNAME= cvsgraph 2DISTVERSION= 1.7.2 3PORTREVISION= 4 4CATEGORIES= devel graphics 5MASTER_SITES= https://www.vagrearg.org/cvsgraph/release/ 6 7MAINTAINER= ports@MidnightBSD.org 8COMMENT= Graph the life story of a file under CVS or RCS 9WWW= https://www.vagrearg.org/content/cvsgraph 10 11LICENSE= gpl2+ 12LICENSE_FILE= ${WRKSRC}/COPYING 13 14LIB_DEPENDS= libgd.so:graphics/gd \ 15 libpng16.so:graphics/png \ 16 libtiff.so:graphics/tiff \ 17 libwebp.so:graphics/webp \ 18 libfreetype.so:print/freetype2 \ 19 libfontconfig.so:x11-fonts/fontconfig 20 21WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} 22 23USES= localbase:ldflags jpeg pkgconfig 24 25DOCDIR= share/doc/${PORTNAME} 26DOCS= ChangeLog README 27EXAMPLES= cvsgraphwrapper.php mkimage.php 28MORE_EXAMPLES= README.Automatic_documentation checkoutlist commit_action.sh \ 29 commitinfo cvswrappers tag_action.sh taginfo 30PLIST= ${WRKDIR}/pkg-plist 31SUB_FILES= pkg-message 32GNU_CONFIGURE= yes 33LDFLAGS+= -lm 34CONFIGURE_ARGS= --with-gd-inc=${LOCALBASE}/include \ 35 --with-gd-lib=${LOCALBASE}/lib 36CONFIGURE_TARGET= ${ARCH}-portbld-freebsd10.4 37REINPLACE_ARGS= -i "" 38 39pre-patch: 40 @${REINPLACE_CMD} -e "s:/home/bertho/tmp/cvstest:/home/ncvs:g" ${WRKSRC}/cvsgraph.conf 41 42pre-install: 43 ${ECHO_CMD} bin/cvsgraph > ${PLIST} 44 ${ECHO_CMD} etc/cvsgraph.conf.sample >> ${PLIST} 45.if !defined(NOPORTDOCS) 46.for i in ${DOCS} 47 ${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST} 48.endfor 49.for i in ${MORE_EXAMPLES} 50 ${ECHO_CMD} share/examples/${PORTNAME}/automatic_documentation/${i} >> ${PLIST} 51.endfor 52.for i in ${EXAMPLES} 53 ${ECHO_CMD} share/examples/${PORTNAME}/${i} >> ${PLIST} 54.endfor 55 ${ECHO_CMD} @dirrm share/examples/${PORTNAME}/automatic_documentation >> ${PLIST} 56 ${ECHO_CMD} @dirrm share/examples/${PORTNAME} >> ${PLIST} 57 ${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST} 58.endif 59 60do-install: 61 ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin 62 ${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf ${PREFIX}/etc/cvsgraph.conf.sample 63 ${INSTALL_MAN} ${WRKSRC}/cvsgraph.1 ${PREFIX}/man/man1 64 ${INSTALL_MAN} ${WRKSRC}/cvsgraph.conf.5 ${PREFIX}/man/man5 65.if !defined(NOPORTDOCS) 66 ${MKDIR} ${PREFIX}/${DOCDIR} 67 ${MKDIR} ${PREFIX}/share/examples/${PORTNAME} 68 ${MKDIR} ${PREFIX}/share/examples/${PORTNAME}/automatic_documentation 69.for i in ${DOCS} 70 ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR} 71.endfor 72.for i in ${EXAMPLES} 73 ${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${PREFIX}/share/examples/${PORTNAME} 74.endfor 75.for i in ${MORE_EXAMPLES} 76 ${INSTALL_DATA} ${WRKSRC}/contrib/automatic_documentation/${i} ${PREFIX}/share/examples/${PORTNAME}/automatic_documentation 77.endfor 78.endif 79 80.include <bsd.port.mk> 81