2005-01-26 11:40:28 +01:00
|
|
|
# New ports collection makefile for: asmutils
|
|
|
|
# Date created: 22 January 2001
|
|
|
|
# Whom: George Reid <greid@ukug.uk.freebsd.org>
|
2001-03-10 22:32:47 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= asmutils
|
2006-02-21 15:45:40 +01:00
|
|
|
PORTVERSION= 0.18
|
2001-03-10 22:32:47 +01:00
|
|
|
CATEGORIES= devel
|
2005-04-25 12:30:55 +02:00
|
|
|
MASTER_SITES= http://asm.sourceforge.net/asmutils/
|
2001-03-10 22:32:47 +01:00
|
|
|
|
2005-01-26 11:40:28 +01:00
|
|
|
MAINTAINER= danfe@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
|
|
|
|
|
2009-10-10 23:31:09 +02:00
|
|
|
BROKEN= does not install
|
2001-03-10 22:32:47 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-03-10 22:32:47 +01:00
|
|
|
LDCONFIG_DIRS= ${PREFIX}/lib/asmutils
|
|
|
|
|
|
|
|
# This will play merry hell with portlint
|
2006-02-21 15:45:40 +01:00
|
|
|
BINS= bonus/asmutils basename cal cat chmod chown chroot cmp cp \
|
|
|
|
cpuinfo cut date dc dd deflate dirname du echo env bonus/execve \
|
|
|
|
extname factor fromdos ftpd getty grep head hexdump host hostname \
|
|
|
|
httpd id idea init kill kldload less ln ls lzss m_inetd md5 \
|
|
|
|
md5sum mkdir mknod mount mv nc netstat nice nm nohup od \
|
|
|
|
paste ping pop3d proxy pwd rc6crypt readelf readkey readlink \
|
|
|
|
reboot renice bonus/report rm rmdsum rot13 scan scons sh sha1sum \
|
|
|
|
sleep strings sync tail tar tee telnet telnetd test touch tr \
|
|
|
|
true uname uuencode watch wc wget which whoami write yes
|
2001-03-10 22:32:47 +01:00
|
|
|
|
2006-02-21 15:45:40 +01:00
|
|
|
LINKS= arch cpuspeed domainname false halt inflate kldstat kldunload \
|
|
|
|
mkfifo more poweroff regs rmdir size sln todos umount usleep
|
|
|
|
|
|
|
|
LIBS= libc.so.0 libcrypto.so.0 libm.so.0
|
|
|
|
|
|
|
|
DOCS= Asmutils-HOWTO.html acknowledgements.html endorsements.html \
|
|
|
|
history.html s-contrib.html s-debug.html s-include.html \
|
|
|
|
s-layout.html s-optimize.html sha1sum.html sha1sum_toc.html
|
|
|
|
|
|
|
|
PLIST_FILES= ${BINS:S/^/bin\/asmutils\//:S/bonus\///} \
|
|
|
|
${LINKS:S/^/bin\/asmutils\//} ${LIBS:S/^/lib\/asmutils\//}
|
|
|
|
PLIST_DIRS= bin/asmutils lib/asmutils
|
|
|
|
PORTDOCS= *
|
2003-06-05 00:43:38 +02:00
|
|
|
|
2001-03-10 22:32:47 +01:00
|
|
|
post-patch:
|
2005-01-26 11:40:28 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,%%KERNEL%%,${OSREL:S/.//g},g' ${WRKSRC}/MCONFIG
|
2006-02-21 15:45:40 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,^static ,,' ${WRKSRC}/lib/libm.c
|
2005-01-26 11:40:28 +01:00
|
|
|
|
|
|
|
# Stripping binaries will break install
|
2005-03-22 08:50:46 +01:00
|
|
|
STRIP= #
|
2001-03-10 22:32:47 +01:00
|
|
|
|
|
|
|
do-install:
|
2005-11-30 14:49:40 +01:00
|
|
|
@${MKDIR} ${PREFIX}/bin/asmutils
|
|
|
|
@${MKDIR} ${PREFIX}/lib/asmutils
|
2006-02-21 15:45:40 +01:00
|
|
|
.for B in ${BINS}
|
2005-11-30 14:49:40 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${B} ${PREFIX}/bin/asmutils
|
2006-02-21 15:45:40 +01:00
|
|
|
.endfor
|
|
|
|
.for L in ${LIBS}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/${L} ${PREFIX}/lib/asmutils
|
2001-03-10 22:32:47 +01:00
|
|
|
.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 && \
|
2006-02-21 15:45:40 +01:00
|
|
|
${LN} -sf reboot halt && \
|
|
|
|
${LN} -sf deflate inflate && \
|
|
|
|
${LN} -sf kldload kldstat && \
|
|
|
|
${LN} -sf kldload kldunload && \
|
|
|
|
${LN} -sf mknod mkfifo && \
|
|
|
|
${LN} -sf less more && \
|
|
|
|
${LN} -sf reboot poweroff && \
|
2001-05-14 21:27:39 +02:00
|
|
|
${LN} -sf execve regs && \
|
|
|
|
${LN} -sf mkdir rmdir && \
|
2006-02-21 15:45:40 +01:00
|
|
|
${LN} -sf nm size && \
|
|
|
|
${LN} -sf ln sln && \
|
|
|
|
${LN} -sf fromdos todos && \
|
|
|
|
${LN} -sf mount umount && \
|
|
|
|
${LN} -sf sleep usleep)
|
|
|
|
|
2001-03-10 22:32:47 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-11-30 14:49:40 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-02-21 15:45:40 +01:00
|
|
|
.for D in ${DOCS}
|
2005-11-30 14:49:40 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${D} ${DOCSDIR}
|
2001-03-10 22:32:47 +01:00
|
|
|
.endfor
|
2006-02-21 15:45:40 +01:00
|
|
|
cd ${DOCSDIR} && ${LN} -sf Asmutils-HOWTO.html index.html
|
2001-03-10 22:32:47 +01:00
|
|
|
.endif
|
|
|
|
|
2005-03-22 08:50:46 +01:00
|
|
|
.include <bsd.port.mk>
|