aboutsummaryrefslogtreecommitdiff
path: root/net/netwib/Makefile
blob: f8c7866d316d0cdc0c3aa8692e4d9f883e0e779a (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
# Created by: janos.mohacsi@bsd.hu

PORTNAME=	netwib
PORTVERSION=	5.38.0
PORTREVISION=	1
CATEGORIES=	net devel
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/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
DISTFILES=	${DISTNAME}.tgz ${DISTNAME:S/src/doc_html/}.tgz

MAINTAINER=	jmohacsi@bsd.hu
COMMENT=	Netwib network programming library

BROKEN_riscv64=		fails to configure: Could not guess NETWIBDEF_SYSARCH. Edit genemake to set NETWIBDEF_SYSARCH, and rerun genemake.

LIB_DEPENDS=	libnet.so:net/libnet

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

PLIST_SUB+=	SHORTPORTVERSION=${SHORTPORTVERSION}

post-patch:
	@${REINPLACE_CMD} '/^gccIncLnet=/s/=""/=`libnet-config --cflags`/' \
		${WRKSRC}/genemake
	@${REINPLACE_CMD} \
		-e 's|%%PREFIX%%|${PREFIX}|' \
		-e 's|%%CFLAGS%%|${CFLAGS}|' \
		-e 's|gcc|${CC}|' \
		${WRKSRC}/config.dat

do-configure:
	(cd ${WRKSRC} && ${SH} genemake)

.include <bsd.port.mk>