aboutsummaryrefslogtreecommitdiffstats
path: root/net/gtknetcat/Makefile
blob: b94e9d0a359c502a5f7954357211cfe9a8d7b688 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $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
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>