1999-06-09 20:27:41 -04:00
|
|
|
# New ports collection makefile for: doxygen
|
|
|
|
# Date created: 20 March 1998
|
|
|
|
# Whom: Joep Grooten <joep@di.nl>
|
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1999-06-09 20:27:41 -04:00
|
|
|
#
|
|
|
|
|
2000-04-11 17:30:15 -04:00
|
|
|
PORTNAME= doxygen
|
2001-11-25 03:47:25 -05:00
|
|
|
PORTVERSION= 1.2.12
|
1999-06-09 20:27:41 -04:00
|
|
|
CATEGORIES= devel
|
2001-03-13 04:03:14 -05:00
|
|
|
MASTER_SITES= ftp://ftp.stack.nl/pub/users/dimitri/
|
2001-03-13 01:38:14 -05:00
|
|
|
EXTRACT_SUFX= .src.tar.gz
|
1999-06-09 20:27:41 -04:00
|
|
|
|
2001-09-29 18:21:07 -04:00
|
|
|
MAINTAINER= bsdport@ddm.wox.org
|
|
|
|
|
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
BUILD_DEPENDS= dot:${PORTSDIR}/graphics/graphviz
|
2001-11-25 03:47:25 -05:00
|
|
|
.ifdef HAVE_LATEX
|
|
|
|
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX \
|
|
|
|
dvipdfm:${PORTSDIR}/print/dvipdfm
|
|
|
|
.endif
|
2001-09-29 18:21:07 -04:00
|
|
|
.endif
|
1999-06-09 20:27:41 -04:00
|
|
|
|
2001-09-25 10:50:04 -04:00
|
|
|
USE_QT_VER= 2
|
2000-02-21 18:43:38 -05:00
|
|
|
USE_PERL5= yes
|
2000-02-25 16:32:24 -05:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2001-11-25 03:47:25 -05:00
|
|
|
QT_NONSTANDARD= yes # non-standard configure arguments
|
2001-09-25 10:50:04 -04:00
|
|
|
CONFIGURE_ARGS+=--prefix ${PREFIX} --perl ${PERL} --make ${GMAKE} \
|
|
|
|
--with-doxywizard
|
2001-09-29 18:21:07 -04:00
|
|
|
|
|
|
|
.ifndef NOPORTDOCS
|
2001-03-13 01:38:14 -05:00
|
|
|
ALL_TARGET= all docs
|
|
|
|
.ifdef HAVE_LATEX
|
|
|
|
ALL_TARGET+= ps
|
2001-10-19 01:11:12 -04:00
|
|
|
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX \
|
|
|
|
dvipdfm:${PORTSDIR}/print/dvipdfm
|
2001-03-13 01:38:14 -05:00
|
|
|
PLIST_SUB+= HAVE_LATEX=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAVE_LATEX="@comment "
|
2001-10-19 01:11:12 -04:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want DVI, Postscript, and PDF documentation"
|
|
|
|
@${ECHO_MSG} "in addition to the HTML documentation,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make HAVE_LATEX=yes\""
|
|
|
|
@${ECHO_MSG}
|
2001-03-13 01:38:14 -05:00
|
|
|
.endif
|
2001-09-29 18:21:07 -04:00
|
|
|
.endif
|
2000-02-21 18:43:38 -05:00
|
|
|
|
|
|
|
pre-configure:
|
2001-01-07 12:49:52 -05:00
|
|
|
@${PERL} -pi -e "s:gcc:${CC}:g ; s:g\+\+:${CXX}:g ; \
|
2001-09-25 10:50:04 -04:00
|
|
|
s:%%LIBQT%%:-l${QTNAME}:g ; \
|
|
|
|
s:%%MOC%%:${MOC}:g ; \
|
|
|
|
s:%%QT_INC%%:${X11BASE}/include/qt2:g ; \
|
|
|
|
s:%%QT_LIB%%:${X11BASE}/lib:g ; \
|
2001-01-07 12:49:52 -05:00
|
|
|
s:%%CFLAGS%%:${CFLAGS}:g ; \
|
|
|
|
s:%%CXXFLAGS%%:${CXXFLAGS}:g" ${WRKSRC}/tmake/lib/freebsd-g++/tmake.conf
|
1999-06-09 20:27:41 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/doxygen ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/doxytag ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/doxysearch ${PREFIX}/bin
|
2001-09-25 10:50:04 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/doxywizard ${PREFIX}/bin
|
2001-03-13 01:38:14 -05:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/doxygen/html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/html/* ${PREFIX}/share/doc/doxygen/html
|
2001-09-25 10:50:04 -04:00
|
|
|
${TAR} -C ${WRKSRC} --exclude '*/Makefile*' -cf - examples | \
|
|
|
|
${TAR} -C ${PREFIX}/share/doc/doxygen --unlink -xf -
|
2001-03-13 01:38:14 -05:00
|
|
|
.ifdef HAVE_LATEX
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/latex/doxygen_manual.dvi \
|
2001-10-19 01:11:12 -04:00
|
|
|
${WRKSRC}/latex/doxygen_manual.pdf \
|
|
|
|
${WRKSRC}/latex/doxygen_manual.ps \
|
|
|
|
${WRKSRC}/latex/archoverview.eps \
|
|
|
|
${WRKSRC}/latex/doxygen_logo.eps \
|
2001-03-13 01:38:14 -05:00
|
|
|
${PREFIX}/share/doc/doxygen
|
|
|
|
.endif
|
|
|
|
.endif
|
1999-06-09 20:27:41 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|