mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Back out parts of the r366375 that had nothing to do with staging or fixing
the build on -CURRENT. This restores Makefile sanity and diff clarity with r357486. (Fixing the build without GCC would be attempted separately.)
This commit is contained in:
parent
74bb837024
commit
3968deee88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366380
1 changed files with 42 additions and 47 deletions
|
@ -12,26 +12,16 @@ COMMENT= Set of Unix utilities written in x86 assembly language
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
|
|
||||||
|
ONLY_FOR_ARCHS= i386
|
||||||
|
|
||||||
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
||||||
|
|
||||||
USES= gmake
|
USES= gmake
|
||||||
USE_GCC= any
|
USE_GCC= any
|
||||||
MAKE_ARGS= OS="${OPSYS:tu}" KERNEL="${OSREL:S/.//g}" CC="${CC}" LD="${LD}"
|
MAKE_ARGS= OS="${OPSYS:tu}" KERNEL="${OSREL:S/.//g}" CC="${CC}" LD="${LD}"
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= i386
|
|
||||||
|
|
||||||
# Stripping binaries will break installation
|
|
||||||
STRIP= #
|
|
||||||
|
|
||||||
PORTDOCS= *
|
|
||||||
PLIST_FILES= ${BINS:S/^/bin\/asmutils\//:S/bonus\///} \
|
|
||||||
${LINKS:S/^/bin\/asmutils\//} ${LIBS:S/^/lib\/asmutils\//}
|
|
||||||
PLIST_DIRS= lib/asmutils bin/asmutils
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS
|
|
||||||
|
|
||||||
# This will play merry hell with portlint(1)
|
# This will play merry hell with portlint(1)
|
||||||
BINS= bonus/asmutils basename cal cat chmod chown chroot cmp cp \
|
BINARIES= bonus/asmutils basename cal cat chmod chown chroot cmp cp \
|
||||||
cpuinfo cut date dc dd deflate dirname du echo env \
|
cpuinfo cut date dc dd deflate dirname du echo env \
|
||||||
bonus/execve extname factor fromdos ftpd getty grep head \
|
bonus/execve extname factor fromdos ftpd getty grep head \
|
||||||
hexdump host hostname httpd id idea init kill kldload less \
|
hexdump host hostname httpd id idea init kill kldload less \
|
||||||
|
@ -45,44 +35,49 @@ BINS= bonus/asmutils basename cal cat chmod chown chroot cmp cp \
|
||||||
LINKS= arch cpuspeed domainname false halt inflate kldstat kldunload \
|
LINKS= arch cpuspeed domainname false halt inflate kldstat kldunload \
|
||||||
mkfifo more poweroff regs rmdir size sln todos umount usleep
|
mkfifo more poweroff regs rmdir size sln todos umount usleep
|
||||||
|
|
||||||
LIBS= libc.so.0 libcrypto.so.0 libm.so.0
|
LIBRARIES= libc.so.0 libcrypto.so.0 libm.so.0
|
||||||
|
|
||||||
|
PLIST_FILES= ${BINARIES:S/^/bin\/asmutils\//:S/bonus\///} \
|
||||||
|
${LINKS:S/^/bin\/asmutils\//} ${LIBRARIES:S/^/lib\/asmutils\//}
|
||||||
|
PLIST_DIRS= bin/asmutils lib/asmutils
|
||||||
|
PORTDOCS= *
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e \
|
@${REINPLACE_CMD} -e 's,^static ,,' ${WRKSRC}/lib/libm.c
|
||||||
's|^static ||' ${WRKSRC}/lib/libm.c
|
|
||||||
|
# Stripping binaries will break installation
|
||||||
|
STRIP= #
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/bin/asmutils
|
@${MKDIR} ${STAGEDIR}${PREFIX}/bin/asmutils \
|
||||||
.for bin in ${BINS}
|
${STAGEDIR}${PREFIX}/lib/asmutils
|
||||||
(cd ${WRKSRC}/src && ${INSTALL_SCRIPT} ${bin} \
|
${INSTALL_PROGRAM} ${BINARIES:S,^,${WRKSRC}/src/,} \
|
||||||
${STAGEDIR}${PREFIX}/bin/asmutils)
|
${STAGEDIR}${PREFIX}/bin/asmutils
|
||||||
.endfor
|
${INSTALL_PROGRAM} ${LIBRARIES:S,^,${WRKSRC}/lib/,} \
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/asmutils
|
${STAGEDIR}${PREFIX}/lib/asmutils
|
||||||
.for lib in ${LIBS}
|
(cd ${STAGEDIR}${PREFIX}/bin/asmutils && \
|
||||||
(cd ${WRKSRC}/lib && ${INSTALL_DATA} ${lib} \
|
${LN} -sf uname arch && \
|
||||||
${STAGEDIR}${PREFIX}/lib/asmutils)
|
${LN} -sf cpuinfo cpuspeed && \
|
||||||
.endfor
|
${LN} -sf hostname domainname && \
|
||||||
(cd ${STAGEDIR}${PREFIX}/bin/asmutils \
|
${LN} -sf true false && \
|
||||||
&& ${LN} -sf uname arch \
|
${LN} -sf reboot halt && \
|
||||||
&& ${LN} -sf cpuinfo cpuspeed \
|
${LN} -sf deflate inflate && \
|
||||||
&& ${LN} -sf hostname domainname \
|
${LN} -sf kldload kldstat && \
|
||||||
&& ${LN} -sf true false \
|
${LN} -sf kldload kldunload && \
|
||||||
&& ${LN} -sf reboot halt \
|
${LN} -sf mknod mkfifo && \
|
||||||
&& ${LN} -sf deflate inflate \
|
${LN} -sf less more && \
|
||||||
&& ${LN} -sf kldload kldstat \
|
${LN} -sf reboot poweroff && \
|
||||||
&& ${LN} -sf kldload kldunload \
|
${LN} -sf execve regs && \
|
||||||
&& ${LN} -sf mknod mkfifo \
|
${LN} -sf mkdir rmdir && \
|
||||||
&& ${LN} -sf less more \
|
${LN} -sf nm size && \
|
||||||
&& ${LN} -sf reboot poweroff \
|
${LN} -sf ln sln && \
|
||||||
&& ${LN} -sf execve regs \
|
${LN} -sf fromdos todos && \
|
||||||
&& ${LN} -sf mkdir rmdir \
|
${LN} -sf mount umount && \
|
||||||
&& ${LN} -sf nm size \
|
${LN} -sf sleep usleep)
|
||||||
&& ${LN} -sf ln sln \
|
|
||||||
&& ${LN} -sf fromdos todos \
|
|
||||||
&& ${LN} -sf mount umount \
|
|
||||||
&& ${LN} -sf sleep usleep)
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
(cd ${WRKSRC}/doc && ${INSTALL_DATA} [^i]* ${STAGEDIR}${DOCSDIR})
|
${INSTALL_DATA} ${WRKSRC}/doc/[^i]* ${STAGEDIR}${DOCSDIR}
|
||||||
(cd ${STAGEDIR}${DOCSDIR} && ${LN} -sf Asmutils-HOWTO.html index.html)
|
${LN} -sf Asmutils-HOWTO.html ${STAGEDIR}/${DOCSDIR}/index.html
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue