Tweak editors/leafpad version 0.8.18.1_1
[dports.git] / editors / leafpad / Makefile
1 # Created by: Michael Johnson <ahze@ahze.net>
2 # $FreeBSD: editors/leafpad/Makefile 328511 2013-09-27 20:04:54Z jgh $
3
4 PORTNAME=       leafpad
5 PORTVERSION=    0.8.18.1
6 PORTREVISION=   1
7 CATEGORIES=     editors
8 MASTER_SITES=   SAVANNAH
9 MASTER_SITE_SUBDIR=     ${PORTNAME}
10
11 MAINTAINER=     jgh@FreeBSD.org
12 COMMENT=        GTK+ based simple text editor
13
14 USE_GNOME=      gtk20 intlhack
15 USES=           desktop-file-utils gmake pkgconfig
16 GNU_CONFIGURE=  yes
17 CONFIGURE_ARGS= --enable-chooser
18 INSTALLS_ICONS= yes
19 CPPFLAGS+=      -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
20 LDFLAGS+=       -L${LOCALBASE}/lib ${PTHREAD_LIBS}
21
22 PORTDOCS=       AUTHORS COPYING ChangeLog INSTALL README
23
24 OPTIONS_DEFINE= NLS
25 OPTIONS_SUB=    yes
26
27 NLS_USES=       gettext
28 NLS_CONFIGURE_ENABLE=   nls
29
30 .include <bsd.port.options.mk>
31
32 post-extract:
33         @${CHMOD} a+x ${WRKSRC}/install-sh
34
35 post-patch:
36 .if ! ${PORT_OPTIONS:MNLS}
37         @${REINPLACE_CMD} -e 's|SUBDIRS = src data po|SUBDIRS = src data|g' \
38                 ${WRKSRC}/Makefile.in
39 .endif
40
41 post-install:
42 .if ${PORT_OPTIONS:MDOCS}
43         @${MKDIR} ${STAGEDIR}${DOCSDIR}
44         ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
45 .endif
46
47 .include <bsd.port.mk>