openbsd-ports/x11/lablgtk2/Makefile
2022-03-11 20:15:18 +00:00

60 lines
1.7 KiB
Makefile

COMMENT = OCaml interface to GTK+2
V = 2.18.11
DISTNAME = lablgtk2-$V
PKGNAME = lablgtk2-$V
CATEGORIES = x11 devel
REVISION = 1
HOMEPAGE = http://lablgtk.forge.ocamlcore.org/
GH_ACCOUNT = garrigue
GH_PROJECT = lablgtk
GH_TAGNAME = $V
# LGPL
PERMIT_PACKAGE = Yes
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender art_lgpl_2 atk-1.0 cairo fontconfig
WANTLIB += freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glade-2.0
WANTLIB += glib-2.0 gnomecanvas-2 gobject-2.0 gtk-x11-2.0 gtksourceview-2.0
WANTLIB += harfbuzz intl m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += rsvg-2 xml2 z
BUILD_DEPENDS = sysutils/findlib
LIB_DEPENDS = x11/gtk+2 \
devel/gettext,-runtime \
devel/libglade2 \
x11/gtksourceview \
x11/gnome/libgnomecanvas \
x11/gnome/librsvg
FAKE_FLAGS = BINDIR=${WRKINST}${PREFIX}/bin \
INSTALLDIR=${WRKINST}${PREFIX}/lib/ocaml/lablgtk2 \
DLLDIR=${WRKINST}${PREFIX}/lib/ocaml/stublibs
USE_GMAKE = Yes
MODULES = lang/ocaml
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = USE_CC=1 ${MODOCAML_NATIVE:S/Yes/USE_DOTOPT=1/:S/No//} \
--without-gl --without-panel \
--without-gnomeui --without-gtksourceview \
--without-gtkspell --without-quartz
ALL_TARGET = all ${MODOCAML_NATIVE:S/Yes/opt/:S/No//}
NO_TEST = Yes
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/ocaml/lablgtk2
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lablgtk2
${INSTALL_DATA} ${WRKDIST}/README ${PREFIX}/share/doc/lablgtk2
${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml/site-lib/lablgtk2
${INSTALL_DATA} ${WRKSRC}/META ${PREFIX}/lib/ocaml/site-lib/lablgtk2
chmod 0555 ${PREFIX}/bin/*
rm -f ${PREFIX}/lib/ocaml/stublibs/*.so.owner
.include <bsd.port.mk>