openbsd-ports/editors/nano/Makefile

50 lines
1.3 KiB
Makefile
Raw Normal View History

2010-10-18 17:50:38 -04:00
# $OpenBSD: Makefile,v 1.65 2010/10/18 21:50:38 sthen Exp $
COMMENT= Pico editor clone with enhancements
2010-08-18 15:41:45 -04:00
DISTNAME= nano-2.2.5
2010-09-06 13:37:23 -04:00
REVISION= 0
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.2/ \
2009-12-01 14:39:31 -05:00
${MASTER_SITE_GNU:=nano/}
# GPLv3
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"
2010-10-18 17:50:38 -04:00
USE_GROFF = Yes
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;' \
2010-08-18 15:41:45 -04:00
-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 \
2010-08-18 15:41:45 -04: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 14:39:31 -05:00
.include <bsd.port.mk>