summaryrefslogtreecommitdiffstats
path: root/devel/doxygen/Makefile
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-10-12 03:26:04 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-10-12 03:26:04 +0800
commit0335a61c2e0323317a013bf2d6d031e471643082 (patch)
treea4aa87fe48bf0d8f256bb3b494e92df0e5811bae /devel/doxygen/Makefile
parent3dbe19cbee37f304c3c973db8d63eb9efd346335 (diff)
downloadmarcuscom-ports-0335a61c2e0323317a013bf2d6d031e471643082.tar
marcuscom-ports-0335a61c2e0323317a013bf2d6d031e471643082.tar.gz
marcuscom-ports-0335a61c2e0323317a013bf2d6d031e471643082.tar.bz2
marcuscom-ports-0335a61c2e0323317a013bf2d6d031e471643082.tar.lz
marcuscom-ports-0335a61c2e0323317a013bf2d6d031e471643082.tar.xz
marcuscom-ports-0335a61c2e0323317a013bf2d6d031e471643082.tar.zst
marcuscom-ports-0335a61c2e0323317a013bf2d6d031e471643082.zip
Fix the build with libiconv 1.11.
Reported by: pointyhat-exp git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9792 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/doxygen/Makefile')
-rw-r--r--devel/doxygen/Makefile132
1 files changed, 132 insertions, 0 deletions
diff --git a/devel/doxygen/Makefile b/devel/doxygen/Makefile
new file mode 100644
index 000000000..9d97b1571
--- /dev/null
+++ b/devel/doxygen/Makefile
@@ -0,0 +1,132 @@
+# New ports collection makefile for: doxygen
+# Date created: 20 March 1998
+# Whom: Joep Grooten <joep@di.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= doxygen
+PORTVERSION= 1.5.2
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.stack.nl/pub/users/dimitri/
+EXTRACT_SUFX= .src.tar.gz
+
+MAINTAINER= mwisnicki+freebsd@gmail.com
+COMMENT= A documentation system for C, C++ and other languages
+
+BUILD_DEPENDS= tmake:${PORTSDIR}/devel/tmake
+LIB_DEPENDS= png:${PORTSDIR}/graphics/png
+
+USE_ICONV= yes
+ALL_TARGET= all
+
+EXTRACT_AFTER_ARGS=|${TAR} -xpf - \
+ --exclude '*/libmd5' \
+ --exclude '*/libpng' \
+ --exclude '*/tmake'
+
+CONFIGURE_ENV+= CXX="${CXX}"
+
+.if !defined(NOPORTDOCS)
+ALL_TARGET+= docs
+BUILD_DEPENDS+= python:${PORTSDIR}/lang/python # XXX: Replace with USE_PYTHON_BUILD
+BUILD_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz
+
+.if !defined(WITHOUT_LATEX)
+ALL_TARGET+= pdf
+BUILD_DEPENDS+= dvips:${PORTSDIR}/print/dvipsk-tetex \
+ latex:${PORTSDIR}/print/teTeX
+USE_GHOSTSCRIPT_BUILD= yes
+MAKE_ARGS+= HAVE_LATEX=yes
+.endif # !defined(WITHOUT_LATEX)
+.endif # !defined(NOPORTDOCS)
+
+.if !defined(WITHOUT_DOXYWIZARD)
+USE_QT_VER= 3
+QT_INC= ${X11BASE}/include
+QTNAME= qt-mt
+QT_OPENGL=
+THREADLIBS= ${PTHREAD_LIBS}
+CFLAGS+= ${PTHREAD_CFLAGS}
+
+# Need this in env for build
+QTDIR?= ${QT_PREFIX}
+CONFIGURE_ENV+= QTDIR="${QTDIR}"
+CONFIGURE_ARGS+=--with-doxywizard
+.endif # !WITHOUT_DOXYWIZARD
+
+USE_PERL5= yes
+HAS_CONFIGURE= yes
+USE_GMAKE= yes
+QT_NONSTANDARD= yes # non-standard configure arguments
+CONFIGURE_ARGS+=--prefix ${PREFIX} --perl ${PERL} --make ${GMAKE} \
+ --install "${INSTALL}"
+
+.if ${MACHINE_ARCH:L} == alpha
+CONFIGURE_ARGS+= --enable-langs no
+.endif
+
+PLIST= ${WRKDIR}/plist
+TMPDOCDEST= ${WRKDIR}/tmpdocdest
+
+PLIST_FILES= bin/doxygen \
+ bin/doxytag
+
+.ifndef WITHOUT_DOXYWIZARD
+PLIST_FILES+= bin/doxywizard
+.endif
+
+pre-configure:
+ @cd ${WRKSRC};for pro in src/*.pro.in addon/doxywizard/doxywizard.pro.in;do \
+ ${ECHO} "unix:LIBS += -liconv" >> $$pro; done
+
+post-configure:
+ @${REINPLACE_CMD} -e 's|TMAKE *=.*|TMAKE=${LOCALBASE}/bin/tmake|' \
+ -e 's|TMAKEPATH *=.*|TMAKEPATH=${LOCALBASE}/share/tmake/freebsd-g++|' \
+ ${WRKSRC}/Makefile ${WRKSRC}/*/Makefile \
+ ${WRKSRC}/addon/doxywizard/Makefile
+
+post-build:
+ cd ${BUILD_WRKSRC}/examples; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile ${MAKE_ARGS} all
+
+pre-install:
+ ${RM} -rf ${TMPDOCDEST} ${PLIST}
+ ${TOUCH} ${PLIST}
+.ifndef NOPORTDOCS
+ ${MKDIR} ${TMPDOCDEST}/doxygen
+ ${RM} -f ${WRKSRC}/examples/diagrams/html/*.md5 \
+ ${WRKSRC}/examples/diagrams/html/*.map
+ ${TAR} -C ${WRKSRC} --exclude '*/_*' -cf - html \
+ | ${TAR} -C ${TMPDOCDEST}/doxygen --unlink -xf -
+ ${TAR} -C ${WRKSRC} --exclude '*/Makefile*' --exclude '*.dot' \
+ -cf - examples \
+ | ${TAR} -C ${TMPDOCDEST}/doxygen --unlink -xf -
+.ifndef WITHOUT_LATEX
+ ${INSTALL_DATA} ${WRKSRC}/latex/doxygen_manual.dvi \
+ ${WRKSRC}/latex/doxygen_manual.pdf \
+ ${WRKSRC}/latex/doxygen_manual.ps \
+ ${WRKSRC}/latex/archoverview.eps \
+ ${WRKSRC}/latex/doxygen_logo.eps \
+ ${TMPDOCDEST}/doxygen
+.endif # WITHOUT_LATEX
+ @cd ${TMPDOCDEST} \
+ && ${FIND} -s * -type f -o -type l \
+ | ${SED} -e 's|^|share/doc/|'>> ${PLIST} \
+ && ${FIND} -d * -type d \
+ | ${SED} -e 's|^|@dirrm share/doc/|' >> ${PLIST}
+.endif # ! NOPORTDOCS
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/doxygen ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/doxytag ${PREFIX}/bin
+.ifndef WITHOUT_DOXYWIZARD
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/doxywizard ${PREFIX}/bin
+.endif
+.ifndef NOPORTDOCS
+ ${MKDIR} ${PREFIX}/share/doc/doxygen
+ ${TAR} -C ${TMPDOCDEST} -cf - doxygen \
+ | ${TAR} -C ${PREFIX}/share/doc --unlink -xf -
+.endif # ! NOPORTDOCS
+
+.include <bsd.port.mk>