openbsd-ports/editors/nano/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.45 2005/05/20 21:18:13 naddy Exp $
COMMENT= "small, easy to use editor"
DISTNAME= nano-1.2.5
CATEGORIES= editors
HOMEPAGE= http://www.nano-editor.org/
2000-09-23 08:38:21 -04:00
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
2003-08-13 19:56:32 -04:00
MASTER_SITES= http://www.nano-editor.org/dist/v1.2/ \
http://www.ewtoo.org/~astyanax/nano/dist/v1.2/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-11-24 06:08:02 -05:00
WANTLIB= c ncurses
FLAVORS= slang
FLAVOR?=
2004-08-10 04:32:35 -04:00
MODULES= devel/gettext
FAKE= lib
2004-02-20 16:30:38 -05:00
CONFIGURE_STYLE=autoconf
AUTOCONF_VERSION=2.59
CONFIGURE_ENV= CPPFLAGS="-I${DEPBASE}/include" \
LDFLAGS="-L${DEPBASE}/lib"
2003-08-13 19:56:32 -04:00
CONFIGURE_ARGS= --enable-all
.if ${FLAVOR:L:Mslang}
2003-08-13 19:56:32 -04:00
LIB_DEPENDS+= slang.14::devel/libslang
CONFIGURE_ARGS+=--with-slang="${DEPBASE}"
2004-11-24 06:08:02 -05:00
WANTLIB+= m
.endif
2003-10-04 19:26:36 -04:00
post-install:
perl -i -pe 's:\$$SYSCONFDIR:${SYSCONFDIR}:g' \
${PREFIX}/man/man5/nanorc.5 \
${PREFIX}/man/man1/nano.1 \
${PREFIX}/info/nano.info
2003-10-04 19:26:36 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nano
${INSTALL_DATA} ${WRKSRC}/nanorc.sample ${PREFIX}/share/examples/nano
.include <bsd.port.mk>