summaryrefslogtreecommitdiff
path: root/graphics/camlimages/Makefile
blob: e1a6bb7fb35d968fc3de7ed0bd01ac2b1fe51223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.32 2011/05/24 12:26:00 is Exp $

DISTNAME=		camlimages-2.2.0
PKGREVISION=		12
CATEGORIES=		graphics
MASTER_SITES=		ftp://ftp.inria.fr/INRIA/Projects/cristal/caml-light/bazar-ocaml/
EXTRACT_SUFX=		.tgz

PKG_DESTDIR_SUPPORT=	user-destdir

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://cristal.inria.fr/camlimages/
COMMENT=		Image processing library for Objective Caml

MAKE_JOBS_SAFE=		no

BUILDLINK_API_DEPENDS.ocaml+=	ocaml>=3.0.6

WRKSRC=			${WRKDIR}/camlimages-2.2
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake

.include "../../mk/bsd.prefs.mk"

PLIST_SRC=		${PKGDIR}/PLIST

CONFIGURE_ARGS+=	--with-lablgtk=${PREFIX}/lib/ocaml/lablgtk

.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
    (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
BUILD_TARGET+=	all
PLIST_SRC+=	${PKGDIR}/PLIST.opt
.endif

PLIST_VARS+=	dll
.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || \
    ${OPSYS} == "Darwin" || ${OPSYS} == "NetBSD"
PLIST.dll=	yes
.endif

.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/giflib.buildlink3.mk"
.include "../../graphics/gdk-pixbuf/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../x11/lablgtk1/buildlink3.mk"
.include "../../x11/lablgtk/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/ocaml-graphics/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"