|
Lines 1-50
Link Here
|
| 1 |
# New ports collection makefile for: superiotool |
1 |
# Created by: Andriy Gapon <avg@icyb.net.ua> |
| 2 |
# Date created: 2009-09-30 |
2 |
# $FreeBSD: ports/sysutils/superiotool/Makefile,v 1.4 2010/09/25 18:20:25 makc Exp $ |
| 3 |
# Whom: Andriy Gapon <avg@icyb.net.ua> |
|
|
| 4 |
# |
| 5 |
# $FreeBSD: ports/sysutils/superiotool/Makefile,v 1.5 2012/11/17 06:01:46 svnexp Exp $ |
| 6 |
# |
| 7 |
|
| 8 |
PORTNAME= superiotool |
| 9 |
DISTVERSION= 20090930 |
| 10 |
CATEGORIES= sysutils |
| 11 |
MASTER_SITES= http://www.icyb.net.ua/~avg/distfiles/ |
| 12 |
|
| 13 |
MAINTAINER= avg@icyb.net.ua |
| 14 |
COMMENT= Helper tool for Super I/O chip detection and analysis |
| 15 |
|
| 16 |
USE_BZIP2= yes |
| 17 |
USE_GMAKE= yes |
| 18 |
|
| 19 |
PLIST_FILES= sbin/superiotool |
| 20 |
MAN8= superiotool.8 |
| 21 |
|
| 22 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
| 23 |
SVNROOT= svn://coreboot.org/repos/trunk/util/superiotool |
| 24 |
|
| 25 |
gen-dist: |
| 26 |
@if [ ! -f ${LOCALBASE}/bin/svn ]; then \ |
| 27 |
${ECHO_CMD} "ERROR: You need to have devel/subversion installed for gen-dist target"; \ |
| 28 |
${FALSE}; \ |
| 29 |
fi |
| 30 |
@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ |
| 31 |
${MKDIR} ${WRKDIR}/svn; \ |
| 32 |
cd ${WRKDIR}/svn && svn co ${SVNROOT}; \ |
| 33 |
${TAR} cfj ${_DISTDIR}${DISTFILES} ${PORTNAME}; \ |
| 34 |
cd ${WRKDIR} && ${RM} -rf svn; \ |
| 35 |
cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} makesum; \ |
| 36 |
fi |
| 37 |
|
| 38 |
post-patch: |
| 39 |
@${REINPLACE_CMD} -e 's#/share/man/#/man/#g' -e 's#-ansi##g' \ |
| 40 |
-Ee '\#^(CC|INSTALL|PREFIX)#s#=#?=#' \ |
| 41 |
-e '\#^CFLAGS#s#=#+=#' -e 's#-O2##' \ |
| 42 |
${WRKSRC}/Makefile |
| 43 |
|
| 44 |
.include <bsd.port.pre.mk> |
| 45 |
|
| 46 |
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" |
| 47 |
BROKEN= Does not compile on ia64, powerpc, or sparc64: attempts to use i386 asm |
| 48 |
.endif |
| 49 |
|
3 |
|
| 50 |
.include <bsd.port.post.mk> |
4 |
PORTNAME= superiotool |
|
|
5 |
DISTVERSION= 20121019 |
| 6 |
CATEGORIES= sysutils |
| 7 |
MASTER_SITES= ${MASTER_SITE_LOCAL} \ |
| 8 |
http://www.icyb.net.ua/~avg/distfiles/ |
| 9 |
MASTER_SITE_SUBDIR= avg |
| 10 |
|
| 11 |
MAINTAINER= avg@icyb.net.ua |
| 12 |
COMMENT= Helper tool for Super I/O chip detection and analysis |
| 13 |
|
| 14 |
LIB_DEPENDS= pci:${PORTSDIR}/devel/libpci |
| 15 |
|
| 16 |
ONLY_FOR_ARCHS= i386 amd64 |
| 17 |
ONLY_FOR_ARCHS_REASON= The tool is for x86-specific hardware |
| 18 |
|
| 19 |
USE_BZIP2= yes |
| 20 |
USE_GMAKE= yes |
| 21 |
|
| 22 |
PLIST_FILES= sbin/superiotool |
| 23 |
MAN8= superiotool.8 |
| 24 |
|
| 25 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
| 26 |
UPSTREAM_VERS= 4.0-2827-g1a00cf0 |
| 27 |
MAKE_ENV+= VERSION=-DSUPERIOTOOL_VERSION='\"${UPSTREAM_VERS}\"' |
| 28 |
|
| 29 |
.include <bsd.port.mk> |