freebsd-ports/devel/bin86/Makefile
Akinori MUSHA 32c83edfbc Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.

Use command macros where appropriate.
2002-01-29 10:16:28 +00:00

49 lines
1.1 KiB
Makefile

# New ports collection makefile for: bin86
# Date created: 2000-10-19
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= bin86
PORTVERSION= 0.16.0
CATEGORIES= devel
MASTER_SITES= http://www.cix.co.uk/~mayday/
MAINTAINER= trevor@FreeBSD.org
DOCS= ChangeLog README README-0.4
DOCDIR= share/doc/${PORTNAME}
MAN1= as86.1 ld86.1
ONLY_FOR_ARCHS= i386
PLIST= ${WRKDIR}/pkg-plist
post-extract:
${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
pre-install:
${RM} -f ${PLIST}
cd ${WRKSRC} && \
${FIND} -s ${WRKSRC} -perm 755 -type f -exec ${BASENAME} \{\} \; \
| ${SED} -e 's:^:bin/:' >> ${PLIST}
.if !defined(NOPORTDOCS)
.for i in ${DOCS}
${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST}
.endfor
${ECHO_CMD} "@dirrm " ${DOCDIR} >> ${PLIST}
.endif
do-install:
${INSTALL_MAN} ${WRKSRC}/man/*1 ${PREFIX}/man/man1
${INSTALL_PROGRAM} `find ${WRKSRC} -type f -perm 755 |grep -v encap` \
${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/as/as86_encap ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/${DOCDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
.endfor
.endif
.include <bsd.port.mk>