2004-11-14 22:51:05 +01:00
|
|
|
# $NetBSD: Makefile,v 1.81 2004/11/14 21:51:05 abs Exp $
|
2001-06-07 11:59:28 +02:00
|
|
|
#
|
|
|
|
|
2004-11-14 22:51:05 +01:00
|
|
|
DISTNAME= cpuflags-0.78
|
2003-06-03 12:17:48 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
2001-06-07 11:59:28 +02:00
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= abs@NetBSD.org
|
2003-06-03 12:17:48 +02:00
|
|
|
COMMENT= Determine compiler flags to best target current cpu
|
2001-06-07 11:59:28 +02:00
|
|
|
|
2002-06-21 13:35:16 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-*-*
|
2001-06-07 11:59:28 +02:00
|
|
|
|
|
|
|
EXTRACT_ONLY= # empty
|
2004-02-13 22:08:33 +01:00
|
|
|
USE_LANGUAGES= # empty
|
2001-06-07 11:59:28 +02:00
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_CONFIGURE= yes
|
2004-03-17 01:26:55 +01:00
|
|
|
|
|
|
|
FILES_SUBST+= PREFIX="${PREFIX}"
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
.for FILE in cpuflags.1 cpuflags.mk
|
|
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/${FILE} \
|
|
|
|
> ${WRKSRC}/${FILE}
|
|
|
|
.endfor
|
2001-06-07 11:59:28 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/cpuflags.${OPSYS} ${PREFIX}/bin/cpuflags
|
2003-05-29 13:45:50 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/optimize_gcc.mk ${PREFIX}/share/mk/optimize_gcc.mk
|
2004-03-17 01:26:55 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/cpuflags.mk ${PREFIX}/share/mk/cpuflags.mk
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/cpuflags.1 ${PREFIX}/man/man1/cpuflags.1
|
2001-06-07 11:59:28 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|