2001-03-10 22:32:47 +01:00
|
|
|
# New ports collection makefile for: asmutils
|
|
|
|
# Date created: 22 January 2001
|
|
|
|
# Whom: George Reid <greid@ukug.uk.freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= asmutils
|
2004-02-07 18:24:16 +01:00
|
|
|
PORTVERSION= 0.17
|
|
|
|
PORTREVISION= 0
|
2001-03-10 22:32:47 +01:00
|
|
|
CATEGORIES= devel
|
2001-07-22 09:21:13 +02:00
|
|
|
MASTER_SITES= http://linuxassembly.org/asmutils/
|
2001-03-10 22:32:47 +01:00
|
|
|
|
2003-11-03 01:54:32 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A set of UNIX utilities written in assembly language
|
2001-03-10 22:32:47 +01:00
|
|
|
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
LDCONFIG_DIRS= ${PREFIX}/lib/asmutils
|
|
|
|
|
|
|
|
# This will play merry hell with portlint
|
2001-05-14 21:27:39 +02:00
|
|
|
BINARIES= asmutils basename cat chmod chown chroot cp cpuinfo date \
|
|
|
|
dd dirname echo env execve extname factor grep head \
|
|
|
|
hexdump hostname httpd id init kill ln ls lzss md5sum \
|
|
|
|
mkdir more mv nc ping pwd rc6crypt renice report rm rmdsum \
|
|
|
|
sh sleep strings sync tee true uname wc yes
|
2001-03-10 22:32:47 +01:00
|
|
|
|
2004-02-07 18:24:16 +01:00
|
|
|
PORTDOCS= Asmutils-HOWTO.html acknowledgements.html endorsements.html \
|
|
|
|
history.html index.html s-contrib.html s-debug.html \
|
|
|
|
s-include.html s-layout.html s-optimize.html
|
2003-06-05 00:43:38 +02:00
|
|
|
|
2004-07-01 22:01:18 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 502119
|
|
|
|
BROKEN= "Does not install on FreeBSD >= 5.x"
|
|
|
|
.endif
|
|
|
|
|
2001-03-10 22:32:47 +01:00
|
|
|
post-patch:
|
2001-03-13 00:53:53 +01:00
|
|
|
@(${SED} -e 's,%%KERNEL%%,${OSREL:S/.//g},g' ${WRKSRC}/MCONFIG > ${WRKDIR}/foo \
|
|
|
|
&& ${MV} ${WRKDIR}/foo ${WRKSRC}/MCONFIG)
|
2001-03-10 22:32:47 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/bin/asmutils
|
|
|
|
${MKDIR} ${PREFIX}/lib/asmutils
|
|
|
|
.for B in ${BINARIES}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/$B ${PREFIX}/bin/asmutils
|
|
|
|
.endfor
|
2001-05-14 21:27:39 +02:00
|
|
|
(cd ${PREFIX}/bin/asmutils && \
|
|
|
|
${LN} -sf uname arch && \
|
|
|
|
${LN} -sf cpuinfo cpuspeed && \
|
|
|
|
${LN} -sf hostname domainname && \
|
|
|
|
${LN} -sf true false && \
|
|
|
|
${LN} -sf execve regs && \
|
|
|
|
${LN} -sf mkdir rmdir && \
|
|
|
|
${LN} -sf ln sln)
|
2001-03-10 22:32:47 +01:00
|
|
|
.for L in c crypto m
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/lib$L.so.0 ${PREFIX}/lib/asmutils
|
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-02-07 18:24:16 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for D in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/$D ${DOCSDIR}
|
2001-03-10 22:32:47 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-07-01 22:01:18 +02:00
|
|
|
.include <bsd.port.post.mk>
|