2007-10-27 08:34:55 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2007/10/27 12:34:55 merdely Exp $
|
2007-09-26 15:13:35 -04:00
|
|
|
|
|
|
|
COMMENT= fast, small, dynamic and awesome window manager
|
|
|
|
|
2007-10-27 08:34:55 -04:00
|
|
|
V=1.3
|
2007-09-26 15:13:35 -04:00
|
|
|
DISTNAME= awesome-${V}
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
|
|
|
LIB_DEPENDS= config::devel/libconfig
|
|
|
|
|
2007-10-27 08:34:55 -04:00
|
|
|
CFLAGS+= -I. -I${X11BASE}/include -I${X11BASE}/include/freetype2 \
|
|
|
|
-I${LOCALBASE}/include -DVERSION=\\\"$V\\\" \
|
2007-09-26 15:13:35 -04:00
|
|
|
$$(pkg-config --cflags libconfig)
|
2007-10-27 08:34:55 -04:00
|
|
|
LDFLAGS+= -L${X11BASE}/lib -L${LOCALBASE}/lib \
|
|
|
|
-lX11 -lXext -lXrandr -lXinerama -lXft \
|
2007-09-26 15:13:35 -04:00
|
|
|
$$(pkg-config --libs libconfig)
|
|
|
|
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>
|