mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
0a0bcfbc54
Submitted by: marino Approved by: portmgr (bapt, implicit)
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
# Created by: Dennis Herrmann <dhn@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= i3
|
|
DISTVERSION= 4.6
|
|
PORTREVISION= 5
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= http://i3wm.org/downloads/
|
|
|
|
MAINTAINER= bapt@FreeBSD.org
|
|
COMMENT= Improved dynamic tiling window manager
|
|
|
|
LICENSE= BSD
|
|
|
|
LIB_DEPENDS= libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification \
|
|
libxcb-util.so:${PORTSDIR}/x11/xcb-util \
|
|
libxcb-keysyms.so:${PORTSDIR}/x11/xcb-util-keysyms \
|
|
libxcb-icccm.so:${PORTSDIR}/x11/xcb-util-wm \
|
|
libev.so:${PORTSDIR}/devel/libev \
|
|
libyajl.so:${PORTSDIR}/devel/yajl \
|
|
libcairo.so:${PORTSDIR}/graphics/cairo \
|
|
libpangocairo-1.0.so:${PORTSDIR}/x11-toolkits/pango \
|
|
libpcre.so:${PORTSDIR}/devel/pcre
|
|
RUN_DEPENDS= p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run \
|
|
p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
|
|
p5-AnyEvent-I3>=0:${PORTSDIR}/devel/p5-AnyEvent-I3
|
|
|
|
USE_XORG= x11 xcb xcursor
|
|
USES= pkgconfig iconv gmake perl5
|
|
USE_BZIP2= yes
|
|
USE_PERL5= run
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/src/config.c
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/i3.config
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/i3.config
|
|
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}/|g' ${WRKSRC}/man/Makefile
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/man/i3.1
|
|
@${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' \
|
|
-e 's|-liconv|${ICONV_LIB}|' \
|
|
-e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/common.mk
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/man/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/
|
|
|
|
.include <bsd.port.mk>
|