openbsd-ports/x11/gnome/menus/Makefile
ajacoutot 27e509243a - make it possible to choose between different menu layouts (kde3, gnome)
using symlinks instead of being stuck with whatever was installed first

ok jasper@
2008-02-14 18:02:10 +00:00

44 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.19 2008/02/14 18:02:10 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= implementation of the FreeDesktop Desktop Menu Spec
GNOME_PROJECT= gnome-menus
GNOME_VERSION= 2.20.3
SHARED_LIBS += gnome-menu 3.11 # .3.19
PKGNAME= ${DISTNAME}p2
# GPL/LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m rpcsvc stdc++ c pthread pcre
MODULES= devel/gettext \
lang/python \
x11/gnome
DESKTOP_FILES= Yes
LIB_DEPENDS= glib-2.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
perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g' \
${WRKSRC}/layout/applications.menu
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-menus
mv ${WRKINST}${SYSCONFDIR}/* ${PREFIX}/share/examples/gnome-menus
.include <bsd.port.mk>