openbsd-ports/editors/nano/Makefile

41 lines
1.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.54 2007/09/16 00:44:00 merdely Exp $
COMMENT= Pico editor clone with enhancements
DISTNAME= nano-2.0.6
CATEGORIES= editors
HOMEPAGE= http://www.nano-editor.org/
2000-09-23 08:38:21 -04:00
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
MASTER_SITES= http://www.nano-editor.org/dist/v2.0/ \
http://www.ewtoo.org/~astyanax/nano/dist/v2.0/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-08-10 04:32:35 -04:00
MODULES= devel/gettext
2006-11-07 10:31:37 -05:00
WANTLIB= c ncurses
SEPARATE_BUILD= simple
2006-11-07 10:31:37 -05:00
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${DEPBASE}/include" \
LDFLAGS="-L${DEPBASE}/lib"
2003-08-13 19:56:32 -04:00
CONFIGURE_ARGS= --enable-all
CONFIGURE_ARGS+=--disable-utf8 # no wide character curses
2003-08-13 19:56:32 -04:00
2003-10-04 19:26:36 -04:00
post-install:
perl -i -pe 's:SYSCONFDIR:${SYSCONFDIR}:g;' \
-e 's:PREFIX:${TRUEPREFIX}:g;' \
${PREFIX}/man/man1/nano.1 \
${PREFIX}/man/man5/nanorc.5 \
${PREFIX}/info/nano.info
2003-10-04 19:26:36 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nano
${INSTALL_DATA} ${WRKBUILD}/doc/nanorc.sample \
${PREFIX}/share/examples/nano
2003-10-04 19:26:36 -04:00
.include <bsd.port.mk>