mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
beb1c1fe19
Ports using USES=lua:module or lua:flavors will be flavored. A range of supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ) for ports not supporting all lua versions. USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of flavored lua ports, in a similar way as PHP or Python flavors. PR: 245038 Submitted by: andrew tao11 riddles org uk Reviewed by: mat, kevans, russ haley gmail com Approved by: mat (portmgr) Differential Revision: https://reviews.freebsd.org/D16494
69 lines
2.1 KiB
Makefile
69 lines
2.1 KiB
Makefile
# Created by: Nikos Ntarmos <ntarmos@ceid.upatras.gr>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= awesome
|
|
PORTVERSION= 4.3
|
|
PORTREVISION= 1
|
|
DISTVERSIONPREFIX= v
|
|
PORTEPOCH= 1
|
|
CATEGORIES= x11-wm
|
|
|
|
MAINTAINER= dbaio@FreeBSD.org
|
|
COMMENT= Highly configurable, next generation framework window manager
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= convert:graphics/ImageMagick6 \
|
|
${LUA_REFMODLIBDIR}/lgi/corelgilua${LUA_VER_STR}.so:devel/lua-lgi@${LUA_FLAVOR}
|
|
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/lgi/corelgilua${LUA_VER_STR}.so:devel/lua-lgi@${LUA_FLAVOR} \
|
|
bash:shells/bash
|
|
LIB_DEPENDS= libcairo.so:graphics/cairo \
|
|
libstartup-notification-1.so:x11/startup-notification \
|
|
libxdg-basedir.so:x11/libxdg-basedir \
|
|
libxcb-cursor.so:x11/xcb-util-cursor \
|
|
libxcb-util.so:x11/xcb-util \
|
|
libxcb-keysyms.so:x11/xcb-util-keysyms \
|
|
libxcb-icccm.so:x11/xcb-util-wm \
|
|
libxcb-xrm.so:x11/xcb-util-xrm \
|
|
libxkbcommon.so:x11/libxkbcommon
|
|
|
|
CONFLICTS_INSTALL= awesome3-[0-9]*
|
|
|
|
USES= cmake compiler:c11 gettext gnome iconv pkgconfig lua \
|
|
shebangfix xorg
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= awesomewm
|
|
SHEBANG_FILES= utils/awesome-client
|
|
CMAKE_ARGS= -DSYSCONFDIR=${PREFIX}/etc \
|
|
-DAWESOME_MAN_PATH=${MANPREFIX}/man \
|
|
-DGENERATE_DOC=OFF \
|
|
-DLUA_INCLUDE_DIR=${LUA_INCDIR}
|
|
USE_GNOME= glib20 pango gdkpixbuf2
|
|
USE_XORG= pixman x11 xau xcb xdmcp xext xft xinerama xrandr xrender \
|
|
xorgproto
|
|
|
|
OPTIONS_DEFINE= DBUS DOCS MANPAGES
|
|
OPTIONS_DEFAULT=DBUS MANPAGES
|
|
OPTIONS_SUB= yes
|
|
|
|
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
|
|
DBUS_CMAKE_OFF= -DWITH_DBUS:BOOL=OFF
|
|
|
|
MANPAGES_BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor
|
|
MANPAGES_CMAKE_OFF= -DGENERATE_MANPAGES:BOOL=OFF
|
|
|
|
.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
|
|
|
|
post-patch:
|
|
# Ref https://github.com/awesomeWM/awesome/issues/1377
|
|
@${REINPLACE_CMD} -e "/COMMAND lua/ s,lua,${LUA_CMD}," \
|
|
${WRKSRC}/awesomeConfig.cmake
|
|
|
|
.include <bsd.port.post.mk>
|