chrisz 2dd0fda6b6 Update OCaml to 4.09
reviewed ports wise and help with @pkgpath, ok by sthen@
reviewed and help with bytecode-only plists, minor nits and ok by jca@
tested on sparc 64 by @jca
tested on aarch64 by Kurt Miller
tested on amd64 by me

Thanks for reviews and testing!
2019-09-26 09:46:09 +00:00

51 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2019/09/26 09:46:10 chrisz Exp $
COMMENT = OCaml interface to GTK+3
CATEGORIES = x11 devel
GH_ACCOUNT = garrigue
GH_PROJECT = lablgtk
GH_TAGNAME = 3.0.beta6
REVISION = 1
PKGNAME = lablgtk3-${GH_TAGNAME}
# LGPL
PERMIT_PACKAGE = Yes
WANTLIB += atk-1.0 c cairo cairo-gobject fontconfig freetype gdk-3
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0 gtk-3 gtksourceview-3.0
WANTLIB += intl m pango-1.0 pangocairo-1.0 pthread z
LIB_DEPENDS = x11/gtk+3 \
devel/gettext,-runtime \
x11/gtksourceview3 \
x11/gnome/librsvg \
x11/gnome/libgnomecanvas
RUN_DEPENDS = graphics/ocaml-cairo
BUILD_DEPENDS = ${RUN_DEPENDS} \
devel/dune
USE_GMAKE = Yes
MODULES = lang/ocaml
CFLAGS += -fPIC
ALL_TARGET = lablgtk3 lablgtk3-sourceview3
NO_TEST = Yes
do-build:
cd ${WRKSRC} && dune build -j ${MAKE_JOBS} -p lablgtk3,lablgtk3-sourceview3
do-install:
cd ${WRKSRC} && dune install -j ${MAKE_JOBS} lablgtk3 lablgtk3-sourceview3
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/ocaml/lablgtk3
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lablgtk3
${INSTALL_DATA} ${WRKDIST}/README.md ${PREFIX}/share/doc/lablgtk3
.include <bsd.port.mk>