| @@ -1,40 +1,40 @@ | | | @@ -1,40 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.30 2024/02/14 15:44:19 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.31 2024/02/14 15:45:09 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= ${GITHUB_PROJECT}-0.6.4 | | 3 | DISTNAME= ${GITHUB_PROJECT}-0.6.4 |
4 | PKGREVISION= 9 | | 4 | PKGREVISION= 9 |
5 | CATEGORIES= graphics | | 5 | CATEGORIES= graphics |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=Chris00/} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=Chris00/} |
7 | GITHUB_PROJECT= ocaml-cairo | | 7 | GITHUB_PROJECT= ocaml-cairo |
8 | | | 8 | |
9 | MAINTAINER= jaapb@NetBSD.org | | 9 | MAINTAINER= jaapb@NetBSD.org |
10 | HOMEPAGE= https://github.com/Chris00/ocaml-cairo/ | | 10 | HOMEPAGE= https://github.com/Chris00/ocaml-cairo/ |
11 | COMMENT= Bindings for OCaml to the cairo library | | 11 | COMMENT= Bindings for OCaml to the cairo library |
12 | LICENSE= gnu-lgpl-v3 | | 12 | LICENSE= gnu-lgpl-v3 |
13 | | | 13 | |
14 | OCAML_USE_DUNE= yes | | 14 | OCAML_USE_DUNE= yes |
15 | OCAML_FINDLIB_DIRS= cairo2 | | 15 | OCAML_FINDLIB_DIRS= cairo2 |
16 | OPAM_INSTALL_FILES= ${OCAML_FINDLIB_DIRS} | | 16 | OPAM_INSTALL_FILES= ${OCAML_FINDLIB_DIRS} |
17 | DUNE_BUILD_PACKAGES= ${OCAML_FINDLIB_DIRS} | | 17 | DUNE_BUILD_PACKAGES= ${OCAML_FINDLIB_DIRS} |
18 | | | 18 | |
19 | USE_TOOLS+= pkg-config | | 19 | USE_TOOLS+= pkg-config |
20 | # ocaml-cairo doesn't find pkg-config | | 20 | # ocaml-cairo doesn't find pkg-config |
21 | # https://github.com/Chris00/ocaml-cairo/issues/35 | | 21 | # https://github.com/Chris00/ocaml-cairo/issues/35 |
22 | # seems related but has not solution | | 22 | # seems related but has not solution |
23 | # override detection: | | 23 | # override detection: |
24 | CAIRO_CFLAGS!= pkg-config --cflags cairo | | 24 | CAIRO_CFLAGS= pkg-config --cflags cairo |
25 | CAIRO_LIBS!= pkg-config --libs cairo | | 25 | CAIRO_LIBS= pkg-config --libs cairo |
26 | MAKE_ENV+= CAIRO_CFLAGS=${CAIRO_CFLAGS:Q} | | 26 | MAKE_ENV+= CAIRO_CFLAGS=${CAIRO_CFLAGS:sh:Q} |
27 | MAKE_ENV+= CAIRO_LIBS=${CAIRO_LIBS:Q} | | 27 | MAKE_ENV+= CAIRO_LIBS=${CAIRO_LIBS:sh:Q} |
28 | # but this isn't enough, because it leads to: | | 28 | # but this isn't enough, because it leads to: |
29 | # Error: Rule failed to generate the following targets: | | 29 | # Error: Rule failed to generate the following targets: |
30 | # - src/cairo_ocaml.h | | 30 | # - src/cairo_ocaml.h |
31 | # so create this file manually and remove the existing logic | | 31 | # so create this file manually and remove the existing logic |
32 | # to avoid an error during configure (see patch-src_dune) | | 32 | # to avoid an error during configure (see patch-src_dune) |
33 | # | | 33 | # |
34 | # TODO: enable freetype2 | | 34 | # TODO: enable freetype2 |
35 | pre-configure: | | 35 | pre-configure: |
36 | cp ${WRKSRC}/src/cairo_ocaml.h.p ${WRKSRC}/src/cairo_ocaml.h | | 36 | cp ${WRKSRC}/src/cairo_ocaml.h.p ${WRKSRC}/src/cairo_ocaml.h |
37 | | | 37 | |
38 | # (See options.mk.) Upstream says that lablgtk is required, but it is | | 38 | # (See options.mk.) Upstream says that lablgtk is required, but it is |
39 | # not. | | 39 | # not. |
40 | # https://github.com/Chris00/ocaml-cairo/issues/29 | | 40 | # https://github.com/Chris00/ocaml-cairo/issues/29 |