1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

Update to 201

PR:		ports/42984
Submitted by:	maintainer
This commit is contained in:
Patrick Li 2003-02-05 00:52:56 +00:00
parent f2e7e24ee4
commit 570816fa87
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74713
14 changed files with 78 additions and 134 deletions

View File

@ -1,26 +1,24 @@
# ports collection makefile for: xmbmon # Ports collection makefile for: xmbmon
# Date created: 2001/08/30 # Date created: 2001/08/30
# Whom: kaz # Whom: kaz@kobe1995.net (NAKAMURA Kauzushi)
# #
# $FreeBSD$ # $FreeBSD$
# #
PORTNAME= xmbmon PORTNAME= xmbmon
PORTVERSION= 107p1 PORTVERSION= 201
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/ MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/
DISTNAME= ${PORTNAME}${PORTVERSION:S/p/pl/} .if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
.endif
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= kaz@kobe1995.net MAINTAINER= kaz@kobe1995.net
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
DOCS= 00README.txt 00READMEj.txt DEBUG_Info xmbmon.resources .if defined(WITHOUT_X11)
MAKE_ARGS+= DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
WITHOUT_X11?= no
.if (${WITHOUT_X11} == yes)
MAKE_ARGS+= WITHOUT_X11=yes DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
DOCS= 00README.txt 00READMEj.txt DEBUG_Info
PLIST_SUB= X11_ONLY="@comment " PLIST_SUB= X11_ONLY="@comment "
.else .else
USE_XLIB= yes USE_XLIB= yes
@ -28,21 +26,12 @@ MAKE_ARGS+= DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
PLIST_SUB= X11_ONLY="" PLIST_SUB= X11_ONLY=""
.endif .endif
.include <bsd.port.pre.mk> pre-everything::
@${ECHO_CMD} ""
pre-extract: @${ECHO_CMD} "Definable build options"
@${ECHO} @${ECHO_CMD} "-----------------------"
@${ECHO} "set WITHOUT_X11 variable to 'yes' if you want to build without X11" @${ECHO_CMD} "WITHOUT_X11 - Self explanatory"
@${ECHO} @${ECHO_CMD} ""
post-patch:
@${MV} -f ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.X
.if ${WITHOUT_X11} == yes
@${GREP} -v '^PROGRAM+=' ${WRKSRC}/Makefile.in.X | ${SED} 's/__DOCS__/$(DOCS)/' > ${WRKSRC}/Makefile.in
.else
@${SED} 's/__DOCS__/$(DOCS)/' ${WRKSRC}/Makefile.in.X > ${WRKSRC}/Makefile.in
.endif
@${RM} -f ${WRKSRC}/Makefile.in.X
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
@ -50,4 +39,4 @@ post-install:
(cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-doc) (cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-doc)
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (xmbmon107pl1.tar.gz) = 086ba6c4ba6c99f860cf01f2e6b940d8 MD5 (xmbmon201.tar.gz) = 1774fdd5ef6b6fa6b119ca5826381aac

View File

