aboutsummaryrefslogtreecommitdiff
path: root/sysutils/mbmon/Makefile
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2003-02-05 00:52:56 +0000
committerPatrick Li <pat@FreeBSD.org>2003-02-05 00:52:56 +0000
commit570816fa8745c1af09ebc75fd506ec9ab1587fa7 (patch)
tree070e935d0e121b92c96e75566ff2af58b7f92625 /sysutils/mbmon/Makefile
parentf2e7e24ee46bdb2037ea60063c42e1258f8d4a4c (diff)
downloadports-570816fa8745c1af09ebc75fd506ec9ab1587fa7.tar.gz
ports-570816fa8745c1af09ebc75fd506ec9ab1587fa7.zip
Notes
Diffstat (limited to 'sysutils/mbmon/Makefile')
-rw-r--r--sysutils/mbmon/Makefile45
1 files changed, 17 insertions, 28 deletions
diff --git a/sysutils/mbmon/Makefile b/sysutils/mbmon/Makefile
index 51ee399805dc..68d915252468 100644
--- a/sysutils/mbmon/Makefile
+++ b/sysutils/mbmon/Makefile
@@ -1,26 +1,24 @@
-# ports collection makefile for: xmbmon
-# Date created: 2001/08/30
-# Whom: kaz
+# Ports collection makefile for: xmbmon
+# Date created: 2001/08/30
+# Whom: kaz@kobe1995.net (NAKAMURA Kauzushi)
#
# $FreeBSD$
#
PORTNAME= xmbmon
-PORTVERSION= 107p1
+PORTVERSION= 201
CATEGORIES= sysutils
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
GNU_CONFIGURE= yes
-DOCS= 00README.txt 00READMEj.txt DEBUG_Info xmbmon.resources
-
-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
+.if defined(WITHOUT_X11)
+MAKE_ARGS+= DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
PLIST_SUB= X11_ONLY="@comment "
.else
USE_XLIB= yes
@@ -28,21 +26,12 @@ MAKE_ARGS+= DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
PLIST_SUB= X11_ONLY=""
.endif
-.include <bsd.port.pre.mk>
-
-pre-extract:
- @${ECHO}
- @${ECHO} "set WITHOUT_X11 variable to 'yes' if you want to build without X11"
- @${ECHO}
-
-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
+pre-everything::
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "Definable build options"
+ @${ECHO_CMD} "-----------------------"
+ @${ECHO_CMD} "WITHOUT_X11 - Self explanatory"
+ @${ECHO_CMD} ""
post-install:
.if !defined(NOPORTDOCS)
@@ -50,4 +39,4 @@ post-install:
(cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-doc)
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>