openbsd-ports/x11/gnome/alacarte/Makefile

42 lines
990 B
Makefile

# $OpenBSD: Makefile,v 1.6 2008/04/17 08:46:48 ajacoutot Exp $
COMMENT= easy GNOME menu editing tool
GNOME_PROJECT= alacarte
GNOME_VERSION= 0.11.4
PKGNAME= ${DISTNAME}p0
CATEGORIES= x11
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/python \
x11/gnome
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ::devel/gettext \
:python-expat-*:textproc/py-xml \
:fam-*:sysutils/fam \
:py-gtk2->=2.8.6:x11/py-gtk2 \
:gnome-menus-*:x11/gnome/menus \
:py-gnome-*:x11/gnome/py-gnome \
::textproc/scrollkeeper
USE_X11= Yes
DESKTOP_FILES= Yes
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
PYTHON="${MODPY_BIN}"
pre-configure:
perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g; \
s,!!SYSCONFDIR!!,${SYSCONFDIR},g' ${WRKSRC}/Alacarte/util.py
.include <bsd.port.mk>
CONFIGURE_ARGS+= --sysconfdir="${SYSCONFDIR}/gnome"