2007-12-16 16:27:14 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2007/12/16 21:27:14 pyr Exp $
|
2007-09-26 15:13:35 -04:00
|
|
|
|
|
|
|
COMMENT= fast, small, dynamic and awesome window manager
|
|
|
|
|
2007-12-16 16:27:14 -05:00
|
|
|
V=2.0
|
|
|
|
DISTNAME= awesome-$V
|
2007-09-26 15:13:35 -04:00
|
|
|
|
|
|
|
CATEGORIES= x11
|
|
|
|
|
|
|
|
HOMEPAGE= http://awesome.naquadah.org/
|
|
|
|
|
|
|
|
MAINTAINER= Will Maier <willmaier@ml1.net>
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-10-27 08:34:55 -04:00
|
|
|
WANTLIB= X11 Xext Xinerama Xrandr Xft c
|
2007-09-26 15:13:35 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/download/
|
|
|
|
|
2007-12-16 16:27:14 -05:00
|
|
|
LIB_DEPENDS= cairo.>=6::graphics/cairo \
|
|
|
|
confuse::devel/libconfuse
|
|
|
|
BUILD_DEPENDS= ::textproc/asciidoc \
|
|
|
|
::textproc/xmlto
|
2007-09-26 15:13:35 -04:00
|
|
|
|
2007-12-16 16:27:14 -05:00
|
|
|
CFLAGS+= -I. -I${X11BASE}/include \
|
|
|
|
-I${X11BASE}/include/freetype2 \
|
|
|
|
-I${LOCALBASE}/include \
|
|
|
|
$$(pkg-config --cflags libconfuse) \
|
|
|
|
$$(pkg-config --cflags cairo) \
|
|
|
|
-DVERSION=\\\"$V\\\" \
|
|
|
|
-DRELEASE=\\\"Fruit_Fly\\\"
|
|
|
|
|
|
|
|
LDFLAGS+= -L${X11BASE}/lib -L${LOCALBASE}/lib \
|
2007-10-27 08:34:55 -04:00
|
|
|
-lX11 -lXext -lXrandr -lXinerama -lXft \
|
2007-12-16 16:27:14 -05:00
|
|
|
$$(pkg-config --libs libconfuse) \
|
|
|
|
$$(pkg-config --libs cairo)
|
|
|
|
|
2007-09-26 15:13:35 -04:00
|
|
|
MAKE_FLAGS= CC=${CC} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
FAKE_FLAGS= MANPREFIX=${PREFIX}/man \
|
|
|
|
PREFIX=${PREFIX}
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@perl -pi -e 's|Mod4|Mod1|g' ${WRKSRC}/awesomerc
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/awesome/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/awesome/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/awesomerc ${PREFIX}/share/examples/awesome/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/awesome/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|