File:  [cvs.NetBSD.org] / pkgsrc / graphics / camlimages / Makefile
Revision 1.127: download - view: text, annotated - select for diffs
Fri May 22 10:56:12 2020 UTC (4 years, 6 months ago) by adam
Branches: MAIN
CVS tags: HEAD
revbump after updating security/nettle

# $NetBSD: Makefile,v 1.127 2020/05/22 10:56:12 adam Exp $

VERSION=		4.0.1
PKGNAME=		camlimages-${VERSION}
PKGREVISION=		86
CATEGORIES=		graphics
MASTER_SITES=		https://bitbucket.org/camlspotter/camlimages/get/
DISTNAME=		v${VERSION}
DIST_SUBDIR=		${PKGNAME_NOREV}a

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://gallium.inria.fr/camlimages/
COMMENT=		Image processing library for Objective Caml
LICENSE=		gnu-gpl-v2

BUILD_DEPENDS+=		omake>=0.9.8.6.0rc1:../../devel/omake
BUILD_DEPENDS+=		ocaml-findlib>=1.2.6:../../devel/ocaml-findlib

MAKE_JOBS_SAFE=		no

WRKSRC=			${WRKDIR}/camlspotter-camlimages-c803efa9d5d3

SUBST_CLASSES+=		omf
SUBST_STAGE.omf=	pre-configure
SUBST_FILES.omf=	OMakefile
SUBST_VARS.omf=		PREFIX
SUBST_VARS.omf+=	X11BASE
SUBST_VARS.omf+=	LDFLAGS
SUBST_SED.omf+=		-e 's,@OCAMLFIND_DESTDIR@,${DESTDIR}${PREFIX}/lib/ocaml/site-lib,g'
SUBST_SED.omf+=		-e 's,@OCAMLFIND_LDCONF@,/dev/null,g'
SUBST_MESSAGE.omf=	Fixing vars in OMakefile

INSTALLATION_DIRS=	lib/ocaml/site-lib

do-build:
	cd ${WRKSRC} && ${PREFIX}/bin/omake --configure --verbose

do-install:
	cd ${WRKSRC} && OCAMLFIND_DESTDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib \
		OCAMLFIND_LDCONF=/dev/null ${PREFIX}/bin/omake install

BUILDLINK_API_DEPENDS.ocaml+=	ocaml>=3.11.0
.include "../../lang/ocaml/buildlink3.mk"
.include "../../devel/nspr/buildlink3.mk"
.include "../../x11/ocaml-graphics/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../graphics/giflib/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../print/ghostscript/buildlink3.mk"
.include "../../x11/ocaml-lablgtk/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>