aboutsummaryrefslogtreecommitdiff
path: root/editors/zile/Makefile
blob: eca59fed1b008772ef16b0cddab88959b621e3d7 (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
# Created by: Jason Evans <jasone@FreeBSD.org>

PORTNAME=	zile
PORTVERSION=	2.4.14
PORTREVISION=	8
CATEGORIES=	editors
MASTER_SITES=	GNU

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Small emacs-like text editor

LICENSE=	GPLv3

LIB_DEPENDS=	libgc.so:devel/boehm-gc \
		libgnuregex.so.6:devel/libgnuregex
BUILD_DEPENDS=	${LOCALBASE}/bin/help2man:misc/help2man

USES=		gmake ncurses perl5 pkgconfig compiler:c++11-lang
USE_PERL5=	build
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-included-regex

PLIST_FILES=	bin/${PORTNAME} \
		man/man1/${PORTNAME}.1.gz \
		%%DOCSDIR%%/AUTHORS \
		%%DOCSDIR%%/FAQ \
		%%DOCSDIR%%/NEWS \
		%%DOCSDIR%%/dotzile.sample

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -lgnuregex

post-patch:
	@${REINPLACE_CMD} -e \
		'/need_charset_alias=/s|true|false|g' ${WRKSRC}/lib/Makefile.in
	@${REINPLACE_CMD} -e \
		's|@pkgdatadir@|${DOCSDIR}|' ${WRKSRC}/doc/man-extras

.include <bsd.port.mk>