Bug 177553 - x11-wm/windowlab: Fix build
Summary: x11-wm/windowlab: Fix build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-01 19:40 UTC by tkato432
Modified: 2013-04-03 07:30 UTC (History)
0 users

See Also:


Attachments
file.diff (2.70 KB, patch)
2013-04-01 19:40 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-04-01 19:40:01 UTC
- Fix build
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-04-01 19:40:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-04-03 07:21:48 UTC
Author: miwi
Date: Wed Apr  3 06:21:41 2013
New Revision: 315693
URL: http://svnweb.freebsd.org/changeset/ports/315693

Log:
  - Fix build
  - Update MASTER_SITES
  - OptionsNG
  
  PR:		177553
  Submitted by:	Ports Fury

Modified:
  head/x11-wm/windowlab/Makefile
  head/x11-wm/windowlab/distinfo   (contents, props changed)

Modified: head/x11-wm/windowlab/Makefile
==============================================================================
--- head/x11-wm/windowlab/Makefile	Wed Apr  3 06:12:53 2013	(r315692)
+++ head/x11-wm/windowlab/Makefile	Wed Apr  3 06:21:41 2013	(r315693)
@@ -3,39 +3,56 @@
 
 PORTNAME=	windowlab
 PORTVERSION=	1.40
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	http://nickgravgaard.com/windowlab/
 EXTRACT_SUFX=	.tar
+DIST_SUBDIR=	repacked
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A small window manager for X11
+COMMENT=	Small window manager for X11
 
-MAN1=		windowlab.1x
+LICENSE=	GPLv2
+
+OPTIONS_DEFINE=	XFT DOCS
 
 USE_XORG=	x11 xext
 USE_GMAKE=	yes
+MAKE_ENV=	XROOT="${LOCALBASE}" SYSCONFDIR="${ETCDIR}"
+MAKE_JOBS_SAFE=	yes
 
-BROKEN=		distfile mismatch
-
-MAKE_ARGS=	MENURC=${PREFIX}/etc/windowlab/menurc CC="${CC}"
+MAN1=		windowlab.1x
+PORTDOCS=	CHANGELOG README
+PLIST_FILES=	bin/windowlab %%ETCDIR%%/menurc
+PLIST_DIRS=	%%ETCDIR%%
 
-PLIST_FILES=	bin/windowlab etc/windowlab/menurc
-PLIST_DIRS=	etc/windowlab
+.include <bsd.port.options.mk>
 
-PORTDOCS=	CHANGELOG README
+.if ${PORT_OPTIONS:MXFT}
+USE_XORG+=	xft
+USE_PKGCONFIG=	build
+MAKE_ENV+=	EXTRA_INC="$$(pkg-config --cflags xft)" \
+		EXTRA_LIBS="$$(pkg-config --libs xft)"
+CFLAGS+=	-DXFT
+.endif
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,^CC =,CC ?=,' \
-		-e 's,/usr/X11R6,${LOCALBASE},g' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		's|^\(PREFIX\) =|\1 ?=| ; \
+		 s|^\(XROOT\) =|\1 ?=| ; \
+		 s|^\(SYSCONFDIR\) =|\1 ?=| ; \
+		 s|^\(CC\) =|\1 ?=|' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/windowlab ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/windowlab.1x ${MANPREFIX}/man/man1
-	${MKDIR} ${PREFIX}/etc/windowlab
-	${INSTALL_DATA} ${WRKSRC}/windowlab.menurc ${PREFIX}/etc/windowlab/menurc
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} windowlab ${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} windowlab.1x ${MANPREFIX}/man/man1)
+	@${MKDIR} ${ETCDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} windowlab.menurc ${ETCDIR}/menurc)
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+.endfor
 .endif
 
 .include <bsd.port.mk>

Modified: head/x11-wm/windowlab/distinfo
==============================================================================
--- head/x11-wm/windowlab/distinfo	Wed Apr  3 06:12:53 2013	(r315692)
+++ head/x11-wm/windowlab/distinfo	Wed Apr  3 06:21:41 2013	(r315693)
@@ -1,2 +1,2 @@
-SHA256 (windowlab-1.40.tar) = 1c9cca5d997cfdcec093e98b7f1996da2d806fbbe4472bdcca568863f3e75d93
-SIZE (windowlab-1.40.tar) = 174080
+SHA256 (repacked/windowlab-1.40.tar) = 8d6831a4b848badf82d1f34af6e45dc814d30ee75173b52f1717254d3097a4bb
+SIZE (repacked/windowlab-1.40.tar) = 174080
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-04-03 07:21:51 UTC
State Changed
From-To: open->closed

Committed. Thanks!