# New ports collection makefile for: ne # Date created: 2005-07-21 # Whom: Andrej Zverev # # $FreeBSD$ # PORTNAME= ne PORTVERSION= 1.42 CATEGORIES= editors MASTER_SITES= http://ne.dsi.unimi.it/ \ ${MASTER_SITE_GENTOO} \ http://core.inec.ru/~az/ MASTER_SITE_SUBDIR= distfiles MAINTAINER= az@FreeBSD.org COMMENT= Nice and powerfull editor .include .if ${OSVERSION} < 400010 LIB_DEPENDS+= ncurses:${PORTSDIR}/devel/ncurses .endif WRKSRC= ${WRKDIR}/${DISTNAME}/src USE_GMAKE= yes USE_PERL5= yes MAKEFILE= makefile ALL_TARGET= ne MAKE_ARGS= CFLAGS="${CFLAGS} -DNOWCHAR" CC="${CC}" \ GLOBALDIR="${DATADIR}" MAN1= ne.1 PORTDOCS= ne.txt post-patch: @${PERL5} -pi -e 's|tmpnam\(|mkstemp\(|g' ${WRKSRC}/actions.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ne ${PREFIX}/bin ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/../doc/default.keys ${DATADIR}/ ${INSTALL_DATA} ${WRKSRC}/../doc/default.menus ${DATADIR}/ ${INSTALL_MAN} ${WRKSRC}/../doc/ne.1 ${PREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC:S/src//}doc/ne.txt ${DOCSDIR} .endif .include