svn commit: r310580 - head/x11-wm/mcwm

Jason Helfman jgh at FreeBSD.org
Fri Jan 18 01:29:18 UTC 2013


Author: jgh
Date: Fri Jan 18 01:29:17 2013
New Revision: 310580
URL: http://svnweb.freebsd.org/changeset/ports/310580

Log:
  - makefile cleanup and trim historical header
  - fix LIB_DEPENDS
  - while here trim COMMENT and use INSTALL_DATA
  
  PR:		175367
  Submitted by:	maintainer, jakub_lach at mailplus.pl

Modified:
  head/x11-wm/mcwm/Makefile

Modified: head/x11-wm/mcwm/Makefile
==============================================================================
--- head/x11-wm/mcwm/Makefile	Fri Jan 18 00:59:37 2013	(r310579)
+++ head/x11-wm/mcwm/Makefile	Fri Jan 18 01:29:17 2013	(r310580)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:   mcwm
-# Date created:        16 March 2011
-# Whom:                Jakub Lach <jakub_lach at mailplus.pl>
-#
+# Created by: Jakub Lach <jakub_lach at mailplus.pl>
 # $FreeBSD$
-#
 
 PORTNAME=	mcwm
 PORTVERSION=	20111124
@@ -12,14 +8,14 @@ CATEGORIES=	x11-wm
 MASTER_SITES=	http://hack.org/mc/hacks/mcwm/
 
 MAINTAINER=	jakub_lach at mailplus.pl
-COMMENT=	A small window manager inspired by CTWM, evilwm, and tinywm
+COMMENT=	Small window manager inspired by CTWM, evilwm, and tinywm
 
 LICENSE=	ISCL
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	xcb-util:${PORTSDIR}/x11/xcb-util \
 		xcb-keysyms:${PORTSDIR}/x11/xcb-util-keysyms \
-		xcb-icccm:${PORTSDIR}/x11/xcb-util-wm \
+		xcb-icccm:${PORTSDIR}/x11/xcb-util-wm
 
 MAKE_JOBS_SAFE=	yes
 
@@ -28,7 +24,7 @@ USE_BZIP2=	yes
 
 MAN1=		mcwm.1
 PLIST_FILES=	bin/mcwm
-PORTDOCS=	LICENSE README NEWS
+PORTDOCS=	README NEWS
 
 pre-everything::
 		@${ECHO_MSG} "You can build mcwm with your own config.h using the MCWM_CONF knob:"
@@ -45,17 +41,18 @@ post-patch:
 	    ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man \
 		${MAN1PREFIX}/man/man1/${PORTNAME}.1
 
+.include <bsd.port.options.mk>
+
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
 	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
-	@${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
-	@${INSTALL_MAN} ${WRKSRC}/NEWS ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
 .endif
 	@${CAT} ${PKGMESSAGE}
 


More information about the svn-ports-all mailing list