openbsd-ports/x11/gnome/menus/Makefile

40 lines
980 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.12 2007/10/08 08:22:43 steven Exp $
SHARED_ONLY= Yes
COMMENT= implementation of the FreeDesktop Desktop Menu Spec
GNOME_PROJECT= gnome-menus
GNOME_VERSION= 2.18.2
PKGNAME= ${DISTNAME}p0
SHARED_LIBS += gnome-menu 3.9 # .3.9
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m rpcsvc stdc++ c pthread
MODULES= devel/gettext \
lang/python \
x11/gnome
LIB_DEPENDS= glib-2.0.>=0::devel/glib2 \
fam.>=0::sysutils/fam
RUN_DEPENDS= :py-gtk2->=2.10.3:x11/py-gtk2
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lm" \
PYTHON="${MODPY_BIN}"
pre-configure:
perl -pi -e 's,!!MODPY_BIN!!,${MODPY_BIN},' \
${WRKSRC}/simple-editor/gmenu-simple-editor.in
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-menus
mv ${WRKINST}${SYSCONFDIR}/* ${PREFIX}/share/examples/gnome-menus
.include <bsd.port.mk>