2011-11-01 07:00:33 +01:00
|
|
|
# $NetBSD: Makefile,v 1.34 2011/11/01 06:01:26 sbd Exp $
|
2003-08-31 03:24:36 +02:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
VERSION= 4.0.1
|
|
|
|
PKGNAME= camlimages-${VERSION}
|
2011-11-01 07:00:33 +01:00
|
|
|
PKGREVISION= 1
|
2003-08-31 03:24:36 +02:00
|
|
|
CATEGORIES= graphics
|
2011-08-07 22:36:20 +02:00
|
|
|
MASTER_SITES= https://bitbucket.org/camlspotter/camlimages/get/
|
|
|
|
DISTNAME= v${VERSION}
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
2011-05-24 14:26:00 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2011-08-07 22:36:20 +02:00
|
|
|
HOMEPAGE= http://gallium.inria.fr/camlimages/
|
2003-08-31 03:24:36 +02:00
|
|
|
COMMENT= Image processing library for Objective Caml
|
2011-08-07 22:36:20 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2003-08-31 03:24:36 +02:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
BUILD_DEPENDS+= omake>=0.9.8.6.0rc1:../../devel/omake
|
|
|
|
BUILD_DEPENDS+= ocaml-findlib>=1.2.6:../../devel/ocaml-findlib
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2010-03-17 15:17:02 +01:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
2005-02-04 23:07:24 +01:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
FETCH_USING= curl
|
2003-08-31 03:24:36 +02:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
WRKSRC= ${WRKDIR}/camlspotter-camlimages-v${VERSION}
|
2005-02-04 23:07:24 +01:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
SUBST_CLASSES+= omf
|
|
|
|
SUBST_STAGE.omf= post-patch
|
|
|
|
SUBST_FILES.omf= OMakefile
|
|
|
|
SUBST_SED.omf= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.omf+= -e 's,@X11BASE@,${X11BASE},g'
|
|
|
|
SUBST_SED.omf+= -e 's%@LDFLAGS@%${LDFLAGS}%g'
|
|
|
|
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
|
2005-02-04 23:07:24 +01:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
INSTALLATION_DIRS= lib/ocaml/site-lib
|
2003-08-31 03:24:36 +02:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${PREFIX}/bin/omake --configure --verbose
|
2003-08-31 03:24:36 +02:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && OCAMLFIND_DESTDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib \
|
|
|
|
OCAMLFIND_LDCONF=/dev/null ${PREFIX}/bin/omake install
|
2005-02-04 23:07:24 +01:00
|
|
|
|
2011-08-07 22:36:20 +02:00
|
|
|
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.11.0
|
2004-05-03 23:50:41 +02:00
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
2011-08-07 22:36:20 +02:00
|
|
|
.include "../../devel/nspr/buildlink3.mk"
|
|
|
|
.include "../../x11/ocaml-graphics/buildlink3.mk"
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2004-05-03 23:50:41 +02:00
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2011-08-07 22:36:20 +02:00
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
2011-03-09 17:26:47 +01:00
|
|
|
.include "../../mk/giflib.buildlink3.mk"
|
2011-08-07 22:36:20 +02:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2004-05-03 23:50:41 +02:00
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
2011-08-07 22:36:20 +02:00
|
|
|
.include "../../print/ghostscript/buildlink3.mk"
|
2009-09-06 23:10:32 +02:00
|
|
|
.include "../../x11/lablgtk/buildlink3.mk"
|
2011-08-07 22:36:20 +02:00
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
2003-08-31 03:24:36 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|