1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/editors/ne/Makefile
Andrej Zverev a02df25c27 - Remove deprecated USE_REINPLACE
- Remove no longer exist core.inec.ru from MASTER_SITES list - R.I.P
2006-02-22 08:35:50 +00:00

52 lines
1.1 KiB
Makefile

# New ports collection makefile for: ne
# Date created: 2005-07-21
# Whom: Andrej Zverev <az@inec.ru>
#
# $FreeBSD$
#
PORTNAME= ne
PORTVERSION= 1.42
CATEGORIES= editors
MASTER_SITES= http://ne.dsi.unimi.it/ \
${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
MAINTAINER= az@FreeBSD.org
COMMENT= Nice and powerfull editor
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>