diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-08-28 11:34:51 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-08-28 11:34:51 +0800 |
commit | 59e7d4ec23c8a6fc794f974e2a4d42e4fa80692f (patch) | |
tree | afb1352236515b2005a83cef9a17f9ec4f9a8546 /devel | |
parent | afc0bff53eff30e988663a082b85f4519e5abc0f (diff) | |
download | freebsd-ports-gnome-59e7d4ec23c8a6fc794f974e2a4d42e4fa80692f.tar.gz freebsd-ports-gnome-59e7d4ec23c8a6fc794f974e2a4d42e4fa80692f.tar.zst freebsd-ports-gnome-59e7d4ec23c8a6fc794f974e2a4d42e4fa80692f.zip |
1: Fix build on -current
2: Stagify.
PR: ports/193030
Submitted by: Ports Fury.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/asmutils/Makefile | 88 |
1 files changed, 46 insertions, 42 deletions
diff --git a/devel/asmutils/Makefile b/devel/asmutils/Makefile index 0bce9d524f5c..fdf7a3dc85fb 100644 --- a/devel/asmutils/Makefile +++ b/devel/asmutils/Makefile @@ -12,12 +12,23 @@ COMMENT= Set of Unix utilities written in x86 assembly language LICENSE= GPLv2 -ONLY_FOR_ARCHS= i386 - BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm USES= gmake -MAKE_ARGS= OS=${OPSYS:tu} KERNEL=${OSREL:S/.//g} +USE_GCC= any +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) BINS= bonus/asmutils basename cal cat chmod chown chroot cmp cp \ @@ -34,51 +45,44 @@ BINS= bonus/asmutils basename cal cat chmod chown chroot cmp cp \ LINKS= arch cpuspeed domainname false halt inflate kldstat kldunload \ mkfifo more poweroff regs rmdir size sln todos umount usleep -LIBRARIES= libc.so.0 libcrypto.so.0 libm.so.0 - -PLIST_FILES= ${BINS:S/^/bin\/asmutils\//:S/bonus\///} \ - ${LINKS:S/^/bin\/asmutils\//} ${LIBRARIES:S/^/lib\/asmutils\//} -PLIST_DIRS= bin/asmutils lib/asmutils -PORTDOCS= * +LIBS= libc.so.0 libcrypto.so.0 libm.so.0 -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} -e 's,^static ,,' ${WRKSRC}/lib/libm.c - -# Stripping binaries will break installation -STRIP= # + @${REINPLACE_CMD} -e \ + 's|^static ||' ${WRKSRC}/lib/libm.c do-install: - @${MKDIR} ${PREFIX}/bin/asmutils ${PREFIX}/lib/asmutils + @${MKDIR} ${STAGEDIR}${PREFIX}/bin/asmutils .for bin in ${BINS} - ${INSTALL_PROGRAM} ${WRKSRC}/src/${bin} ${PREFIX}/bin/asmutils + (cd ${WRKSRC}/src && ${INSTALL_SCRIPT} ${bin} \ + ${STAGEDIR}${PREFIX}/bin/asmutils) .endfor -.for lib in ${LIBRARIES} - ${INSTALL_PROGRAM} ${WRKSRC}/lib/${lib} ${PREFIX}/lib/asmutils + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/asmutils +.for lib in ${LIBS} + (cd ${WRKSRC}/lib && ${INSTALL_DATA} ${lib} \ + ${STAGEDIR}${PREFIX}/lib/asmutils) .endfor - (cd ${PREFIX}/bin/asmutils && \ - ${LN} -sf uname arch && \ - ${LN} -sf cpuinfo cpuspeed && \ - ${LN} -sf hostname domainname && \ - ${LN} -sf true false && \ - ${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 && \ - ${LN} -sf execve regs && \ - ${LN} -sf mkdir rmdir && \ - ${LN} -sf nm size && \ - ${LN} -sf ln sln && \ - ${LN} -sf fromdos todos && \ - ${LN} -sf mount umount && \ - ${LN} -sf sleep usleep) -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/[^i]* ${DOCSDIR} - @cd ${DOCSDIR} && ${LN} -sf Asmutils-HOWTO.html index.html -.endif + (cd ${STAGEDIR}${PREFIX}/bin/asmutils \ + && ${LN} -sf uname arch \ + && ${LN} -sf cpuinfo cpuspeed \ + && ${LN} -sf hostname domainname \ + && ${LN} -sf true false \ + && ${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 \ + && ${LN} -sf execve regs \ + && ${LN} -sf mkdir rmdir \ + && ${LN} -sf nm size \ + && ${LN} -sf ln sln \ + && ${LN} -sf fromdos todos \ + && ${LN} -sf mount umount \ + && ${LN} -sf sleep usleep) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${INSTALL_DATA} [^i]* ${STAGEDIR}${DOCSDIR}) + (cd ${STAGEDIR}${DOCSDIR} && ${LN} -sf Asmutils-HOWTO.html index.html) .include <bsd.port.mk> |