aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xmbmon
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-06-18 21:10:46 +0000
committerJohn Marino <marino@FreeBSD.org>2014-06-18 21:10:46 +0000
commitd00ecce924ae34616fd83d9ff804e3cd76f0f907 (patch)
treecca8aa61c0df3cef852d75d9683d94dfca5ed888 /sysutils/xmbmon
parent795cf5e8ae8c108451fae1ce69c9d3b5cdb0d745 (diff)
downloadports-d00ecce924ae34616fd83d9ff804e3cd76f0f907.tar.gz
ports-d00ecce924ae34616fd83d9ff804e3cd76f0f907.zip
Notes
Diffstat (limited to 'sysutils/xmbmon')
-rw-r--r--sysutils/xmbmon/Makefile28
-rw-r--r--sysutils/xmbmon/files/patch-Makefile.in34
2 files changed, 16 insertions, 46 deletions
diff --git a/sysutils/xmbmon/Makefile b/sysutils/xmbmon/Makefile
index 910dc259b3e5..6ad34b22873e 100644
--- a/sysutils/xmbmon/Makefile
+++ b/sysutils/xmbmon/Makefile
@@ -3,7 +3,7 @@
PORTNAME= xmbmon
PORTVERSION= 205
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= sysutils
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/${PORTNAME}/
DISTNAME= ${PORTNAME}${PORTVERSION}
@@ -26,9 +26,9 @@ OPTIONS_DEFINE= ASUS SMB DOCS
OPTIONS_MULTI= INTERFACE
OPTIONS_MULTI_INTERFACE= CLI X11
OPTIONS_DEFAULT=SMB CLI
-ASUS_DESC= "Enable A7N8X-VM support"
-SMB_DESC= "Enable smb(4) support"
-CLI_DESC= "CLI support only"
+ASUS_DESC= Enable A7N8X-VM support
+SMB_DESC= Enable smb(4) support
+CLI_DESC= CLI support only
ASUS_PATCHFILES= ${PORTNAME}${PORTVERSION}_A7N8X-VM.patch
X11_PLIST_FILES= lib/X11/app-defaults/${PORTNAME} \
@@ -49,18 +49,22 @@ USE_RC_SUBR= mbmon
.endif
post-patch:
- @${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${STAGEIR}${DOCSDIR}+' ${WRKSRC}/mbmon.1
- @${REINPLACE_CMD} -e 's+%%STAGEDIR%%%%PREFIX%%+${STAGEDIR}${PREFIX}+' ${WRKSRC}/Makefile.in
-.if !${PORT_OPTIONS:MX11}
- @${REINPLACE_CMD} -e '/p xmbmon/d' ${WRKSRC}/Makefile.in
-.endif
-.if !${PORT_OPTIONS:MCLI}
- @${REINPLACE_CMD} -e '/p mbmon/d' ${WRKSRC}/Makefile.in
-.endif
+ @${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${STAGEDIR}${DOCSDIR}+' \
+ ${WRKSRC}/mbmon.1
.if ${PORT_OPTIONS:MSMB}
@${REINPLACE_CMD} -e 's/^DEFS=/&-DSMBUS_IOCTL /' ${WRKSRC}/Makefile.in
.endif
+do-install:
+.if ${PORT_OPTIONS:MX11}
+ ${INSTALL_PROGRAM} ${WRKSRC}/xmbmon \
+ ${STAGEDIR}${PREFIX}/lib/X11/app-defaults
+ ${INSTALL_MAN} ${WRKSRC}/xmbmon.1x ${STAGEDIR}${MANPREFIX}/man/man1
+.endif
+.if ${PORT_OPTIONS:MCLI}
+ ${INSTALL_PROGRAM} ${WRKSRC}/mbmon ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/mbmon.1 ${STAGEDIR}${MANPREFIX}/man/man1
+.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
diff --git a/sysutils/xmbmon/files/patch-Makefile.in b/sysutils/xmbmon/files/patch-Makefile.in
index 5df6468877a5..daae964a5e80 100644
--- a/sysutils/xmbmon/files/patch-Makefile.in
+++ b/sysutils/xmbmon/files/patch-Makefile.in
@@ -12,37 +12,3 @@
LINT=lint
# LINT=$(CC) -c -Wall -Wshadow -Wpointer-arith
-@@ -37,9 +37,9 @@
- RM=rm -f
- INSTALL=install
-
--INST_DIR=/usr/local/bin
--INST_MANDIR=/usr/local/man/man1
--INST_XDIR=/usr/X11R6/bin
-+INST_DIR=%%STAGEDIR%%%%PREFIX%%/bin
-+INST_MANDIR=%%STAGEDIR%%%%PREFIX%%/man/man1
-+INST_XDIR=%%STAGEDIR%%%%PREFIX%%/lib/X11/app-defaults
- INST_MANXDIR=/usr/X11R6/man/man1
- INST_XRDIR=/usr/X11R6/lib/X11/app-defaults
-
-@@ -56,7 +56,7 @@
- HWM_OBJ = sens_winbond.o sens_via686.o sens_it87.o sens_gl52.o sens_lm85.o sens_lm80.o sens_lm90.o sens_lm75.o sens_wl784.o smb_extemp.o
- OBJS = getMBinfo.o tyan_tiger.o pci_pm.o sensors.o $(MB_OBJ) $(SMB_OBJ) $(HWM_OBJ)
-
--all: $(PROGRAM)
-+all: $(PROGRAM) $(MANPAGE)
-
- mbmon: mbmon.c mbmon.h methods.h pci_pm.h smbuses.h sensors.h $(OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ mbmon.c $(OBJS) $(LIBS)
-@@ -135,10 +135,8 @@
- install: $(PROGRAM)
- $(INSTALL) -o root -g wheel -m 4555 -c -p mbmon $(INST_DIR)
- $(INSTALL) -o root -g wheel -m 4555 -c -p xmbmon $(INST_XDIR)
--
--install-man: $(MANPAGE)
- $(INSTALL) -o root -g wheel -m 444 -c -p mbmon.1 $(INST_MANDIR)
-- $(INSTALL) -o root -g wheel -m 444 -c -p xmbmon.1x $(INST_MANXDIR)
-+ $(INSTALL) -o root -g wheel -m 444 -c -p xmbmon.1x $(INST_MANDIR)
-
- lint:
- $(LINT) $(INCLUDES) $(DEFS) $(FONTDEFINES) $(SRCS) -lm