blob: ec8e3d6e55b31ebfb541d7954b88e1ead573da83 (
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
|
# Created by: Nikos Ntarmos <ntarmos@ceid.upatras.gr>
# $FreeBSD$
PORTNAME= awesome
PORTVERSION= 3.5.2
PORTEPOCH= 1
CATEGORIES= x11-wm
MASTER_SITES= http://awesome.naquadah.org/download/
MAINTAINER= garga@FreeBSD.org
COMMENT= A highly configurable, next generation framework window manager
LICENSE= GPLv2
BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \
convert:${PORTSDIR}/graphics/ImageMagick \
pango>=1.19.3:${PORTSDIR}/x11-toolkits/pango \
xmlto:${PORTSDIR}/textproc/xmlto \
xcb-util>=0.3.8:${PORTSDIR}/x11/xcb-util \
xproto>=7.0.11:${PORTSDIR}/x11/xproto \
${LUA_MODLIBDIR}/lgi/corelgilua51.so:${PORTSDIR}/devel/lua-lgi \
${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml-450
RUN_DEPENDS= ${LUA_MODLIBDIR}/lgi/corelgilua51.so:${PORTSDIR}/devel/lua-lgi
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
libev.so:${PORTSDIR}/devel/libev \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification \
libxdg-basedir.so:${PORTSDIR}/x11/libxdg-basedir \
libxcb-util.so:${PORTSDIR}/x11/xcb-util \
libxcb-cursor.so:${PORTSDIR}/x11/xcb-util-cursor \
libxcb-keysyms.so:${PORTSDIR}/x11/xcb-util-keysyms \
libxcb-icccm.so:${PORTSDIR}/x11/xcb-util-wm \
libexecinfo.so:${PORTSDIR}/devel/libexecinfo
USE_XZ= yes
USES= cmake iconv pkgconfig
CMAKE_ARGS+= -DSYSCONFDIR=${PREFIX}/etc
USE_EFL= imlib2
USE_GNOME= glib20 pango
USE_LUA= 5.1+
USE_XORG= pixman x11 xau xcb xdmcp xext xft xinerama xrandr xrender \
xproto
LDFLAGS+= ${ICONV_LIB}
PORTDOCS= AUTHORS BUGS LICENSE README
OPTIONS_DEFINE= DBUS DOCS
OPTIONS_DEFAULT=DBUS DOCS
.include <bsd.port.pre.mk>
.if (exists(${LOCALBASE}/libdata/pkgconfig/cairo.pc) && \
!exists(${LOCALBASE}/libdata/pkgconfig/cairo-xcb.pc))
IGNORE= cannot find dependency: The cairo exists but not with XCB support. Please reinstall graphics/cairo with XCB support
.endif
.if ${PORT_OPTIONS:MDBUS}
LIB_DEPENDS += libdbus-1.so:${PORTSDIR}/devel/dbus
CMAKE_ARGS += -DWITH_DBUS=YES
.else
CMAKE_ARGS += -DWITH_DBUS=NO
.endif
.if ${PORT_OPTIONS:MDOCS}
CMAKE_ARGS += -DINSTALL_PORTDOCS=YES -DGENERATE_DOC=YES
.else
CMAKE_ARGS += -DINSTALL_PORTDOCS=NO -DGENERATE_DOC=NO
.endif
post-patch:
@${REINPLACE_CMD} -e "/LUA_EXECUTABLE lua/ s,lua,lua-${LUA_VER}," \
${WRKSRC}/awesomeConfig.cmake
@${REINPLACE_CMD} -e "s,^lua ,${LUA_CMD} ," \
${WRKSRC}/build-utils/lgi-check.sh
.include <bsd.port.post.mk>
|