blob: 7fe1f2cc5a7eb61582b3fe0c5b38f67a7fc5caee (
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
53
|
# ex:ts=8
# New ports collection makefile for: netdude
# Date created: Dec 27, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= netdude
PORTVERSION= 0.3.3
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= NETwork DUmp data Displayer and Editor for tcpdump tracefiles
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv \
ltdl.4:${PORTSDIR}/devel/libltdl
USE_GETTEXT= yes
USE_REINPLACE= yes
USE_GNOME= glib12 gtk12
USE_LIBTOOL_VER=13
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lltdl"
USE_GMAKE= yes
INSTALL_SHLIB= yes
MAN1= netdude.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
EXTRA_PATCHES= ${FILESDIR}/protocols-fddi::nd_fddi.h.patch
.endif
post-patch:
@${REINPLACE_CMD} -e "s|gtk-config|${GTK_CONFIG}|g" \
-e "s|glib-config|${GLIB_CONFIG}|g" ${WRKSRC}/configure
.for file in nd_icmp.c nd_icmp.h nd_icmp_callbacks.c
@${REINPLACE_CMD} -e "s|struct icmphdr|struct icmp|g" \
${WRKSRC}/protocols/icmp/${file}
.endfor
@${REINPLACE_CMD} -e "s|->type|->icmp_type|g" \
-e "s|->code|->icmp_code|g" \
-e "s|->checksum|->icmp_cksum|g" \
-e "s|->un.echo.id|->icmp_id|g" \
-e "s|->un.echo.sequence|->icmp_seq|g" \
${WRKSRC}/protocols/icmp/nd_icmp.c
.include <bsd.port.post.mk>
|