blob: f9e3872b60291f440bd43a0cb5dd80f3d008582c (
plain)
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
55
56
57
|
# New ports collection makefile for: nano
# Date created: 12 June 2000
# Whom: Philippe Lefebvre <nemesis@balistik.net>
#
# $FreeBSD$
#
PORTNAME= nano
PORTVERSION= 2.0.7
PORTREVISION= 2
CATEGORIES= editors
MASTER_SITES= http://www.nano-editor.org/dist/v2.0/ \
http://www.ewtoo.org/~astyanax/nano/dist/v2.0/
MAINTAINER= naddy@FreeBSD.org
COMMENT= Nano's ANOther editor, an enhanced free Pico clone
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-all
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
MANLANG= "" fr
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
INFO= nano
MAN1= nano.1 rnano.1
MAN5= nanorc.5
.include <bsd.port.pre.mk>
# requires wide character curses
.if (${OSVERSION} < 602107) || (${OSVERSION} >= 700000 && ${OSVERSION} < 700033)
CONFIGURE_ARGS+=--disable-utf8
.else
CONFIGURE_ARGS+=--enable-utf8
.endif
post-build:
cd ${WRKSRC}/doc/man; ${REINPLACE_CMD} \
-e 's:SYSCONFDIR:${PREFIX}/etc:g' \
-e 's:EXAMPLESDIR:${EXAMPLESDIR}:g' \
${MAN1} ${MAN5} ${WRKSRC}/doc/texinfo/${INFO:=.info}
${REINPLACE_CMD} -e 's/\\</[[:<:]]/g' -e 's/\\>/[[:>:]]/g' \
${WRKSRC}/doc/syntax/*.nanorc
post-install:
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/nanorc.sample ${EXAMPLESDIR}
.include <bsd.port.post.mk>
|