aboutsummaryrefslogtreecommitdiffstats
path: root/net/gtknetcat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/gtknetcat/Makefile')
-rw-r--r--net/gtknetcat/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/net/gtknetcat/Makefile b/net/gtknetcat/Makefile
new file mode 100644
index 000000000000..d3dcdfc2d590
--- /dev/null
+++ b/net/gtknetcat/Makefile
@@ -0,0 +1,52 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= gtknetcat
+PORTVERSION= 0.1
+CATEGORIES= net
+MASTER_SITES= SF/lxde/GtkNetCat%20%28GUI%20for%20netcat%29/GtkNetCat%20${PORTVERSION}/ \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= nemysis@FreeBSD.org
+COMMENT= GTK GUI for netcat
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
+
+USES= gmake
+USE_GNOME= intlhack pygtk2
+USE_PYTHON= yes
+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 <bsd.port.options.mk>
+
+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 <bsd.port.mk>