# New ports collection makefile for:    ipsorc
# Date created:                         02 December, 2001
# Whom:                                 Nicolas.Jombart@hsc-labs.com
#
# $FreeBSD: ports/net/ipsorc/Makefile,v 1.5 2002/05/07 20:18:03 dwcjr Exp $
#

PORTNAME=       ipsorc
PORTVERSION=    1.6
CATEGORIES=     net security
MASTER_SITES=   http://www.legions.org/~phric/
MASTER_SITE_SUBDIR=     ${PORTNAME}

MAINTAINER=     Nicolas.Jombart@hsc-labs.com

USE_GTK=        yes

post-patch:
	@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.old
	@${SED} s,gtk-config,${GTK_CONFIG}, < ${WRKSRC}/Makefile.old \
	        > ${WRKSRC}/Makefile
	@${RM} ${WRKSRC}/Makefile.old

do-install:
.for file in ipmagic magic
	${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in README
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