@ -1,8 +1,8 @@
--- Makefile.in~ Mon Feb 11 00:43:27 2002 --- Makefile.in.orig Thu Aug 22 14:03:21 2002
+++ Makefile.in Sun Feb 17 13:33:34 2002 +++ Makefile.in Fri Nov 22 22:14:39 2002
@@ -11,9 +11,9 @@ @@ -13,9 +13,9 @@
DEFS=-DHAVE_CONFIG_H DEFS=-DHAVE_CONFIG_H -Wall
-LIBDIR=/usr/X11R6/lib -LIBDIR=/usr/X11R6/lib
+LIBDIR=$(X11BASE)/lib +LIBDIR=$(X11BASE)/lib
@ -12,7 +12,7 @@
XLIB=-lXaw -lXmu XLIB=-lXaw -lXmu
EXTENSIONLIB=-lXext EXTENSIONLIB=-lXext
INCLUDES=-I$(INCDIR) INCLUDES=-I$(INCDIR)
@@ -21,9 +21,9 @@ @@ -23,9 +23,9 @@
LIBS=-L$(LIBDIR) -lXaw $(XLIB) -lXt $(EXTENSIONLIB) -lX11 -lm LIBS=-L$(LIBDIR) -lXaw $(XLIB) -lXt $(EXTENSIONLIB) -lX11 -lm
#CC=/compat/linux/usr/bin/gcc #CC=/compat/linux/usr/bin/gcc
@ -25,7 +25,7 @@
LDFLAGS=-s LDFLAGS=-s
LINT=lint LINT=lint
@@ -32,16 +32,19 @@ @@ -34,16 +34,22 @@
RM=rm -f RM=rm -f
INSTALL=install INSTALL=install
@ -39,18 +39,21 @@
.c.o: .c.o:
$(CC) -c $(CFLAGS) $*.c $(CC) -c $(CFLAGS) $*.c
-PROGRAM = mbmon xmbmon testpci testsmb testhwm testfan -PROGRAM = mbmon xmbmon
-
+PROGRAM = mbmon +PROGRAM = mbmon
+TESTER = testpci testsmb testhwm testfan TESTPROG = testpci testsmb testhwm testfan
+DOCS= 00README.txt 00READMEj.txt DEBUG_Info xmbmon.resources +DOCS= 00README.txt 00READMEj.txt 00READMEtech.txt
+.if !defined(WITHOUT_X11)
+DOCS+= xmbmon.resources
+PROGRAM+= xmbmon +PROGRAM+= xmbmon
+.endif
+
+all: $(PROGRAM) $(TESTPROG)
-all: $(PROGRAM) MB_OBJ = getMB-via.o getMB-smb.o getMB-isa.o
+all: $(PROGRAM) $(TESTER) SMB_OBJ = smbus_piix4.o smbus_amd.o smbus_ali.o
@@ -115,8 +121,14 @@
mbmon: methods.h mbmon.c mbmon_small.c getMBinfo.o getMB-isa.o getMB-smb.o getMB-via.o pci_hwm.h pci_hwm.o smb_io.h smb_io.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mbmon.c getMBinfo.o getMB-isa.o getMB-smb.o getMB-via.o pci_hwm.o
@@ -68,8 +71,14 @@
$(RM) Makefile config.cache config.log config.h config.status $(RM) Makefile config.cache config.log config.h config.status
install: $(PROGRAM) install: $(PROGRAM)
@ -63,7 +66,7 @@
lint: lint:
$(LINT) $(INCLUDES) $(DEFS) $(FONTDEFINES) $(SRCS) -lm $(LINT) $(INCLUDES) $(DEFS) $(FONTDEFINES) $(SRCS) -lm
+ +
+install-doc: $(DOCS) +install-doc:
+ @for f in $(DOCS); do \ + @for f in $(DOCS); do \
+ $(INSTALL_DATA) $$f $(DOCSDIR)/; \ + $(INSTALL_DATA) $$f $(DOCSDIR)/; \
+ done + done

View File

@ -1,10 +0,0 @@
--- getMB-isa.c.orig Tue Dec 10 08:56:28 2002
+++ getMB-isa.c Tue Dec 10 08:57:21 2002
@@ -8,6 +8,7 @@
#include <fcntl.h>
#ifndef LINUX /* FreeBSD */
+#include <sys/types.h>
#include <machine/cpufunc.h>
#define OUTb(x,y) outb((x),(y))
#define WAIT outb(0xEB,0x00)

View File

@ -1,10 +0,0 @@
--- getMB-via.c.orig Tue Dec 10 08:56:53 2002
+++ getMB-via.c Tue Dec 10 08:59:07 2002
@@ -11,6 +11,7 @@
#include <fcntl.h>
#ifndef LINUX /* FreeBSD */
+#include <sys/types.h>
#include <machine/cpufunc.h>
#define OUTb(x,y) outb((x),(y))
#define WAIT outb(0xEB,0x00)

View File

@ -12,4 +12,4 @@ the superuser privilege, so it may cause a system crash. Please test
WWW: http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html WWW: http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
-- --
kaz kaz@kobe1995.net (NAKAMURA Kazushi)

View File

@ -2,6 +2,6 @@ bin/mbmon
%%X11_ONLY%%bin/xmbmon %%X11_ONLY%%bin/xmbmon
%%PORTDOCS%%share/doc/xmbmon/00README.txt %%PORTDOCS%%share/doc/xmbmon/00README.txt
%%PORTDOCS%%share/doc/xmbmon/00READMEj.txt %%PORTDOCS%%share/doc/xmbmon/00READMEj.txt
%%PORTDOCS%%share/doc/xmbmon/DEBUG_Info %%PORTDOCS%%share/doc/xmbmon/00READMEtech.txt
%%X11_ONLY%%%%PORTDOCS%%share/doc/xmbmon/xmbmon.resources %%X11_ONLY%%%%PORTDOCS%%share/doc/xmbmon/xmbmon.resources
%%PORTDOCS%%@dirrm share/doc/xmbmon %%PORTDOCS%%@dirrm share/doc/xmbmon

