[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / wm / ctwm

File: [cvs.NetBSD.org] / pkgsrc / wm / ctwm / Makefile (download)

Revision 1.39, Mon Nov 4 21:50:15 2019 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD
Changes since 1.38: +5 -5 lines

wm: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.

# $NetBSD: Makefile,v 1.39 2019/11/04 21:50:15 rillig Exp $
#

DISTNAME=	ctwm-4.0.3
CATEGORIES=	x11 wm
MASTER_SITES=	http://ctwm.org/dist/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	rhialto@NetBSD.org
HOMEPAGE=	http://ctwm.org/
COMMENT=	Window manager with support for multiple virtual screens and EWMH
LICENSE=	mit

USE_CMAKE=	YES

.include "../../mk/bsd.prefs.mk"

# We need an m4 that understands the -s option.
.if !empty(TOOLS_PLATFORM.m4)
.  if !empty(:!${ECHO} yes | ${TOOLS_PLATFORM.m4} -s 2>/dev/null||${ECHO}!)
TOOLS_PLATFORM.gm4?=	${TOOLS_PLATFORM.m4}
.  endif
.endif
USE_TOOLS+=		gm4:run
AUTO_MKDIRS=		yes

CFLAGS.SunOS+=		-D__EXTENSIONS__

# If M4_CMD is not set, it is autodetected as ${WRKDIR}/.tools/bin/m4
CMAKE_ARGS+=		-DM4_CMD=${TOOLS_PATH.gm4}
CMAKE_ARG_PATH=		${WRKSRC}

CONFIGURE_DIRS=		build
BUILD_DIRS=		build

pre-configure:
	${MKDIR} ${WRKSRC}/build

pre-install:
.for f in system.ctwmrc
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/examples/ctwm/
.endfor
.for f in example.ctwmrc levitte.ctwmrc peterc.ctwmrc
	${INSTALL_DATA} ${WRKSRC}/examples/${f} ${DESTDIR}${PREFIX}/share/examples/ctwm/
.endfor
	${INSTALL_DATA} ${FILESDIR}/ctwm.desktop \
	    ${DESTDIR}${PREFIX}/share/xsessions/ctwm.desktop

# The build optionally uses these, if found:
#BUILD_DEPENDS+=	asciidoc-[0-9]*:../../textproc/asciidoc
#BUILD_DEPENDS+=	xmlto-[0-9]*:../../textproc/xmlto
#BUILD_DEPENDS+=	doxygen-[0-9]*:../../devel/doxygen
#BUILD_DEPENDS+=	dblatex-[0-9]*:../../textproc/dblatex

# but for consistent builds, we disable them entirely.
CMAKE_ARGS+=		-DASCIIDOCTOR=
CMAKE_ARGS+=		-DASCIIDOC=
CMAKE_ARGS+=		-DA2X=
CMAKE_ARGS+=		-DXMLTO=
CMAKE_ARGS+=		-DDBLATEX=

.include "../../mk/jpeg.buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"