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:
Yaroslav Tykhiy 2006-02-07 16:47:57 +00:00
parent f99dba79e0
commit f353783dfa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155426
2 changed files with 6 additions and 7 deletions

View File

@ -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>

View File

@ -0,0 +1,4 @@
PROG=cpuid
NOMAN=
BINDIR=${PREFIX}/bin
.include <bsd.prog.mk>"