openbsd-ports/x11/openbox/Makefile
sthen 74e2a94168 run openbox-xdg-autostart through 2to3, allowing it to move the dep from
python 2 to python 3. prompted by J. Scott Heppler. ok benoit@
2022-11-08 09:26:04 +00:00

61 lines
1.7 KiB
Makefile

COMMENT = small, fast & usable window manager
V = 3.6.1
REVISION = 11
DISTNAME = openbox-${V}
SHARED_LIBS += obrender 12.0 # 32.0
SHARED_LIBS += obt 1.1 # 2.2
CATEGORIES = x11
HOMEPAGE = http://openbox.org/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB += ICE Imlib2 SM X11 X11-xcb Xau Xcursor Xext Xfixes Xft
WANTLIB += Xinerama Xrandr Xrender c cairo cairo-gobject expat ffi
WANTLIB += fontconfig freetype fribidi gdk_pixbuf-2.0 gio-2.0 glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 graphite2 harfbuzz iconv
WANTLIB += intl lzma m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += pangoxft-1.0 pcre2-8 pixman-1 png pthread rsvg-2
WANTLIB += startup-notification-1 xcb xcb-render xcb-shm xcb-util xml2 z
WANTLIB += ${COMPILER_LIBCXX} Xdmcp jpeg
MASTER_SITES = ${HOMEPAGE}dist/openbox/
MODULES = lang/python
RUN_DEPENDS = devel/py-xdg${MODPY_FLAVOR} \
devel/desktop-file-utils
LIB_DEPENDS += devel/gettext,-runtime \
devel/pango \
devel/startup-notification \
graphics/imlib2 \
textproc/libxml \
x11/gnome/librsvg
FAKE_FLAGS = sysconfdir="${PREFIX}/share/examples/openbox" \
rcdir="${PREFIX}/share/examples/openbox"
API_V = ${V:R}
SUBST_VARS = API_V
USE_GMAKE = Yes
MODPY_RUNDEP = No
MODPY_ADJ_FILES =data/autostart/openbox-xdg-autostart
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --docdir=${PREFIX}/share/examples/openbox
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
pre-configure:
${SUBST_CMD} ${WRKSRC}/data/autostart/autostart.in
2to3 --fix=all --no-diffs --nobackups --verbose --write \
${WRKSRC}/data/autostart/openbox-xdg-autostart
.include <bsd.port.mk>