2016-07-02 12:11:09 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2016/07/02 10:11:09 jaapb Exp $
|
2013-06-15 22:53:03 +02:00
|
|
|
|
2016-07-02 12:11:09 +02:00
|
|
|
VERSION= 1.5
|
|
|
|
GITHUB_PROJECT= ocaml-csv
|
|
|
|
DISTNAME= ${GITHUB_PROJECT}-${VERSION}
|
2013-06-15 22:53:03 +02:00
|
|
|
CATEGORIES= textproc
|
2016-07-02 12:11:09 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=Chris00/}
|
2013-06-15 22:53:03 +02:00
|
|
|
|
|
|
|
MAINTAINER= jaapb@NetBSD.org
|
|
|
|
HOMEPAGE= http://csv.forge.ocamlcore.org/
|
|
|
|
COMMENT= CSV library for OCaml
|
|
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_LANGUAGES= c
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}"
|
|
|
|
|
2016-07-02 12:11:09 +02:00
|
|
|
OCAML_USE_OASIS= yes
|
2013-06-15 22:53:03 +02:00
|
|
|
|
2016-07-02 12:11:09 +02:00
|
|
|
#SUBST_CLASSES+= destdir
|
|
|
|
#SUBST_STAGE.destdir= post-configure
|
|
|
|
#SUBST_MESSAGE.destdir= Changing install location to DESTDIR
|
|
|
|
#SUBST_FILES.destdir= setup.ml
|
|
|
|
#SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,'
|
2013-06-15 22:53:03 +02:00
|
|
|
|
2016-07-02 12:11:09 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && ${MAKE} setup.ml
|
2013-06-15 22:53:03 +02:00
|
|
|
|
2016-07-02 12:11:09 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2013-06-15 22:53:03 +02:00
|
|
|
|
2016-07-02 12:11:09 +02:00
|
|
|
.include "../../mk/ocaml.mk"
|
|
|
|
.include "../../devel/ocaml-oasis/buildlink3.mk"
|
2013-06-15 22:53:03 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|