View | Details | Raw Unified | Return to bug 175761
Collapse All | Expand All

(-)./Makefile (-49 / +28 lines)
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>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (superiotool-20090930.tar.bz2) = 2d06800cc1e24622526d6a1dc729eaee94e7a50ffd2600e60064a77fcebb3dca
1
SHA256 (superiotool-20121019.tar.bz2) = d4140f3a50e53f46dd9b1edfc8353113f29f437201907d613150d431dbfc7a62
2
SIZE (superiotool-20090930.tar.bz2) = 29348
2
SIZE (superiotool-20121019.tar.bz2) = 29827
(-)./files/patch-Makefile (+49 lines)
Line 0 Link Here
1
--- Makefile.orig	2012-10-19 16:44:32.000000000 +0300
2
+++ Makefile	2012-10-20 01:32:35.427651135 +0300
3
@@ -20,28 +20,24 @@
4
 
5
 PROGRAM = superiotool
6
 
7
-CC      = gcc
8
-INSTALL = /usr/bin/install
9
-PREFIX  = /usr/local
10
+CC      ?= gcc
11
+INSTALL ?= /usr/bin/install
12
+PREFIX  ?= /usr/local
13
 
14
 # Set the superiotool version string to the output of 'git describe'.
15
 
16
-VERSION := -D'SUPERIOTOOL_VERSION="$(shell git describe 2>/dev/null)"'
17
-
18
-CFLAGS += -O2 -Wall -Wstrict-prototypes -Wundef -Wstrict-aliasing \
19
-         -Werror-implicit-function-declaration -ansi -pedantic $(VERSION)
20
-LDFLAGS += -lz
21
+VERSION ?= -D'SUPERIOTOOL_VERSION="$(shell git describe 2>/dev/null)"'
22
 
23
 OBJS = superiotool.o serverengines.o ali.o fintek.o ite.o nsc.o nuvoton.o \
24
        smsc.o winbond.o infineon.o
25
 
26
-OS_ARCH = $(shell uname)
27
+OS_ARCH = FreeBSD
28
 ifeq ($(OS_ARCH), Darwin)
29
 LIBS = -framework IOKit -framework DirectHW -lpci -lz
30
 endif
31
 ifeq ($(OS_ARCH), FreeBSD)
32
-CFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
33
-         -Werror-implicit-function-declaration -ansi $(VERSION) \
34
+CFLAGS += -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
35
+         -Werror-implicit-function-declaration $(VERSION) \
36
          -I/usr/local/include
37
 LDFLAGS += -L/usr/local/lib
38
 LIBS = -lz
39
@@ -69,8 +65,8 @@ $(PROGRAM): $(OBJS) superiotool.h
40
 install: $(PROGRAM)
41
 	mkdir -p $(DESTDIR)$(PREFIX)/sbin
42
 	$(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
43
-	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8
44
-	$(INSTALL) $(PROGRAM).8 $(DESTDIR)$(PREFIX)/share/man/man8
45
+	mkdir -p $(DESTDIR)$(PREFIX)/man/man8
46
+	$(INSTALL) $(PROGRAM).8 $(DESTDIR)$(PREFIX)/man/man8
47
 
48
 clean:
49
 	rm -f $(PROGRAM) *.o

Return to bug 175761