freebsd-ports/x11-wm/pawm/Makefile
Tobias C. Berner 5e373eaa92 Make ninja opt-out in cmake.mk
Using ninja instead of make (1) can lead to significant speed ups while building.
Therefore switch from having the ninja generator opt-in to having it opt-out.

Previously cmake-ports that wanted to use ninja could set
    CMAKE_NINJA=yes
now, ports that do not work with ninja can set
    cmake:<existing args>,noninja
Note, that needing this should be an exception and most often points to a broken
cmake of the port.

The ports using cmake were modified
* removed USES=gmake, if ninja is used
* removed MAKE_ARGS, if ninja is used
* added the cmake-argument noninja if necessary

PR:		219629
PR:		213331
Exp-run by:	antoine
Reviewed by:	rakuco
Differential Revision:	https://reviews.freebsd.org/D10748
2017-06-25 21:07:58 +00:00

37 lines
878 B
Makefile

# Created by: trevor
# $FreeBSD$
PORTNAME= pawm
PORTVERSION= 2.3.0
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://www.pleyades.net/pawm/files/
MAINTAINER= ports@FreeBSD.org
COMMENT= The Puto Amo Window Manager
LICENSE= GPLv2 # only
LICENSE_FILE= ${WRKSRC}/GPL
USE_XORG= x11 xft xrandr xrender xpm
USES= cmake pkgconfig tar:bzip2
CMAKE_ARGS= -DCMAKE_CONFIG_PREFIX:STRING="${PREFIX}/etc" \
-DX11_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
LDFLAGS+= -L${LOCALBASE}/lib -lXext -lXrender
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
'/"\/etc"/s|^|#| ; \
/"-O2"/s|^|#| ; \
/LINK_DIRECTORIES/s|\.|| ; \
/INSTALL/s| /etc| etc|' ${WRKSRC}/CMakeLists.txt
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for ii in AUTHORS Changelog.old INSTALL README TODO
${INSTALL_DATA} ${WRKSRC}/${ii} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>