This was formally shipped with the OCaml compiler distribution, but is now a seperate project. ok jca@, krw@, sthen@
31 lines
620 B
Makefile
31 lines
620 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2019/09/26 09:33:14 chrisz Exp $
|
|
|
|
COMMENT = graphics library providing basic drawing primitives
|
|
CATEGORIES = graphics
|
|
|
|
V = 5.0.0
|
|
DISTNAME = graphics-$V
|
|
PKGNAME = ocaml-graphics-$V
|
|
|
|
# LGPL 2.1 with linking exception
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += X11
|
|
|
|
MASTER_SITES = https://github.com/ocaml/graphics/releases/download/${V}/
|
|
EXTRACT_SUFX = .tbz
|
|
|
|
MODULES = lang/ocaml
|
|
|
|
BUILD_DEPENDS = devel/dune
|
|
|
|
MAKE_ENV = CPATH=${X11BASE}/include \
|
|
LIBRARY_PATH=${X11BASE}/lib
|
|
|
|
ALL_TARGET = default
|
|
|
|
post-install:
|
|
mv ${PREFIX}/doc/graphics ${PREFIX}/share/doc/ocaml-graphics
|
|
|
|
.include <bsd.port.mk>
|