46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2015/03/06 01:19:30 sevan Exp $
|
|
#
|
|
|
|
DISTNAME= ocaml-text-0.6
|
|
PKGREVISION= 4
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/937/
|
|
|
|
MAINTAINER= jaapb@kerguelen.org
|
|
HOMEPAGE= http://ocaml-text.forge.ocamlcore.org/
|
|
COMMENT= OCaml Unicode library
|
|
LICENSE= modified-bsd
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --prefix ${PREFIX} --destdir ${DESTDIR}
|
|
|
|
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
|
|
|
|
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,'
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PLIST_VARS= opt
|
|
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
|
|
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
|
|
PLIST.opt= yes
|
|
.endif
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ocaml setup.ml -build
|
|
|
|
pre-install:
|
|
${MKDIR} ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ocaml setup.ml -install
|
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|