# Created by: Nikos Ntarmos # $FreeBSD: head/x11-wm/awesome2/Makefile 412351 2016-04-01 14:33:55Z mat $ PORTNAME= awesome2 PORTVERSION= 2.3.6 PORTREVISION= 7 CATEGORIES= x11-wm MASTER_SITES= http://awesome.naquadah.org/download/ DISTNAME= awesome-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Tiling window manager initially based on a dwm code rewriting LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= asciidoc:textproc/asciidoc \ xmlto:textproc/xmlto LIB_DEPENDS= libconfuse.so:devel/libconfuse \ libcairo.so:graphics/cairo \ libfreetype.so:print/freetype2 \ libImlib2.so:graphics/imlib2 USES= iconv pkgconfig python:build GNU_CONFIGURE= yes CONFIGURE_ENV= PYTHON=${PYTHON_CMD} USE_GNOME= pango USE_XORG= x11 xft xext xinerama xt xrandr xorgproto LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lXext ${ICONV_LIB} MAN1S= awesome2.1 \ awesome2-client.1 \ awesome2-menu.1 \ awesome2-message.1 MAN5S= awesome2rc.5 PORTDOCS= AUTHORS LICENSE README STYLE UPGRADE PORTEXAMPLES= awesomerc OPTIONS_DEFINE= DOCS EXAMPLES 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 ${MAN1S} ${MAN5S} @${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-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for example in ${PORTEXAMPLES} ${INSTALL_DATA} ${WRKSRC}/${example} ${STAGEDIR}${EXAMPLESDIR} .endfor .include