Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= doxygen |
4 |
PORTNAME= doxygen |
5 |
PORTVERSION= 1.8.9.1 |
5 |
PORTVERSION= 1.8.10 |
6 |
PORTEPOCH= 2 |
6 |
PORTEPOCH= 2 |
7 |
CATEGORIES= devel |
7 |
CATEGORIES= devel |
8 |
MASTER_SITES= ftp://ftp.stack.nl/pub/users/dimitri/ \ |
8 |
MASTER_SITES= ftp://ftp.stack.nl/pub/users/dimitri/ \ |
Lines 15-30
Link Here
|
15 |
LICENSE= GPLv2 |
15 |
LICENSE= GPLv2 |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
17 |
|
17 |
|
18 |
BUILD_DEPENDS= tmake:${PORTSDIR}/devel/tmake \ |
18 |
USES= bison cmake:outsource iconv python:2 |
19 |
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex |
|
|
20 |
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png |
21 |
|
22 |
USES= bison gmake iconv perl5 python:2 |
23 |
ALL_TARGET= all |
19 |
ALL_TARGET= all |
24 |
HAS_CONFIGURE= yes |
20 |
CMAKE_ARGS+= -DDOC_INSTALL_DIR:PATH=${DOCSDIR_REL} |
25 |
QT_NONSTANDARD= yes # non-standard configure arguments |
|
|
26 |
CONFIGURE_ARGS= --prefix ${PREFIX} --perl ${PERL} --make ${MAKE_CMD} \ |
27 |
--install "${INSTALL}" --flex ${LOCALBASE}/bin/flex |
28 |
REINPLACE_ARGS= -i '' |
21 |
REINPLACE_ARGS= -i '' |
29 |
|
22 |
|
30 |
EXTRACT_AFTER_ARGS= --exclude '*/libmd5' \ |
23 |
EXTRACT_AFTER_ARGS= --exclude '*/libmd5' \ |
Lines 31-124
Link Here
|
31 |
--exclude '*/libpng' \ |
24 |
--exclude '*/libpng' \ |
32 |
--exclude '*/tmake' |
25 |
--exclude '*/tmake' |
33 |
|
26 |
|
34 |
PLIST= ${WRKDIR}/plist |
|
|
35 |
TMPDOCDEST= ${WRKDIR}/tmpdocdest |
36 |
|
37 |
PLIST_FILES= bin/doxygen |
27 |
PLIST_FILES= bin/doxygen |
38 |
|
28 |
|
39 |
OPTIONS_DEFINE= GRAPHVIZ LATEX QT4 HTMLDOCS PDFDOCS |
29 |
OPTIONS_DEFINE= GRAPHVIZ LATEX QT4 DOCS |
40 |
OPTIONS_DEFAULT= GRAPHVIZ LATEX |
30 |
OPTIONS_DEFAULT= GRAPHVIZ LATEX |
41 |
QT4_DESC= Install Doxywizard GUI |
31 |
QT4_DESC= Install Doxywizard GUI |
42 |
HTMLDOCS_DESC= Install documentation in HTML format |
|
|
43 |
PDFDOCS_DESC= Install documentation in PDF format |
44 |
|
32 |
|
45 |
GRAPHVIZ_RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz |
33 |
GRAPHVIZ_RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz |
46 |
|
34 |
|
47 |
LATEX_USE= TEX=base,dvipsk,pdftex |
35 |
LATEX_USE= TEX=base,dvipsk,pdftex |
48 |
|
36 |
|
49 |
QT4_USE= QT4=corelib,gui,xml,qmake_build,moc_build,rcc_build |
37 |
QT4_USE= QT4=corelib,gui,xml,qmake_build,moc_build,rcc_build,uic_build |
50 |
QT4_CONFIGURE_ENV= QTDIR="${QTDIR}" |
38 |
QT4_CMAKE_ON= -Dbuild_wizard:BOOLEAN=ON |
51 |
QT4_CONFIGURE_ON= --with-doxywizard |
39 |
QT4_CMAKE_OFF= -Dbuild_wizard:BOOLEAN=OFF |
52 |
QT4_PLIST_FILES= bin/doxywizard |
40 |
QT4_PLIST_FILES= bin/doxywizard |
53 |
|
41 |
|
54 |
HTMLDOCS_ALL_TARGET= docs |
42 |
DOCS_ALL_TARGET= docs |
55 |
HTMLDOCS_BUILD_DEPENDS= dot:${PORTSDIR}/graphics/graphviz |
43 |
DOCS_BUILD_DEPENDS= dot:${PORTSDIR}/graphics/graphviz |
|
|
44 |
DOCS_CMAKE_ON= -Dbuild_doc:BOOLEAN=ON |
45 |
DOCS_CMAKE_OFF= -Dbuild_doc:BOOLEAN=OFF |
46 |
DOCS_PLIST_FILES= man/man1/doxygen.1.gz \ |
47 |
man/man1/doxyindexer.1.gz \ |
48 |
man/man1/doxysearch.1.gz \ |
49 |
man/man1/doxywizard.1.gz |
56 |
|
50 |
|
57 |
PDFDOCS_ALL_TARGET= pdf |
|
|
58 |
PDFDOCS_MAKE_ARGS= HAVE_LATEX=yes |
59 |
|
60 |
.include <bsd.port.options.mk> |
51 |
.include <bsd.port.options.mk> |
61 |
|
52 |
|
62 |
.if ${PORT_OPTIONS:MPDFDOCS} && \ |
53 |
.if ${PORT_OPTIONS:MDOCS} && empty(PORT_OPTIONS:MLATEX) |
63 |
(empty(PORT_OPTIONS:MHTMLDOCS) || empty(PORT_OPTIONS:MLATEX)) |
54 |
IGNORE= cannot build Doxygen's PDF docs without option LATEX enabled |
64 |
IGNORE= PDFDOCS option requires HTMLDOCS and LATEX options to be set |
|
|
65 |
.endif |
55 |
.endif |
66 |
|
56 |
|
67 |
.if ${PORT_OPTIONS:MPDFDOCS} |
57 |
.if ${OSVERSION} < 1000033 |
68 |
USE_GHOSTSCRIPT_BUILD= yes |
58 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex |
|
|
59 |
CMAKE_ARGS+= -DFLEX_EXECUTABLE=${LOCALBASE}/bin/flex |
69 |
.endif |
60 |
.endif |
70 |
|
61 |
|
71 |
.if ${PORT_OPTIONS:MQT4} |
62 |
.if ${PORT_OPTIONS:MDOCS} |
72 |
# Need this in env for the build |
63 |
USE_GHOSTSCRIPT_BUILD= yes |
73 |
QTDIR?= ${QT_PREFIX} |
64 |
PORTDOCS= * |
74 |
.endif |
65 |
.endif |
75 |
|
66 |
|
76 |
pre-configure: |
|
|
77 |
@cd ${WRKSRC}; for pro in src/*.pro.in \ |
78 |
addon/doxywizard/doxywizard.pro.in; do \ |
79 |
${ECHO} "unix:LIBS += ${ICONV_LIB}" >> $$pro; done |
80 |
@${CHMOD} +x ${WRKSRC}/configure |
81 |
|
82 |
post-configure: |
83 |
@${REINPLACE_CMD} -e 's|TMAKE *=.*|TMAKE=${LOCALBASE}/bin/tmake|' \ |
84 |
-e 's|TMAKEPATH *=.*|TMAKEPATH=${LOCALBASE}/share/tmake/freebsd-g++|' \ |
85 |
${WRKSRC}/Makefile ${WRKSRC}/*/Makefile \ |
86 |
${WRKSRC}/addon/doxywizard/Makefile |
87 |
|
88 |
post-build: |
89 |
${DO_MAKE_BUILD} -C ${BUILD_WRKSRC}/examples all |
90 |
|
91 |
pre-install: |
92 |
${RM} -rf ${TMPDOCDEST} ${PLIST} |
93 |
${TOUCH} ${PLIST} |
94 |
.if ${PORT_OPTIONS:MHTMLDOCS} |
95 |
${MKDIR} ${TMPDOCDEST}/doxygen |
96 |
${RM} -f ${WRKSRC}/examples/diagrams/html/*.md5 \ |
97 |
${WRKSRC}/examples/diagrams/html/*.map |
98 |
${TAR} -C ${WRKSRC} --exclude '*/_*' -cf - html \ |
99 |
| ${TAR} -C ${TMPDOCDEST}/doxygen --unlink -xf - |
100 |
${TAR} -C ${WRKSRC} --exclude '*/Makefile*' --exclude '*.dot' \ |
101 |
-cf - examples \ |
102 |
| ${TAR} -C ${TMPDOCDEST}/doxygen --unlink -xf - |
103 |
.if ${PORT_OPTIONS:MPDFDOCS} |
104 |
${INSTALL_DATA} ${WRKSRC}/latex/doxygen_manual.pdf \ |
105 |
${WRKSRC}/latex/archoverview.eps \ |
106 |
${TMPDOCDEST}/doxygen |
107 |
.endif |
108 |
@cd ${TMPDOCDEST} \ |
109 |
&& ${FIND} -s * -type f -o -type l \ |
110 |
| ${SED} -e 's|^|share/doc/|' >> ${PLIST} |
111 |
.endif |
112 |
|
113 |
do-install: |
114 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/doxygen ${STAGEDIR}${PREFIX}/bin |
115 |
.if ${PORT_OPTIONS:MQT4} |
116 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/doxywizard ${STAGEDIR}${PREFIX}/bin |
117 |
.endif |
118 |
.if ${PORT_OPTIONS:MHTMLDOCS} |
119 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/doxygen |
120 |
${TAR} -C ${TMPDOCDEST} -cf - doxygen \ |
121 |
| ${TAR} -C ${STAGEDIR}${PREFIX}/share/doc --unlink -xf - |
122 |
.endif |
123 |
|
124 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.mk> |