aboutsummaryrefslogtreecommitdiffstats
path: root/net/netwib/Makefile
blob: e994aca95e00bbcc21f7b95aeca108a855120de5 (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
# New ports collection makefile for:    netwox
# Date created:             23.07.2004
# Whom:                 janos.mohacsi@bsd.hu
#
# $FreeBSD$
#

PORTNAME=   netwib
PORTVERSION=    5.21.0
CATEGORIES= net devel ipv6
MASTER_SITES=   http://www.laurentconstantin.com/common/netw/netwib/download/v5/ \
        http://membres.lycos.fr/lauconstantin/common/netw/netwib/download/v5/ \
        http://laurentconstantin.free.fr/common/netw/netwib/download/v5/
DISTFILES=  ${PORTNAME}-${PORTVERSION}-src.tgz ${PORTNAME}-${PORTVERSION}-doc_html.tgz

MAINTAINER= janos.mohacsi@bsd.hu
COMMENT=    Netwib network programming library

BUILD_DEPENDS=  ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet-devel
RUN_DEPENDS=    ${BUILD_DEPENDS}

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/src
USE_REINPLACE=  yes
MAN3=       netwib.3 netwib_dat.3 netwib_err.3 netwib_net.3 \
        netwib_pkt.3 netwib_shw.3 netwib_sys.3

PLIST_SUB+= SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)\.[0-9]*/\1\2/}

do-configure:
        @${REINPLACE_CMD} \
        -e 's|%%PREFIX%%|${PREFIX}|' \
        ${WRKSRC}/config.dat
        (cd ${WRKSRC} ; ${SH} ${WRKSRC}/genemake )

.include <bsd.port.mk>