2001-09-03 17:37:52 +00:00
|
|
|
# ports collection makefile for: xmbmon
|
|
|
|
# Date created: 2001/08/30
|
|
|
|
# Whom: kaz
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmbmon
|
2002-03-12 02:51:41 +00:00
|
|
|
PORTVERSION= 107p1
|
2001-09-03 17:37:52 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/
|
2002-03-12 02:51:41 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/p/pl/}
|
2001-09-03 17:37:52 +00:00
|
|
|
|
|
|
|
MAINTAINER= kaz@kobe1995.net
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
DOCS= 00README.txt 00READMEj.txt DEBUG_Info xmbmon.resources
|
|
|
|
|
2001-09-24 07:39:17 +00:00
|
|
|
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 "
|
|
|
|
.else
|
|
|
|
USE_XLIB= yes
|
|
|
|
MAKE_ARGS+= DOCSDIR='$(DOCSDIR)' INSTALL_DATA='$(INSTALL_DATA)'
|
|
|
|
PLIST_SUB= X11_ONLY=""
|
|
|
|
.endif
|
|
|
|
|
2001-09-03 17:37:52 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-09-24 07:39:17 +00:00
|
|
|
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
|
|
|
|
|
2001-09-03 17:37:52 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2001-09-24 07:39:17 +00:00
|
|
|
(cd ${WRKSRC}; ${MAKE} ${MAKE_ARGS} install-doc)
|
2001-09-03 17:37:52 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|