1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00
freebsd-ports/x11-wm/awesome2/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

77 lines
2.2 KiB
Makefile

# Created by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
# $FreeBSD$
PORTNAME= awesome2
PORTVERSION= 2.3.6
PORTREVISION= 5
CATEGORIES= x11-wm
MASTER_SITES= http://awesome.naquadah.org/download/
DISTNAME= awesome-${PORTVERSION}
MAINTAINER= ntarmos@cs.uoi.gr
COMMENT= A tiling window manager initially based on a dwm code rewriting
BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \
xmlto:${PORTSDIR}/textproc/xmlto
LIB_DEPENDS= confuse.0:${PORTSDIR}/devel/libconfuse \
cairo.2:${PORTSDIR}/graphics/cairo \
libfreetype.so:${PORTSDIR}/print/freetype2
USES= iconv pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
USE_EFL= imlib2
USE_GNOME= pango
USE_PYTHON_BUILD= yes
USE_XORG= x11 xft xext xinerama xt xrandr xproto
LDFLAGS+= -lX11 -lXext ${ICONV_LIB}
MAN1= awesome2.1 \
awesome2-client.1 \
awesome2-menu.1 \
awesome2-message.1
MAN5= awesome2rc.5
PORTDOCS= AUTHORS LICENSE README STYLE UPGRADE
PORTEXAMPLES= awesomerc
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's, "$$(DESTDIR)$$(docdir)";,;,g' \
-e 's,\([[:space:]]\)install-docDATA ,\1,g' \
-e 's,awesome_,awesome2_,g' \
-e 's,awesomerc\.5,awesome2rc\.5,g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s,PACKAGE='awesome',PACKAGE='awesome2',g" \
${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,awesomerc,awesome2rc,g" \
${WRKSRC}/common/configopts.c
. for man in ${MAN1} ${MAN5}
@${MV} ${WRKSRC}/${man:S%awesome2%awesome%}.txt ${WRKSRC}/${man}.txt
@${REINPLACE_CMD} -e 's,awesome,awesome2,g' \
-e 's,\~/\.awesome2,~/.awesome,g' \
${WRKSRC}/${man}.txt
. endfor
post-configure:
@${REINPLACE_CMD} -E '/^awesome2_(message_)?LDADD/s/$$/ ${ICONV_LIB}/g; \
/^doc_DATA/s/=.*$$/=/g' \
${WRKSRC}/Makefile
post-install:
. if !defined(NOPORTDOCS)
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
. for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
. endfor
. endif
. if !defined(NOPORTEXAMPLES)
@${ECHO_MSG} "installing example config file to ${EXAMPLESDIR}"
@${MKDIR} ${EXAMPLESDIR}
. for example in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${example} ${EXAMPLESDIR}
. endfor
. endif
.include <bsd.port.mk>