1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net/netdude/Makefile
Ade Lovett b2fd75e438 libtool uber-patch
* kill devel/libtool and move to devel/libtool13, upgrading to 1.3.5
* upgrade repo-copied devel/libtool14 to 1.4.3
* break out libltdl into its own separate port
* move to version-numbered binaries/scripts (ie: there is *no* 'libtool'
  any more -- USE_LIBTOOL and USE_LIBTOOL_VER are your friends)

Approved by:	portmgr (kris) - for the bsd.port.mk hooks
Tested by:	bento 4-exp builds (repeatedly)
2003-06-26 22:58:32 +00:00

54 lines
1.3 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: netdude
# Date created: Dec 27, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= netdude
PORTVERSION= 0.3.3
PORTREVISION= 1
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= intl.4:${PORTSDIR}/devel/gettext \
iconv.3:${PORTSDIR}/converters/libiconv \
ltdl.4:${PORTSDIR}/devel/libltdl
USE_REINPLACE= yes
USE_GNOME= glib12 gtk12
USE_LIBTOOL= yes
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>