diff options
author | Alan Eldridge <alane@FreeBSD.org> | 2002-10-16 10:26:18 +0000 |
---|---|---|
committer | Alan Eldridge <alane@FreeBSD.org> | 2002-10-16 10:26:18 +0000 |
commit | b980cc1cb8403340bee21174eb0eb0da6845e3da (patch) | |
tree | 4f24a1ad3989f7dfc1ea887d17ae90cec1d8c4f6 /devel/doxygen/Makefile | |
parent | e6328679595b4a032645d1036afd519328c08305 (diff) | |
download | ports-b980cc1cb8403340bee21174eb0eb0da6845e3da.tar.gz ports-b980cc1cb8403340bee21174eb0eb0da6845e3da.zip |
Notes
Diffstat (limited to 'devel/doxygen/Makefile')
-rw-r--r-- | devel/doxygen/Makefile | 105 |
1 files changed, 55 insertions, 50 deletions
diff --git a/devel/doxygen/Makefile b/devel/doxygen/Makefile index b9f9d2a29aa6..2ca7c8a73fcb 100644 --- a/devel/doxygen/Makefile +++ b/devel/doxygen/Makefile @@ -6,86 +6,90 @@ # PORTNAME= doxygen -PORTVERSION= 1.2.16 -PORTREVISION= 1 +PORTVERSION= 1.2.18 +PORTREVISION= 0 CATEGORIES= devel MASTER_SITES= ftp://ftp.stack.nl/pub/users/dimitri/ EXTRACT_SUFX= .src.tar.gz MAINTAINER= kde@freebsd.org -.ifndef NOPORTDOCS -BUILD_DEPENDS= dot:${PORTSDIR}/graphics/graphviz -.ifdef HAVE_LATEX -BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX \ - dvipdfm:${PORTSDIR}/print/dvipdfm -.endif -.endif +ALL_TARGET= all + +.if !defined(NOPORTDOCS) +ALL_TARGET+= docs +BUILD_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz +.else +.undef HAVE_LATEX +.endif # !defined(NOPORTDOCS) + +.if defined(HAVE_LATEX) +ALL_TARGET+= pdf +PLIST_SUB+= HAVE_LATEX="" +BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX +.else # !defined(HAVE_LATEX) +PLIST_SUB+= HAVE_LATEX="@comment " +.endif # !defined(HAVE_LATEX) .if defined(WITH_QT2) USE_QT_VER= 2 QT_INC= ${X11BASE}/include/qt2 +QT_NAME= qt QT_OPENGL= -lqtgl THREADLIBS= -.else +PKGNAMESUFFIX= -qt2 +.else # not QT2 USE_QT_VER= 3 QT_INC= ${X11BASE}/include QTNAME= qt-mt QT_OPENGL= THREADLIBS= ${PTHREAD_LIBS} CFLAGS+= ${PTHREAD_CFLAGS} -#CXXFLAGS+= ${PTHREAD_CFLAGS} -.endif +.endif # not QT2 + +# Need this in env for build +QTDIR?= ${X11BASE} +CONFIGURE_ENV+= QTDIR="${QTDIR}" + USE_PERL5= yes HAS_CONFIGURE= yes USE_GMAKE= yes QT_NONSTANDARD= yes # non-standard configure arguments CONFIGURE_ARGS+=--prefix ${PREFIX} --perl ${PERL} --make ${GMAKE} \ - --with-doxywizard - -# As of 1.2.13 the configure script bogusly checks for GNU options -# in install so we need to override it's sillyness here. -CONFIGURE_ARGS+=--install ${INSTALL} - -# XXX bsd.kde.mk fails to set QTDIR for QT_VER 2 -QTDIR?= ${X11BASE} -CONFIGURE_ENV+= QTDIR="${QTDIR}" + --with-doxywizard --install ${INSTALL} -.ifndef NOPORTDOCS -ALL_TARGET= all docs -.ifdef HAVE_LATEX -ALL_TARGET+= ps -BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX \ - dvipdfm:${PORTSDIR}/print/dvipdfm -PLIST_SUB+= HAVE_LATEX="" -.else -PLIST_SUB+= HAVE_LATEX="@comment " +.if !defined(NOPORTDOCS) && !defined(HAVE_LATEX) pre-everything:: @${ECHO_MSG} + @${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} "=================================================" @${ECHO_MSG} -.endif -.endif +.endif # !defined(NOPORTDOCS) && !defined(HAVE_LATEX) pre-configure: - @${PERL} -pi -e "s:gcc:${CC}:g ; s:g\+\+:${CXX}:g ; \ - s:%%LIBQT%%:-l${QTNAME}:g ; \ - s:%%MOC%%:${MOC}:g ; \ - s:%%QT_INC%%:${QT_INC}:g ; \ - s:%%QT_LIB%%:${X11BASE}/lib:g ; \ - s:%%QT_OPENGL%%:${QT_OPENGL}:g ; \ - s:%%THREADLIBS%%:${THREADLIBS}:g ; \ - s:%%CFLAGS%%:${CFLAGS}:g ; \ - s:%%CXXFLAGS%%:${CXXFLAGS}:g" ${WRKSRC}/tmake/lib/freebsd-g++/tmake.conf + @${PERL} -pi -e "s:gcc:${CC}:g; \ + s:g\+\+:${CXX}:g; \ + s:%%LIBQT%%:-l${QTNAME}:g; \ + s:%%MOC%%:${MOC}:g; \ + s:%%QT_INC%%:${QT_INC}:g; \ + s:%%QT_LIB%%:${X11BASE}/lib:g; \ + s:%%QT_OPENGL%%:${QT_OPENGL}:g; \ + s:%%THREADLIBS%%:${THREADLIBS}:g;\ + s:%%CFLAGS%%:${CFLAGS}:g; \ + s:%%CXXFLAGS%%:${CXXFLAGS}:g" \ + ${WRKSRC}/tmake/lib/freebsd-g++/tmake.conf post-patch: - @${PERL} -pi.fbsd -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/libpng/pngconf.h \ - ${WRKSRC}/libpng/zutil.h ${WRKSRC}/src/pngenc.cpp + @${PERL} -pi.fbsd -e 's|<malloc.h>|<stdlib.h>|g' \ + ${WRKSRC}/libpng/pngconf.h \ + ${WRKSRC}/libpng/zutil.h ${WRKSRC}/src/pngenc.cpp post-build: - cd ${BUILD_WRKSRC}/examples; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile ${MAKE_ARGS} all + cd ${BUILD_WRKSRC}/examples; \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile ${MAKE_ARGS} all do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/doxygen ${PREFIX}/bin @@ -94,10 +98,11 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/doxywizard ${PREFIX}/bin .ifndef NOPORTDOCS ${MKDIR} ${PREFIX}/share/doc/doxygen/html - ${TAR} -C ${WRKSRC} --exclude '*/_*' -cf - html | \ - ${TAR} -C ${PREFIX}/share/doc/doxygen --unlink -xf - - ${TAR} -C ${WRKSRC} --exclude '*/Makefile*' --exclude '*.dot' -cf - examples | \ - ${TAR} -C ${PREFIX}/share/doc/doxygen --unlink -xf - + ${TAR} -C ${WRKSRC} --exclude '*/_*' -cf - html \ + | ${TAR} -C ${PREFIX}/share/doc/doxygen --unlink -xf - + ${TAR} -C ${WRKSRC} --exclude '*/Makefile*' --exclude '*.dot' \ + -cf - examples \ + | ${TAR} -C ${PREFIX}/share/doc/doxygen --unlink -xf - .ifdef HAVE_LATEX ${INSTALL_DATA} ${WRKSRC}/latex/doxygen_manual.dvi \ ${WRKSRC}/latex/doxygen_manual.pdf \ @@ -105,7 +110,7 @@ do-install: ${WRKSRC}/latex/archoverview.eps \ ${WRKSRC}/latex/doxygen_logo.eps \ ${PREFIX}/share/doc/doxygen -.endif -.endif +.endif # HAVE_LATEXT +.endif # ! NOPORTDOCS .include <bsd.port.mk> |