aboutsummaryrefslogtreecommitdiffstats
path: root/www/httrack/Makefile
blob: b0b6694727bba32e2ffa8e5232d8d9a708801452 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Dirk Froemberg <dirk@FreeBSD.org>
# $FreeBSD$

PORTNAME=   httrack
PORTVERSION=    3.47.27
CATEGORIES= www
MASTER_SITES=   http://download.httrack.com/ \
        http://mirror.httrack.com/historical/ \
        LOCAL/sunpoet

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Easy-to-use offline browser utility and website copier

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

OPTIONS_DEFINE= DOCS

PORTSCOUT=  skipv:3.47.99

CONFIGURE_ARGS= --docdir="${DOCSDIR}"
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   ${PREFIX}/lib/${PORTNAME}
USES=       gmake iconv

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e '/DEFAULT_CFLAGS=/ s|-O -g3 ||g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e '/ install-data-hook/d' ${WRKSRC}/html/Makefile.in
    @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' ${WRKSRC}/html/server/div/WebHTTrack*
.if ! ${PORT_OPTIONS:MDOCS}
    @${REINPLACE_CMD} -e '/^SUBDIRS = / s| html||' ${WRKSRC}/Makefile.in
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
    ${INSTALL_DATA} ${WRKSRC}/html/httrack.css ${STAGEDIR}${DOCSDIR}/httrack.css
.endif

.include <bsd.port.mk>