mirror of
https://git.freebsd.org/ports.git
synced 2025-05-12 15:21:51 -04:00
44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
PORTNAME= cairo
|
|
PORTVERSION= 0.6.5
|
|
CATEGORIES= graphics
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
|
COMMENT= Objective Caml binding for the Cairo library
|
|
WWW= https://github.com/Chris00/ocaml-cairo
|
|
|
|
LICENSE= LGPL3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
|
|
|
BUILD_DEPENDS= dune:devel/ocaml-dune
|
|
LIB_DEPENDS+= libfreetype.so:print/freetype2 \
|
|
libfontconfig.so:x11-fonts/fontconfig
|
|
|
|
USES= gnome ocaml pkgconfig
|
|
USE_GNOME= cairo
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Chris00
|
|
GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
DOCSDIR= ${OCAML_DOCSDIR}/cairo2
|
|
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc
|
|
USE_BINUTILS= yes
|
|
.endif
|
|
|
|
do-build:
|
|
cd ${BUILD_WRKSRC} && dune build --verbose -j ${MAKE_JOBS_NUMBER} -p cairo2
|
|
|
|
do-install:
|
|
cd ${INSTALL_WRKSRC} && dune install --destdir=${STAGEDIR} \
|
|
--libdir=${PREFIX}/${OCAML_SITELIBDIR} cairo2
|
|
|
|
post-install-EXAMPLES-on:
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|