2009-05-09 16:20:28 +00:00
|
|
|
# New ports collection makefile for: i3
|
|
|
|
# Date created: 2009-04-19
|
|
|
|
# Whom: Dennis Herrmann <dhn@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= i3
|
2012-05-26 15:25:31 +00:00
|
|
|
DISTVERSION= 4.2
|
2009-05-09 16:20:28 +00:00
|
|
|
CATEGORIES= x11-wm
|
2011-07-24 08:44:29 +00:00
|
|
|
MASTER_SITES= http://i3wm.org/downloads/ \
|
2009-05-09 16:20:28 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= dhn
|
|
|
|
|
|
|
|
MAINTAINER= dhn@FreeBSD.org
|
|
|
|
COMMENT= An improved dynamic tiling window manager
|
|
|
|
|
2011-11-19 08:38:07 +00:00
|
|
|
BUILD_DEPENDS= flex>=2.5.35:${PORTSDIR}/textproc/flex \
|
|
|
|
pcre>=0:${PORTSDIR}/devel/pcre
|
2009-05-09 16:20:28 +00:00
|
|
|
LIB_DEPENDS= xcb.2:${PORTSDIR}/x11/libxcb \
|
2011-11-19 08:38:07 +00:00
|
|
|
startup-notification-1.0:${PORTSDIR}/x11/startup-notification \
|
2012-01-15 12:48:11 +00:00
|
|
|
xcb-util.0:${PORTSDIR}/x11/xcb-util \
|
|
|
|
xcb-keysyms.1:${PORTSDIR}/x11/xcb-util-keysyms \
|
|
|
|
xcb-icccm.4:${PORTSDIR}/x11/xcb-util-wm \
|
2011-09-19 21:06:11 +00:00
|
|
|
ev.4:${PORTSDIR}/devel/libev \
|
2011-11-27 10:27:20 +00:00
|
|
|
yajl.2:${PORTSDIR}/devel/yajl
|
2012-06-29 16:47:42 +00:00
|
|
|
RUN_DEPENDS= p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run \
|
2012-05-26 15:25:31 +00:00
|
|
|
p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
|
|
|
|
p5-AnyEvent-I3>=0:${PORTSDIR}/devel/p5-AnyEvent-I3
|
2009-05-09 16:20:28 +00:00
|
|
|
|
2012-05-26 15:25:31 +00:00
|
|
|
USE_PERL5= yes
|
2011-11-28 11:23:48 +00:00
|
|
|
USE_XORG= x11 xcursor
|
2010-12-01 08:35:10 +00:00
|
|
|
USE_BISON= build
|
2009-05-09 16:20:28 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_ICONV= yes
|
2009-12-05 21:44:30 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2009-05-09 16:20:28 +00:00
|
|
|
|
2009-06-30 16:51:24 +00:00
|
|
|
PLIST_FILES= bin/i3 \
|
2011-11-19 08:38:07 +00:00
|
|
|
bin/i3-config-wizard \
|
2009-11-10 18:20:46 +00:00
|
|
|
bin/i3-input \
|
2011-11-19 08:38:07 +00:00
|
|
|
bin/i3-msg \
|
|
|
|
bin/i3-nagbar \
|
|
|
|
bin/i3bar \
|
2011-11-28 11:23:48 +00:00
|
|
|
bin/i3-migrate-config-to-v4 \
|
|
|
|
bin/i3-sensible-editor \
|
|
|
|
bin/i3-sensible-pager \
|
|
|
|
bin/i3-sensible-terminal \
|
|
|
|
bin/i3-wsbar \
|
2009-11-10 18:20:46 +00:00
|
|
|
etc/i3/config.sample \
|
2012-05-26 15:25:31 +00:00
|
|
|
etc/i3/config.keycodes \
|
2009-11-10 18:20:46 +00:00
|
|
|
etc/i3/welcome
|
2011-11-19 08:38:07 +00:00
|
|
|
|
2009-06-30 16:51:24 +00:00
|
|
|
PLIST_DIRS= etc/i3
|
|
|
|
|
2012-05-26 15:25:31 +00:00
|
|
|
MANUALS= i3-config-wizard.1 i3-input.1 \
|
|
|
|
i3-migrate-config-to-v4.1 i3-msg.1 \
|
|
|
|
i3-nagbar.1 i3-wsbar.1 \
|
|
|
|
i3.1 i3-sensible-terminal.1
|
2011-11-19 08:38:07 +00:00
|
|
|
|
|
|
|
MAN1= ${MANUALS}
|
2009-06-30 16:51:24 +00:00
|
|
|
|
2009-08-23 16:20:37 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-06-30 16:51:24 +00:00
|
|
|
post-extract:
|
2009-11-10 18:20:46 +00:00
|
|
|
@cd ${WRKSRC} && ${CP} i3.welcome welcome
|
2012-05-26 15:25:31 +00:00
|
|
|
@cd ${WRKSRC} && ${CP} i3.config config.sample
|
|
|
|
@cd ${WRKSRC} && ${CP} i3.config.keycodes config.keycodes
|
2009-06-30 16:51:24 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/src/config.c
|
2009-11-10 18:20:46 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/welcome
|
2012-05-26 15:25:31 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/config.sample
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/config.keycodes
|
2009-07-22 19:20:27 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}/|g' ${WRKSRC}/man/Makefile
|
2009-10-02 16:47:32 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/common.mk
|
2009-08-23 16:20:37 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/man/i3.1
|
2009-11-10 18:20:46 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/man/i3-msg.1
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/man/i3-input.1
|
|
|
|
@${REINPLACE_CMD} -e 's|.SILENT||g' ${WRKSRC}/common.mk
|
|
|
|
@${REINPLACE_CMD} -e 's|-Iinclude|-Iinclude -Isrc|g' ${WRKSRC}/common.mk
|
2011-11-19 08:38:07 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|flex|${LOCALBASE}/bin/flex|g' ${WRKSRC}/Makefile
|
2009-05-09 16:20:28 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
2011-11-19 08:38:07 +00:00
|
|
|
.for i in i3-config-wizard i3-input i3-msg i3-nagbar i3bar
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/$i/$i ${PREFIX}/bin/
|
2011-11-28 11:23:48 +00:00
|
|
|
.endfor
|
|
|
|
.for i in i3-sensible-editor i3-sensible-pager i3-sensible-terminal i3-wsbar i3-migrate-config-to-v4
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/$i ${PREFIX}/bin/
|
2011-11-19 08:38:07 +00:00
|
|
|
.endfor
|
2009-06-30 16:51:24 +00:00
|
|
|
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
2011-11-19 08:38:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/welcome ${PREFIX}/etc/${PORTNAME}/welcome
|
2012-05-26 15:25:31 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/config.sample ${PREFIX}/etc/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config.keycodes ${PREFIX}/etc/${PORTNAME}
|
2011-11-19 08:38:07 +00:00
|
|
|
.for i in ${MANUALS}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${i} ${MANPREFIX}/man/man1/
|
|
|
|
.endfor
|
2009-06-30 16:51:24 +00:00
|
|
|
|
|
|
|
@${ECHO_MSG} "======================================================================================"
|
|
|
|
@${ECHO_MSG} ""
|
2012-05-26 15:25:31 +00:00
|
|
|
@${ECHO_MSG} " ${PORTNAME} needs a config file! You can find an example in ${PREFIX}/etc/${PORTNAME}"
|
|
|
|
@${ECHO_MSG} " Please rename it to ${PREFIX}/etc/${PORTNAME}/config"
|
2009-06-30 16:51:24 +00:00
|
|
|
@${ECHO_MSG} " For more information read the manpage :)"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "======================================================================================"
|
2009-05-09 16:20:28 +00:00
|
|
|
|
2009-08-23 16:20:37 +00:00
|
|
|
.include <bsd.port.post.mk>
|