5 MASTER_SITES= https://download.httrack.com/ \
6 https://mirror.httrack.com/ \
7 https://mirror.httrack.com/historical/ \
8 http://download.httrack.com/ \
9 http://mirror.httrack.com/ \
10 http://mirror.httrack.com/historical/ \
13 MAINTAINER= sunpoet@FreeBSD.org
14 COMMENT= Easy-to-use offline browser utility and website copier
15 WWW= https://www.httrack.com/
20 OPTIONS_DEFINE= DOCS ICONS
23 CONFIGURE_ARGS= --docdir=${DOCSDIR} --with-zlib=/usr
25 INSTALL_TARGET= install-strip
26 USE_LDCONFIG= ${PREFIX}/lib/httrack
27 USES= alias cpe gmake iconv libtool shebangfix ssl
29 SHEBANG_FILES= src/webhttrack
33 .include <bsd.port.options.mk>
36 CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv=no
38 CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv=yes
42 @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' ${WRKSRC}/html/server/div/WebHTTrack*
43 @${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-ldl ||' ${WRKSRC}/src/coucal/Makefile
46 ${RM} ${STAGEDIR}${DATADIR}/html
48 post-install-DOCS-off:
49 # See PR/208875 for details
50 ${MKDIR} ${STAGEDIR}${DATADIR}/html/
53 ${INSTALL_DATA} ${WRKSRC}/html/httrack.css ${STAGEDIR}${DOCSDIR}/
54 ${RLN} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DATADIR}/html
56 .include <bsd.port.mk>