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
|
2009-08-23 16:20:37 +00:00
|
|
|
DISTVERSION= 3.c
|
2009-05-09 16:20:28 +00:00
|
|
|
CATEGORIES= x11-wm
|
|
|
|
MASTER_SITES= http://i3.zekjur.net/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 \
|
2009-06-30 16:51:24 +00:00
|
|
|
xcb-event.1:${PORTSDIR}/x11/xcb-util \
|
|
|
|
ev.3:${PORTSDIR}/devel/libev
|
2009-05-09 16:20:28 +00:00
|
|
|
|
|
|
|
USE_XORG= x11
|
2009-10-02 16:47:32 +00:00
|
|
|
USE_XLIB= yes
|
2009-05-09 16:20:28 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2009-06-30 16:51:24 +00:00
|
|
|
PLIST_FILES= bin/i3 \
|
2009-08-31 16:10:53 +00:00
|
|
|
bin/i3-msg \
|
2009-06-30 16:51:24 +00:00
|
|
|
etc/i3/config.sample
|
|
|
|
PLIST_DIRS= etc/i3
|
|
|
|
|
|
|
|
MAN1= i3.1
|
|
|
|
|
2009-08-23 16:20:37 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 700000
|
|
|
|
BROKEN= Does not compile on FreeBSD 6.X
|
|
|
|
.endif
|
|
|
|
|
2009-06-30 16:51:24 +00:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${CP} i3.config config.sample
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/src/config.c
|
2009-07-22 19:20:27 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' ${WRKSRC}/config.sample
|
|
|
|
@${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-05-09 16:20:28 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
2009-08-31 16:10:53 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}-msg/${PORTNAME}-msg ${PREFIX}/bin/
|
2009-06-30 16:51:24 +00:00
|
|
|
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/config.sample ${PREFIX}/etc/${PORTNAME}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${MAN1} ${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} "======================================================================================"
|
2009-05-09 16:20:28 +00:00
|
|
|
|
2009-08-23 16:20:37 +00:00
|
|
|
.include <bsd.port.post.mk>
|