This software has quite broken original Makefile, at least for us.
Instead of trying to patch it, just supply a BSD-specific Makefile using <bsd.prog.mk>. This removes the build-time dependency of this tiny port on USE_REINPLACE and the heavy-weight gmake at once.
This commit is contained in:
parent
f99dba79e0
commit
f353783dfa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155426
@ -16,15 +16,10 @@ MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= CPU identification utility
|
||||
|
||||
PLIST_FILES= bin/cpuid
|
||||
USE_REINPLACE= yes
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
USE_GMAKE= yes
|
||||
ALL_TARGET= # empty
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,gcc,${CC},g ; s,^CFLAGS,#CFLAGS,g" ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/cpuid ${PREFIX}/bin
|
||||
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.bak && \
|
||||
${CP} ${FILESDIR}/Makefile.bsd ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
4
misc/cpuid/files/Makefile.bsd
Normal file
4
misc/cpuid/files/Makefile.bsd
Normal file
@ -0,0 +1,4 @@
|
||||
PROG=cpuid
|
||||
NOMAN=
|
||||
BINDIR=${PREFIX}/bin
|
||||
.include <bsd.prog.mk>"
|
Loading…
Reference in New Issue
Block a user