mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
45 lines
1008 B
Makefile
45 lines
1008 B
Makefile
# New ports collection makefile for: ne
|
|
# Date created: 2005-07-21
|
|
# Whom: Andrej Zverev <az@inec.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ne
|
|
PORTVERSION= 1.43
|
|
CATEGORIES= editors
|
|
MASTER_SITES= http://ne.dsi.unimi.it/ \
|
|
${MASTER_SITE_GENTOO}
|
|
MASTER_SITE_SUBDIR= distfiles
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Nice and powerfull editor
|
|
|
|
USE_GMAKE= yes
|
|
USE_PERL5= yes
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= ne
|
|
MAKE_ARGS= CFLAGS="${CFLAGS} -DNOWCHAR" CC="${CC}" \
|
|
GLOBALDIR="${DATADIR}"
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
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.mk>
|