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

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

Revision 1.29, Mon Nov 21 18:20:45 2022 UTC (2 months, 2 weeks ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.28: +3 -2 lines

*: Re-apply SunOS linker argument removals.

These are currently duplicated in mk/platform/SunOS.mk but the generic
removals will be removed soon in favour of per-package removals, due to
flags getting leaked into installed files.

# $NetBSD: Makefile,v 1.29 2022/11/21 18:20:45 jperkin Exp $

DISTNAME=	notion-3-2017050501
PKGNAME=	${DISTNAME:S/3-/3./}
PKGREVISION=	1
CATEGORIES=	wm
MASTER_SITES=	${MASTER_SITE_GITHUB:=raboof/}
GITHUB_TAG=	${DISTNAME:S/notion-//}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://notion.sourceforge.net/
COMMENT=	Tiling window manager based on ion3
LICENSE=	ion-license AND gnu-lgpl-v2.1

# notion is based on ion3
CONFLICTS=	ion3-[0-9]*

WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//}
USE_LANGUAGES=	c99
USE_TOOLS+=	gmake msgfmt pax pkg-config

LUA_VERSIONS_ACCEPTED=	52 51

MAKE_FLAGS+=	PREFIX=${PREFIX}
MAKE_FLAGS+=	EXAMPLEDIR=${PREFIX}/share/examples/notion
MAKE_FLAGS+=	MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_FLAGS+=	X11_PREFIX=${BUILDLINK_PREFIX.libX11}
MAKE_FLAGS+=	X11_LIBS="${COMPILER_RPATH_FLAG}${X11_PREFIX}/lib -L${X11_PREFIX}/lib -lX11 -lXext"
MAKE_FLAGS+=	LUA_INTERPRETER=${LUA_INTERPRETER}
MAKE_FLAGS+=	LUA_COMPILER=${LUA_COMPILER}
MAKE_FLAGS+=	LUA_VERSION=${_LUA_DOT_VERSION}

EGDIR=		${PREFIX}/share/examples/notion
EGFILES=	cfg_defaults.lua
EGFILES+=	cfg_dock.lua
EGFILES+=	cfg_kludges.lua
EGFILES+=	cfg_layouts.lua
EGFILES+=	cfg_menu.lua
EGFILES+=	cfg_notion.lua
EGFILES+=	cfg_notioncore.lua
EGFILES+=	cfg_query.lua
EGFILES+=	cfg_sp.lua
EGFILES+=	cfg_statusbar.lua
EGFILES+=	cfg_tiling.lua
EGFILES+=	cfg_xrandr.lua
EGFILES+=	look.lua
EGFILES+=	look_brownsteel.lua
EGFILES+=	look_clean.lua
EGFILES+=	look_cleanios.lua
EGFILES+=	look_cleanviolet.lua
EGFILES+=	look_dusky.lua
EGFILES+=	look_greenlight.lua
EGFILES+=	look_greyviolet.lua
EGFILES+=	look_ios.lua
EGFILES+=	look_newviolet.lua
EGFILES+=	look_simpleblue.lua
EGFILES+=	lookcommon_clean.lua
EGFILES+=	lookcommon_emboss.lua

PKG_SYSCONFSUBDIR=	notion
INSTALLATION_DIRS=	${EGDIR}

.for f in ${EGFILES}
CONF_FILES+=	${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor

# Abuse buildlink to add required libraries.
BUILDLINK_TRANSFORM.SunOS+=	opt:-Wl,--as-needed:-lsocket
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--export-dynamic
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-no-whole-archive
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-whole-archive

post-install:
	cd ${WRKSRC} && pax -rw contrib ${DESTDIR}${EGDIR}

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"