aboutsummaryrefslogtreecommitdiffstats
path: root/net/httping/Makefile
blob: 2e0adb608a78a7153071462969373468db4dffa4 (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
44
45
46
47
48
49
50
51
52
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   httping
PORTVERSION=    2.2.1
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://www.vanheusden.com/httping/ \
        CRITICAL
EXTRACT_SUFX=   .tgz

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Ping-like tool for HTTP requests

USES=       gmake
MAKE_JOBS_SAFE= yes

MAN1=       httping.1
PLIST_FILES=    bin/httping

OPTIONS_DEFINE= NCURSES FFTW SSL

OPTIONS_DEFAULT=NCURSES SSL

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNCURSES}
MAKE_ENV+=  NC=yes
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
.else
MAKE_ENV+=  NC=no
.endif

.if ${PORT_OPTIONS:MFFTW}
MAKE_ENV+=  FW=yes
LIB_DEPENDS+=   fftw3:${PORTSDIR}/math/fftw3
.else
MAKE_ENV+=  FW=no
.endif

.if ${PORT_OPTIONS:MSSL}
MAKE_ENV+=  SSL=yes
.else
MAKE_ENV+=  SSL=no
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1

.include <bsd.port.mk>