blob: d780e3b9d56116ce08a45de340c4e0ebf5b239a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: asmutils
# Date created: 22 January 2001
# Whom: George Reid <greid@ukug.uk.freebsd.org>
#
# $FreeBSD$
#
PORTNAME= asmutils
PORTVERSION= 0.17
CATEGORIES= devel
MASTER_SITES= http://asm.sourceforge.net/asmutils/
MAINTAINER= danfe@FreeBSD.org
COMMENT= A set of UNIX utilities written in assembly language
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= ${PREFIX}/lib/asmutils
# This will play merry hell with portlint
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
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
post-patch:
@${REINPLACE_CMD} -e 's,%%KERNEL%%,${OSREL:S/.//g},g' ${WRKSRC}/MCONFIG
@${REINPLACE_CMD} -e 's,m386,march=i386,' ${WRKSRC}/lib/Makefile
@${REINPLACE_CMD} -E 's,(^all:[[:space:]]+)check[[:space:]]*,\1,' \
${WRKSRC}/lib/Makefile ${WRKSRC}/src/Makefile
# Stripping binaries will break install
STRIP= #
do-install:
${MKDIR} ${PREFIX}/bin/asmutils
${MKDIR} ${PREFIX}/lib/asmutils
.for B in ${BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/src/$B ${PREFIX}/bin/asmutils
.endfor
(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)
.for L in c crypto m
${INSTALL_PROGRAM} ${WRKSRC}/lib/lib$L.so.0 ${PREFIX}/lib/asmutils
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for D in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/$D ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|