1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/x11-wm/compton/Makefile
Gerald Pfeifer 15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00

79 lines
1.9 KiB
Makefile

# $FreeBSD$
PORTNAME= compton
PORTVERSION= 20140326
PORTREVISION= 1
CATEGORIES= x11-wm
MAINTAINER= femc7488@gmail.com
COMMENT= Feature-rich compositing window manager for X11
LICENSE= MIT
LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig
RUN_DEPENDS= xprop:${PORTSDIR}/x11/xprop \
xwininfo:${PORTSDIR}/x11/xwininfo
USE_GITHUB= yes
GH_ACCOUNT= chjj
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 360da12
USES= gmake pkgconfig
USE_XORG= xcomposite xdamage xrandr xrender xinerama
MAKE_ARGS= COMPTON_VERSION=git-${PORTVERSION}-${GH_COMMIT} \
XDGDIR=${LOCALBASE}/etc/xdg
ALL_TARGET= ${PORTNAME}
OPTIONS_DEFINE= PCRE DRM OPENGL DBUS DOCS
OPTIONS_DEFAULT= PCRE DRM OPENGL DBUS
PCRE_DESC= Blacklist support (via libpcre)
DRM_DESC= DRM support
DOCS_DESC= Build manpages (requires AsciiDoc/DocBook)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
.else
MAKE_ARGS+= NO_REGEX_PCRE=yes
.endif
.if ${PORT_OPTIONS:MDRM}
LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm
.else
MAKE_ARGS+= NO_VSYNC_DRM=yes
.endif
.if ${PORT_OPTIONS:MOPENGL}
USE_GL= gl
.else
MAKE_ARGS+= NO_VSYNC_OPENGL=yes
.endif
.if ${PORT_OPTIONS:MDBUS}
LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus
.else
MAKE_ARGS+= NO_DBUS=yes
.endif
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS= a2x:${PORTSDIR}/textproc/asciidoc \
xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xml/docbook/4.5:${PORTSDIR}/textproc/docbook-xml \
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
MAKE_ARGS+= DOCDIR=${DOCSDIR} MANDIR=${MANPREFIX}/man/man1
ALL_TARGET+= docs
PLIST_FILES+= man/man1/compton.1.gz man/man1/compton-trans.1.gz
PORTDOCS= README.md cdbus-driver.sh
.endif
post-patch:
# Adjust the location of configuration file
@${REINPLACE_CMD} -e '/config_system_dir/s|/etc|${LOCALBASE}&|' \
${WRKSRC}/src/compton.c
.include <bsd.port.mk>