View File

@ -1,26 +1,24 @@
# ports collection makefile for: xmbmon # Ports collection makefile for: xmbmon
# Date created: 2001/08/30 # Date created: 2001/08/30
# Whom: kaz # Whom: kaz@kobe1995.net (NAKAMURA Kauzushi)
# #
# $FreeBSD$ # $FreeBSD$
# #
PORTNAME= xmbmon PORTNAME= xmbmon
PORTVERSION= 107p1 PORTVERSION= 201
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/ MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/
DISTNAME= ${PORTNAME}${PORTVERSION:S/p/pl/} .if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
.endif
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= kaz@kobe1995.net MAINTAINER= kaz@kobe1995.net
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
DOCS= 00README.txt 00READMEj.txt DEBUG_Info xmbmon.resources .if defined(WITHOUT_X11)
MAKE_ARGS+= DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
WITHOUT_X11?= no
.if (${WITHOUT_X11} == yes)
MAKE_ARGS+= WITHOUT_X11=yes DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
DOCS= 00README.txt 00READMEj.txt DEBUG_Info
PLIST_SUB= X11_ONLY="@comment " PLIST_SUB= X11_ONLY="@comment "
.else .else
USE_XLIB= yes USE_XLIB= yes
@ -28,21 +26,12 @@ MAKE_ARGS+= DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
PLIST_SUB= X11_ONLY="" PLIST_SUB= X11_ONLY=""
.endif .endif
.include <bsd.port.pre.mk> pre-everything::
@${ECHO_CMD} ""
pre-extract: @${ECHO_CMD} "Definable build options"
@${ECHO} @${ECHO_CMD} "-----------------------"
@${ECHO} "set WITHOUT_X11 variable to 'yes' if you want to build without X11" @${ECHO_CMD} "WITHOUT_X11 - Self explanatory"
@${ECHO} @${ECHO_CMD} ""
post-patch:
@${MV} -f ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.X
.if ${WITHOUT_X11} == yes
@${GREP} -v '^PROGRAM+=' ${WRKSRC}/Makefile.in.X | ${SED} 's/__DOCS__/$(DOCS)/' > ${WRKSRC}/Makefile.in
.else
@${SED} 's/__DOCS__/$(DOCS)/' ${WRKSRC}/Makefile.in.X > ${WRKSRC}/Makefile.in
.endif
@${RM} -f ${WRKSRC}/Makefile.in.X
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
@ -50,4 +39,4 @@ post-install:
(cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-doc) (cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-doc)
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (xmbmon107pl1.tar.gz) = 086ba6c4ba6c99f860cf01f2e6b940d8 MD5 (xmbmon201.tar.gz) = 1774fdd5ef6b6fa6b119ca5826381aac

View File

