summaryrefslogtreecommitdiffstats
path: root/www/htdump/Makefile
blob: 4761790708505de795c3c17e67434258f91bb317 (plain)
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
# Created by: Maxime Henrion (mux@FreeBSD.org)
# $FreeBSD$

PORTNAME=	htdump
PORTVERSION=	0.9y
CATEGORIES=	www
MASTER_SITES=	http://ivo.palli.nl/prog/linux/htdump/bin/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tool to retrieve WWW data

LICENSE=	APACHE20

OPTIONS_DEFINE=	SSL
OPTIONS_DEFAULT=SSL

SSL_USES=	ssl
SSL_ALL_TARGET=	ssl
SSL_CFLAGS=	-I${OPENSSLINC}
SSL_LDFLAGS=	-L${OPENSSLLIB}

PLIST_FILES=	bin/htdump

post-patch:
	@${REINPLACE_CMD} -e \
		's|^CFLAGS|#CFLAGS| ; \
		 s|^CC|#CC| ; \
		 s|$$(LFLAGS)|$$(LDFLAGS)| ; \
		 s|-L/usr/local/ssl/lib|| ; \
		 s|%.o: %.c|| ; \
		 s|-I /usr/local/ssl/include|$$(CPPFLAGS)|' ${WRKSRC}/Makefile

do-install:
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} htdump ${STAGEDIR}${PREFIX}/bin)

.include <bsd.port.mk>
OpenPOWER on IntegriCloud