# Created by: Rusmir Dusko # $FreeBSD$ PORTNAME= gtknetcat PORTVERSION= 0.1 PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF/lxde/GtkNetCat%20%28GUI%20for%20netcat%29/GtkNetCat%20${PORTVERSION}/ \ SF/nemysisfreebsdp/${CATEGORIES}/:icons DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}.png:icons EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= horia@racoviceanu.com COMMENT= GTK GUI for netcat LICENSE= GPLv3 BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser USES= gmake python USE_GNOME= intlhack pygtk2 GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PORTDOCS= AUTHORS README OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_USES= gettext .include post-patch: @${REINPLACE_CMD} -e 's|Icon=|Icon=${PORTNAME}|' \ ${WRKSRC}/${PORTNAME}.desktop .if ! ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -e 's|src po|src|' \ ${WRKSRC}/Makefile.in .endif post-install: ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include