@ -1,8 +1,8 @@
--- Makefile.in~ Mon Feb 11 00:43:27 2002 --- Makefile.in.orig Thu Aug 22 14:03:21 2002
+++ Makefile.in Sun Feb 17 13:33:34 2002 +++ Makefile.in Fri Nov 22 22:14:39 2002
@@ -11,9 +11,9 @@ @@ -13,9 +13,9 @@
DEFS=-DHAVE_CONFIG_H DEFS=-DHAVE_CONFIG_H -Wall
-LIBDIR=/usr/X11R6/lib -LIBDIR=/usr/X11R6/lib
+LIBDIR=$(X11BASE)/lib +LIBDIR=$(X11BASE)/lib
@ -12,7 +12,7 @@
XLIB=-lXaw -lXmu XLIB=-lXaw -lXmu
EXTENSIONLIB=-lXext EXTENSIONLIB=-lXext
INCLUDES=-I$(INCDIR) INCLUDES=-I$(INCDIR)
@@ -21,9 +21,9 @@ @@ -23,9 +23,9 @@
LIBS=-L$(LIBDIR) -lXaw $(XLIB) -lXt $(EXTENSIONLIB) -lX11 -lm LIBS=-L$(LIBDIR) -lXaw $(XLIB) -lXt $(EXTENSIONLIB) -lX11 -lm
#CC=/compat/linux/usr/bin/gcc #CC=/compat/linux/usr/bin/gcc
@ -25,7 +25,7 @@
LDFLAGS=-s LDFLAGS=-s
LINT=lint LINT=lint
@@ -32,16 +32,19 @@ @@ -34,16 +34,22 @@
RM=rm -f RM=rm -f
INSTALL=install INSTALL=install
@ -39,18 +39,21 @@
.c.o: .c.o:
$(CC) -c $(CFLAGS) $*.c $(CC) -c $(CFLAGS) $*.c
-PROGRAM = mbmon xmbmon testpci testsmb testhwm testfan -PROGRAM = mbmon xmbmon
-
+PROGRAM = mbmon +PROGRAM = mbmon
+TESTER = testpci testsmb testhwm testfan TESTPROG = testpci testsmb testhwm testfan
+DOCS= 00README.txt 00READMEj.txt DEBUG_Info xmbmon.resources +DOCS= 00README.txt 00READMEj.txt 00READMEtech.txt
+.if !defined(WITHOUT_X11)
+DOCS+= xmbmon.resources
+PROGRAM+= xmbmon +PROGRAM+= xmbmon
+.endif
+
+all: $(PROGRAM) $(TESTPROG)
-all: $(PROGRAM) MB_OBJ = getMB-via.o getMB-smb.o getMB-isa.o
+all: $(PROGRAM) $(TESTER) SMB_OBJ = smbus_piix4.o smbus_amd.o smbus_ali.o
@@ -115,8 +121,14 @@
mbmon: methods.h mbmon.c mbmon_small.c getMBinfo.o getMB-isa.o getMB-smb.o getMB-via.o pci_hwm.h pci_hwm.o smb_io.h smb_io.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mbmon.c getMBinfo.o getMB-isa.o getMB-smb.o getMB-via.o pci_hwm.o
@@ -68,8 +71,14 @@
$(RM) Makefile config.cache config.log config.h config.status $(RM) Makefile config.cache config.log config.h config.status
install: $(PROGRAM) install: $(PROGRAM)
@ -63,7 +66,7 @@
lint: lint:
$(LINT) $(INCLUDES) $(DEFS) $(FONTDEFINES) $(SRCS) -lm $(LINT) $(INCLUDES) $(DEFS) $(FONTDEFINES) $(SRCS) -lm
+ +
+install-doc: $(DOCS) +install-doc:
+ @for f in $(DOCS); do \ + @for f in $(DOCS); do \
+ $(INSTALL_DATA) $$f $(DOCSDIR)/; \ + $(INSTALL_DATA) $$f $(DOCSDIR)/; \
+ done + done

View File

@ -1,10 +0,0 @@
--- getMB-isa.c.orig Tue Dec 10 08:56:28 2002
+++ getMB-isa.c Tue Dec 10 08:57:21 2002
@@ -8,6 +8,7 @@
#include <fcntl.h>
#ifndef LINUX /* FreeBSD */
+#include <sys/types.h>
#include <machine/cpufunc.h>
#define OUTb(x,y) outb((x),(y))
#define WAIT outb(0xEB,0x00)

View File

@ -1,10 +0,0 @@
--- getMB-via.c.orig Tue Dec 10 08:56:53 2002
+++ getMB-via.c Tue Dec 10 08:59:07 2002
@@ -11,6 +11,7 @@
#include <fcntl.h>
#ifndef LINUX /* FreeBSD */
+#include <sys/types.h>
#include <machine/cpufunc.h>
#define OUTb(x,y) outb((x),(y))
#define WAIT outb(0xEB,0x00)

View File

@ -12,4 +12,4 @@ the superuser privilege, so it may cause a system crash. Please test
WWW: http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html WWW: http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
-- --
kaz kaz@kobe1995.net (NAKAMURA Kazushi)

View File

@ -2,6 +2,6 @@ bin/mbmon
%%X11_ONLY%%bin/xmbmon %%X11_ONLY%%bin/xmbmon
%%PORTDOCS%%share/doc/xmbmon/00README.txt %%PORTDOCS%%share/doc/xmbmon/00README.txt
%%PORTDOCS%%share/doc/xmbmon/00READMEj.txt %%PORTDOCS%%share/doc/xmbmon/00READMEj.txt
%%PORTDOCS%%share/doc/xmbmon/DEBUG_Info %%PORTDOCS%%share/doc/xmbmon/00READMEtech.txt
%%X11_ONLY%%%%PORTDOCS%%share/doc/xmbmon/xmbmon.resources %%X11_ONLY%%%%PORTDOCS%%share/doc/xmbmon/xmbmon.resources
%%PORTDOCS%%@dirrm share/doc/xmbmon %%PORTDOCS%%@dirrm share/doc/xmbmon