# New ports collection makefile for: bfilter # Date created: 10.05.2003 # Whom: Kirill Ponomarew # # $FreeBSD: ports/net/bfilter/Makefile,v 1.30 2007/10/18 19:25:47 mezz Exp $ # PORTNAME= bfilter PORTVERSION= 1.1.2 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Smart filtering HTTP proxy LIB_DEPENDS= ACE.5:${PORTSDIR}/devel/ace \ sigc-2.0.0:${PORTSDIR}/devel/libsigc++20 GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" MAN8= bfilter.8 USE_RC_SUBR= bfilter.sh .if defined(WITH_DEBUG) CONFIGURE_ARGS+=--enable-debug .endif .if defined(WITH_GUI) LIB_DEPENDS+= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 CONFIGURE_ARGS+=--with-gui PLIST_SUB+= GUI="" .else PLIST_SUB+= GUI="@comment " .endif post-patch: @${REINPLACE_CMD} -e 's|"pthreads.*pthread-config"|"${PTHREAD_LIBS}"|g' \ ${WRKSRC}/configure post-install: .if defined(WITH_GUI) @${MKDIR} ${PREFIX}/share/applications @${INSTALL_DATA} ${WRKSRC}/bfilter.desktop \ ${PREFIX}/share/applications/ @${MKDIR} ${PREFIX}/share/pixmaps @${INSTALL_DATA} ${WRKSRC}/bfilter.png \ ${PREFIX}/share/pixmaps/ .endif .include