Update www/firefox-esr to version 102.5.0,1
[dports.git] / www / httrack / Makefile
1 PORTNAME=       httrack
2 PORTVERSION=    3.49.2
3 PORTREVISION=   1
4 CATEGORIES=     www
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/ \
11                 LOCAL/sunpoet
12
13 MAINTAINER=     sunpoet@FreeBSD.org
14 COMMENT=        Easy-to-use offline browser utility and website copier
15 WWW=            https://www.httrack.com/
16
17 LICENSE=        GPLv2 GPLv3
18 LICENSE_COMB=   dual
19
20 OPTIONS_DEFINE= DOCS ICONS
21 OPTIONS_SUB=    yes
22
23 CONFIGURE_ARGS= --docdir=${DOCSDIR} --with-zlib=/usr
24 GNU_CONFIGURE=  yes
25 INSTALL_TARGET= install-strip
26 USE_LDCONFIG=   ${PREFIX}/lib/httrack
27 USES=           alias cpe gmake iconv libtool shebangfix ssl
28
29 SHEBANG_FILES=  src/webhttrack
30
31 ICONS_USES=     gnome
32
33 .include <bsd.port.options.mk>
34
35 .if empty(ICONV_LIB)
36 CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv=no
37 .else
38 CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv=yes
39 .endif
40
41 post-patch:
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
44
45 post-install:
46         ${RM} ${STAGEDIR}${DATADIR}/html
47
48 post-install-DOCS-off:
49 # See PR/208875 for details
50         ${MKDIR} ${STAGEDIR}${DATADIR}/html/
51
52 post-install-DOCS-on:
53         ${INSTALL_DATA} ${WRKSRC}/html/httrack.css ${STAGEDIR}${DOCSDIR}/
54         ${RLN} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DATADIR}/html
55
56 .include <bsd.port.mk>