2010-09-06 17:37:23 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.63 2010/09/06 17:37:23 naddy Exp $
|
2000-06-24 14:31:37 +00:00
|
|
|
|
2007-09-16 00:44:00 +00:00
|
|
|
COMMENT= Pico editor clone with enhancements
|
2001-04-07 01:30:01 +00:00
|
|
|
|
2010-08-18 19:41:45 +00:00
|
|
|
DISTNAME= nano-2.2.5
|
2010-09-06 17:37:23 +00:00
|
|
|
REVISION= 0
|
2000-06-24 14:31:37 +00:00
|
|
|
CATEGORIES= editors
|
2001-10-30 13:03:40 +00:00
|
|
|
HOMEPAGE= http://www.nano-editor.org/
|
2000-06-24 14:31:37 +00:00
|
|
|
|
2000-09-23 12:38:21 +00:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
2000-06-24 14:31:37 +00:00
|
|
|
|
2009-12-22 19:21:32 +00:00
|
|
|
MASTER_SITES= http://www.nano-editor.org/dist/v2.2/ \
|
2009-12-01 19:39:31 +00:00
|
|
|
${MASTER_SITE_GNU:=nano/}
|
2000-06-24 14:31:37 +00:00
|
|
|
|
2007-12-27 20:53:18 +00:00
|
|
|
# GPLv3
|
2000-06-24 14:31:37 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2004-08-10 08:32:35 +00:00
|
|
|
MODULES= devel/gettext
|
2006-11-07 15:31:37 +00:00
|
|
|
WANTLIB= c ncurses
|
2000-06-24 14:31:37 +00:00
|
|
|
|
2006-12-14 21:26:53 +00:00
|
|
|
SEPARATE_BUILD= simple
|
2006-11-07 15:31:37 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2005-04-19 09:41:41 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${DEPBASE}/include" \
|
|
|
|
LDFLAGS="-L${DEPBASE}/lib"
|
2003-08-13 23:56:32 +00:00
|
|
|
|
2003-10-04 23:26:36 +00:00
|
|
|
post-install:
|
2006-12-14 21:26:53 +00:00
|
|
|
perl -i -pe 's:SYSCONFDIR:${SYSCONFDIR}:g;' \
|
2010-08-18 19:41:45 +00:00
|
|
|
-e 's:PREFIX:${TRUEPREFIX}:g;' \
|
|
|
|
${PREFIX}/man/man1/nano.1 \
|
|
|
|
${PREFIX}/man/man5/nanorc.5 \
|
|
|
|
${PREFIX}/info/nano.info
|
2003-10-04 23:26:36 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nano
|
2006-12-14 21:26:53 +00:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/doc/nanorc.sample \
|
2010-08-18 19:41:45 +00:00
|
|
|
${PREFIX}/share/examples/nano
|
|
|
|
|
|
|
|
# convenience target for maintainer to regen the syntax highlighting patches
|
|
|
|
nanorc-patches: extract
|
|
|
|
cd ${WRKSRC}/doc/syntax; \
|
|
|
|
for i in *.nanorc; do \
|
|
|
|
mv $$i $$i.orig; \
|
|
|
|
sed -e 's/\\</[[:<:]]/g' -e 's/\\>/[[:>:]]/g' $$i.orig >$$i; \
|
|
|
|
cmp $$i.orig $$i && mv $$i.orig $$i; \
|
|
|
|
done
|
2009-12-01 19:39:31 +00:00
|
|
|
|
2000-06-24 14:31:37 +00:00
|
|
|
.include <bsd.port.mk>
|