diff options
author | miwi <miwi@FreeBSD.org> | 2013-04-03 14:21:41 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-04-03 14:21:41 +0800 |
commit | f0becaea026e73ac8256186539cfd75c9932b58c (patch) | |
tree | 49448a2a69f4c564dc9ff82d1d210feb9b2a4757 /x11-wm | |
parent | 1e3e4e558a1eb83c0dcb98b01f6baccd9ae45bb6 (diff) | |
download | freebsd-ports-graphics-f0becaea026e73ac8256186539cfd75c9932b58c.tar.gz freebsd-ports-graphics-f0becaea026e73ac8256186539cfd75c9932b58c.tar.zst freebsd-ports-graphics-f0becaea026e73ac8256186539cfd75c9932b58c.zip |
- Fix build
- Update MASTER_SITES
- OptionsNG
PR: 177553
Submitted by: Ports Fury
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/windowlab/Makefile | 51 | ||||
-rw-r--r-- | x11-wm/windowlab/distinfo | 4 |
2 files changed, 36 insertions, 19 deletions
diff --git a/x11-wm/windowlab/Makefile b/x11-wm/windowlab/Makefile index e37b3961b57..24ae9b0eeab 100644 --- a/x11-wm/windowlab/Makefile +++ b/x11-wm/windowlab/Makefile @@ -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> diff --git a/x11-wm/windowlab/distinfo b/x11-wm/windowlab/distinfo index c2f830eb3c8..0ff1ca1b1c3 100644 --- a/x11-wm/windowlab/distinfo +++ b/x11-wm/windowlab/distinfo @@ -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 |