openbsd-ports/x11/openbox/Makefile

60 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.53 2010/05/02 09:10:53 benoit Exp $
COMMENT = small, fast & usable window manager
V = 3.4.11.1
DISTNAME = openbox-${V}
SHARED_LIBS += obparser 9.1 # .21.7
SHARED_LIBS += obrender 9.1 # .21.7
CATEGORIES = x11
HOMEPAGE = http://openbox.org/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
2008-04-16 03:41:35 -04:00
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
2007-07-29 09:02:32 -04:00
WANTLIB = ICE SM X11 Xext Xft Xinerama Xrandr Xrender c \
2007-07-29 09:02:32 -04:00
fontconfig freetype m z glib-2.0 gmodule-2.0 \
gobject-2.0 Xau Xcursor Xdmcp Xfixes expat pcre \
pthread-stubs xcb execinfo xcb-atom xcb-aux xcb-event
2007-07-29 09:02:32 -04:00
MASTER_SITES = ${HOMEPAGE}dist/openbox/
MODULES = devel/gettext \
lang/python
RUN_DEPENDS = ::devel/py-xdg \
::devel/desktop-file-utils
LIB_DEPENDS += pango-1.0,pangoxft-1.0,pangoft2-1.0::devel/pango \
2007-07-29 09:02:32 -04:00
xml2.>=6::textproc/libxml \
startup-notification-1.>=1::devel/startup-notification
MAKE_FLAGS = LIBINTL="-L${LOCALBASE}/lib -lintl -liconv"
FAKE_FLAGS = sysconfdir="${PREFIX}/share/examples/openbox"
SUBST_VARS = V
2007-07-29 09:02:32 -04:00
USE_X11 = Yes
USE_GMAKE = Yes
USE_LIBTOOL = Yes
MODPY_RUNDEP = No
2008-04-16 03:41:35 -04:00
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = ${CONFIGURE_SHARED} \
--docdir=${PREFIX}/share/examples/openbox
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
2007-07-29 09:02:32 -04:00
pre-configure:
@chmod +x ${WRKSRC}/install-sh
2008-04-16 03:41:35 -04:00
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g' \
${WRKSRC}/data/autostart.sh.in
@perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},' \
${WRKSRC}/tools/xdg-autostart/xdg-autostart
.include <bsd.port.mk>