summaryrefslogtreecommitdiff
path: root/wm/ion-devel/Makefile
blob: f9f5a149ee4b2b2b212e6dec8d77558570a6d9d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $NetBSD: Makefile,v 1.2 2004/01/24 15:18:32 grant Exp $
#

DISTNAME=	ion-devel-20031211
PKGNAME=	${DISTNAME:S/-devel//}
CATEGORIES=	wm x11
MASTER_SITES=	http://modeemi.fi/~tuomov/dl/

MAINTAINER=	cube@NetBSD.org
HOMEPAGE=	http://iki.fi/~tuomov/ion/
COMMENT=	Keyboard friendly tiling window manager

BUILDLINK_DEPENDS.ltdl=	libtool-base>=1.4.20010614nb19
BUILDLINK_DEPENDS.lua=	lua>=5.0.1

USE_BUILDLINK2=	YES
USE_PKGINSTALL=	YES
USE_X11=	YES
USE_GNU_TOOLS+=	make

PKG_SYSCONFSUBDIR=	ion
EGDIR=			${PREFIX}/share/examples/ion
EGFILES=		floatws.lua ion-bindings.lua ion-menus.lua	\
			ion.lua ionws.lua kludges.lua			\
			look-clean.lua look-cleanios.lua		\
			look-cleanviolet.lua look-dusky.lua		\
			look-greyviolet.lua look-ios.lua		\
			look-simpleblue.lua look-wheat2.lua menu.lua	\
			query.lua draw.lua pwm.lua
.for f in ${EGFILES}
CONF_FILES+=		${EGDIR}/$f ${PKG_SYSCONFDIR}/$f
.endfor
.undef f

ION_INCLUDE_DIR=	${PREFIX}/include/ion

post-patch:
	${SED} -e s,@@PREFIX@@,${PREFIX}, -e s,@@X11BASE@@,${X11BASE},	\
	    -e s,@@LUADIR@@,${BUILDLINK_PREFIX.lua},			\
	    -e s,@@LIBTOOL@@,${BUILDLINK_PREFIX.ltdl}/bin/libtool,	\
	    ${WRKSRC}/system.mk > ${WRKSRC}/system.mk.tmp
	${MV} ${WRKSRC}/system.mk.tmp ${WRKSRC}/system.mk

post-install:
	${INSTALL_DATA_DIR} ${ION_INCLUDE_DIR}
	${INSTALL_DATA_DIR} ${ION_INCLUDE_DIR}/ioncore
	${INSTALL_DATA_DIR} ${ION_INCLUDE_DIR}/libtu
	${INSTALL_DATA_DIR} ${ION_INCLUDE_DIR}/luaextl
	${INSTALL_DATA} ${WRKSRC}/config.h ${ION_INCLUDE_DIR}
	${INSTALL_DATA} ${WRKSRC}/version.h ${ION_INCLUDE_DIR}
	${INSTALL_DATA} ${WRKSRC}/mkexports.lua ${ION_INCLUDE_DIR}
	${INSTALL_DATA} ${WRKSRC}/rules.mk ${ION_INCLUDE_DIR}
	${INSTALL_DATA} ${WRKSRC}/system.mk ${ION_INCLUDE_DIR}
	${INSTALL_DATA} ${WRKSRC}/system-inc.mk ${ION_INCLUDE_DIR}
	${INSTALL_DATA} ${WRKSRC}/ioncore/*.h ${ION_INCLUDE_DIR}/ioncore
	${INSTALL_DATA} ${WRKSRC}/libtu/include/libtu/*.h ${ION_INCLUDE_DIR}/libtu
	${INSTALL_DATA} ${WRKSRC}/luaextl/luaextl.h ${ION_INCLUDE_DIR}/luaextl/

.include "../../lang/lua/buildlink2.mk"
.include "../../devel/libtool/buildlink2.mk"

.include "../../mk/bsd.pkg.mk"