blob: 2a546f4d26fd1e0feca9bfd7e95d2b18310bd34f (
plain) (
blame)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# New ports collection makefile for: i3
# Date created: 2009-04-19
# Whom: Dennis Herrmann <dhn@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= i3
DISTVERSION= 3.e-bf3
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://i3wm.org/downloads/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dhn
MAINTAINER= dhn@FreeBSD.org
COMMENT= An improved dynamic tiling window manager
LIB_DEPENDS= xcb.2:${PORTSDIR}/x11/libxcb \
xcb-event.1:${PORTSDIR}/x11/xcb-util \
ev.4:${PORTSDIR}/devel/libev \
yajl.1:${PORTSDIR}/devel/yajl
USE_XORG= x11
USE_BISON= build
USE_XLIB= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_ICONV= yes
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= bin/i3 \
bin/i3-msg \
bin/i3-input \
etc/i3/config.sample \
etc/i3/welcome
PLIST_DIRS= etc/i3
MAN1= i3.1 \
i3-msg.1 \
i3-input.1
.include <bsd.port.pre.mk>
post-extract:
@cd ${WRKSRC} && ${CP} i3.config config.sample
@cd ${WRKSRC} && ${CP} i3.welcome welcome
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/src/config.c
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/config.sample
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/welcome
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}/|g' ${WRKSRC}/man/Makefile
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/common.mk
@${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' ${WRKSRC}/common.mk
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}-msg/${PORTNAME}-msg ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}-input/${PORTNAME}-input ${PREFIX}/bin/
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
${INSTALL_SCRIPT} ${WRKSRC}/config.sample ${PREFIX}/etc/${PORTNAME}
${INSTALL_SCRIPT} ${WRKSRC}/welcome ${PREFIX}/etc/${PORTNAME}/welcome
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}-msg.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}-input.1 ${MANPREFIX}/man/man1
@${ECHO_MSG} "======================================================================================"
@${ECHO_MSG} ""
@${ECHO_MSG} " ${PORTNAME} need a config file! A example do you found on ${PREFIX}/etc/${PORTNAME}"
@${ECHO_MSG} " Please rename it in ${PREFIX}/etc/${PORTNAME}/config"
@${ECHO_MSG} " For more information read the manpage :)"
@${ECHO_MSG} ""
@${ECHO_MSG} "======================================================================================"
.include <bsd.port.post.mk>
|