Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2014 06:23:48 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366380 - head/devel/asmutils
Message-ID:  <201408280623.s7S6NmfM051127@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Aug 28 06:23:48 2014
New Revision: 366380
URL: http://svnweb.freebsd.org/changeset/ports/366380
QAT: https://qat.redports.org/buildarchive/r366380/

Log:
  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.)

Modified:
  head/devel/asmutils/Makefile

Modified: head/devel/asmutils/Makefile
==============================================================================
--- head/devel/asmutils/Makefile	Thu Aug 28 06:21:36 2014	(r366379)
+++ head/devel/asmutils/Makefile	Thu Aug 28 06:23:48 2014	(r366380)
@@ -12,26 +12,16 @@ COMMENT=	Set of Unix utilities written i
 
 LICENSE=	GPLv2
 
+ONLY_FOR_ARCHS=	i386
+
 BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
 
 USES=		gmake
 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 \
+BINARIES=	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 \
@@ -45,44 +35,49 @@ BINS=		bonus/asmutils basename cal cat c
 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
+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:
-	@${REINPLACE_CMD} -e \
-		's|^static ||' ${WRKSRC}/lib/libm.c
+	@${REINPLACE_CMD} -e 's,^static ,,' ${WRKSRC}/lib/libm.c
+
+# Stripping binaries will break installation
+STRIP=	#
 
 do-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/bin/asmutils
-.for bin in ${BINS}
-	(cd ${WRKSRC}/src && ${INSTALL_SCRIPT} ${bin} \
-		${STAGEDIR}${PREFIX}/bin/asmutils)
-.endfor
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/asmutils
-.for lib in ${LIBS}
-	(cd ${WRKSRC}/lib && ${INSTALL_DATA} ${lib} \
-		${STAGEDIR}${PREFIX}/lib/asmutils)
-.endfor
-	(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}${PREFIX}/bin/asmutils \
+		${STAGEDIR}${PREFIX}/lib/asmutils
+	${INSTALL_PROGRAM} ${BINARIES:S,^,${WRKSRC}/src/,} \
+		${STAGEDIR}${PREFIX}/bin/asmutils
+	${INSTALL_PROGRAM} ${LIBRARIES:S,^,${WRKSRC}/lib/,} \
+		${STAGEDIR}${PREFIX}/lib/asmutils
+	(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)
+	${INSTALL_DATA} ${WRKSRC}/doc/[^i]* ${STAGEDIR}${DOCSDIR}
+	${LN} -sf Asmutils-HOWTO.html ${STAGEDIR}/${DOCSDIR}/index.html
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408280623.s7S6NmfM051127>