Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 08:34:58 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346461 - head/x11-wm/lwm
Message-ID:  <201402280834.s1S8YwkB078333@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Feb 28 08:34:57 2014
New Revision: 346461
URL: http://svnweb.freebsd.org/changeset/ports/346461
QAT: https://qat.redports.org/buildarchive/r346461/

Log:
  Support stage, cleanup a bit

Modified:
  head/x11-wm/lwm/Makefile

Modified: head/x11-wm/lwm/Makefile
==============================================================================
--- head/x11-wm/lwm/Makefile	Fri Feb 28 08:33:46 2014	(r346460)
+++ head/x11-wm/lwm/Makefile	Fri Feb 28 08:34:57 2014	(r346461)
@@ -21,24 +21,13 @@ MAKE_ARGS=	LDFLAGS="${LDFLAGS}"
 CFLAGS+=	`pkg-config --cflags sm x11 xext ice` -DSHAPE
 LDFLAGS+=	`pkg-config --libs sm x11 xext ice`
 
-MAN1=		${PORTNAME}.1
 PORTDOCS=	AUTHORS BUGS ChangeLog README TODO
-PLIST_FILES=	bin/${PORTNAME}
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-post-patch:
-	@${LN} -sf ${PORTNAME}.man ${WRKSRC}/${PORTNAME}.1
+PLIST_FILES=	bin/${PORTNAME} man/man1/${PORTSNAME}.1.gz
 
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
-	(cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 ${MANPREFIX}/man/man1)
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
-.endfor
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402280834.s1S8YwkB078333>