2009-12-22 14:21:32 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.59 2009/12/22 19:21:32 naddy Exp $
|
2000-06-24 10:31:37 -04:00
|
|
|
|
2007-09-15 20:44:00 -04:00
|
|
|
COMMENT= Pico editor clone with enhancements
|
2001-04-06 21:30:01 -04:00
|
|
|
|
2009-12-22 14:21:32 -05:00
|
|
|
DISTNAME= nano-2.2.1
|
2000-06-24 10:31:37 -04:00
|
|
|
CATEGORIES= editors
|
2001-10-30 08:03:40 -05:00
|
|
|
HOMEPAGE= http://www.nano-editor.org/
|
2000-06-24 10:31:37 -04:00
|
|
|
|
2000-09-23 08:38:21 -04:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
2000-06-24 10:31:37 -04:00
|
|
|
|
2009-12-22 14:21:32 -05:00
|
|
|
MASTER_SITES= http://www.nano-editor.org/dist/v2.2/ \
|
2009-12-01 14:39:31 -05:00
|
|
|
${MASTER_SITE_GNU:=nano/}
|
2000-06-24 10:31:37 -04:00
|
|
|
|
2007-12-27 15:53:18 -05:00
|
|
|
# GPLv3
|
2000-06-24 10:31:37 -04:00
|
|
|
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
|
2000-06-24 10:31:37 -04:00
|
|
|
|
2006-12-14 16:26:53 -05:00
|
|
|
SEPARATE_BUILD= simple
|
2006-11-07 10:31:37 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2005-04-19 05:41:41 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${DEPBASE}/include" \
|
|
|
|
LDFLAGS="-L${DEPBASE}/lib"
|
2009-12-01 14:39:31 -05:00
|
|
|
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:
|
2006-12-14 16:26:53 -05:00
|
|
|
perl -i -pe 's:SYSCONFDIR:${SYSCONFDIR}:g;' \
|
|
|
|
-e 's:PREFIX:${TRUEPREFIX}:g;' \
|
2004-06-30 18:18:45 -04:00
|
|
|
${PREFIX}/man/man1/nano.1 \
|
2006-12-14 16:26:53 -05:00
|
|
|
${PREFIX}/man/man5/nanorc.5 \
|
2004-06-30 18:18:45 -04:00
|
|
|
${PREFIX}/info/nano.info
|
2003-10-04 19:26:36 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nano
|
2006-12-14 16:26:53 -05:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/doc/nanorc.sample \
|
|
|
|
${PREFIX}/share/examples/nano
|
2003-10-04 19:26:36 -04:00
|
|
|
|
2009-12-01 14:39:31 -05:00
|
|
|
# Maintainer hint:
|
|
|
|
# Use sed -e 's/\\</[[:<:]]/g' -e 's/\\>/[[:>:]]/g' to regen the
|
|
|
|
# doc/syntax/*.nanorc patches.
|
|
|
|
|
2000-06-24 10:31:37 -04:00
|
|
|
.include <bsd.port.mk>
|