head	1.19;
access;
symbols
	pkgsrc-2022Q2:1.18.0.2
	pkgsrc-2022Q2-base:1.18
	pkgsrc-2022Q1:1.17.0.10
	pkgsrc-2022Q1-base:1.17
	pkgsrc-2021Q4:1.17.0.8
	pkgsrc-2021Q4-base:1.17
	pkgsrc-2021Q3:1.17.0.6
	pkgsrc-2021Q3-base:1.17
	pkgsrc-2021Q2:1.17.0.4
	pkgsrc-2021Q2-base:1.17
	pkgsrc-2021Q1:1.17.0.2
	pkgsrc-2021Q1-base:1.17
	pkgsrc-2020Q4:1.16.0.18
	pkgsrc-2020Q4-base:1.16
	pkgsrc-2020Q3:1.16.0.16
	pkgsrc-2020Q3-base:1.16
	pkgsrc-2020Q2:1.16.0.14
	pkgsrc-2020Q2-base:1.16
	pkgsrc-2020Q1:1.16.0.10
	pkgsrc-2020Q1-base:1.16
	pkgsrc-2019Q4:1.16.0.12
	pkgsrc-2019Q4-base:1.16
	pkgsrc-2019Q3:1.16.0.8
	pkgsrc-2019Q3-base:1.16
	pkgsrc-2019Q2:1.16.0.6
	pkgsrc-2019Q2-base:1.16
	pkgsrc-2019Q1:1.16.0.4
	pkgsrc-2019Q1-base:1.16
	pkgsrc-2018Q4:1.16.0.2
	pkgsrc-2018Q4-base:1.16
	pkgsrc-2018Q3:1.15.0.2
	pkgsrc-2018Q3-base:1.15
	pkgsrc-2018Q2:1.14.0.2
	pkgsrc-2018Q2-base:1.14
	pkgsrc-2018Q1:1.13.0.2
	pkgsrc-2018Q1-base:1.13
	pkgsrc-2017Q4:1.11.0.6
	pkgsrc-2017Q4-base:1.11
	pkgsrc-2017Q3:1.11.0.4
	pkgsrc-2017Q3-base:1.11
	pkgsrc-2017Q2:1.9.0.4
	pkgsrc-2017Q2-base:1.9
	pkgsrc-2017Q1:1.9.0.2
	pkgsrc-2017Q1-base:1.9
	pkgsrc-2016Q4:1.8.0.6
	pkgsrc-2016Q4-base:1.8
	pkgsrc-2016Q3:1.8.0.4
	pkgsrc-2016Q3-base:1.8
	pkgsrc-2016Q2:1.8.0.2
	pkgsrc-2016Q2-base:1.8
	pkgsrc-2016Q1:1.6.0.6
	pkgsrc-2016Q1-base:1.6
	pkgsrc-2015Q4:1.6.0.4
	pkgsrc-2015Q4-base:1.6
	pkgsrc-2015Q3:1.6.0.2
	pkgsrc-2015Q3-base:1.6
	pkgsrc-2015Q2:1.5.0.4
	pkgsrc-2015Q2-base:1.5
	pkgsrc-2015Q1:1.5.0.2
	pkgsrc-2015Q1-base:1.5
	pkgsrc-2014Q4:1.4.0.2
	pkgsrc-2014Q4-base:1.4
	pkgsrc-2014Q3:1.3.0.2
	pkgsrc-2014Q3-base:1.3
	pkgsrc-2014Q2:1.2.0.6
	pkgsrc-2014Q2-base:1.2
	pkgsrc-2014Q1:1.2.0.4
	pkgsrc-2014Q1-base:1.2
	pkgsrc-2013Q4:1.2.0.2
	pkgsrc-2013Q4-base:1.2;
locks; strict;
comment	@# @;


1.19
date	2022.06.29.07.54.39;	author wiz;	state dead;
branches;
next	1.18;
commitid	mi8IBwWu4raDmUJD;

1.18
date	2022.05.24.18.51.50;	author jaapb;	state Exp;
branches;
next	1.17;
commitid	tyn8C2gxw4eI9lFD;

1.17
date	2021.03.08.08.12.54;	author jaapb;	state Exp;
branches;
next	1.16;
commitid	ZSVtQ5nGxDdxPtKC;

1.16
date	2018.11.12.16.10.20;	author jaapb;	state Exp;
branches;
next	1.15;
commitid	FZB9fL8bVKwuHFZA;

1.15
date	2018.07.19.15.15.23;	author jaapb;	state Exp;
branches;
next	1.14;
commitid	ZBwJ6cko9yxK7LKA;

1.14
date	2018.04.13.13.55.32;	author jaapb;	state Exp;
branches;
next	1.13;
commitid	A49DCkSjqvvBNhyA;

1.13
date	2018.01.22.11.22.40;	author jaapb;	state Exp;
branches;
next	1.12;
commitid	tajHN8dyE5qyyRnA;

1.12
date	2018.01.10.15.47.30;	author jaapb;	state Exp;
branches;
next	1.11;
commitid	kfubiXqvxTNTolmA;

1.11
date	2017.09.08.09.51.21;	author jaapb;	state Exp;
branches;
next	1.10;
commitid	QlPKma5uQMhrqn6A;

1.10
date	2017.07.30.22.32.15;	author wiz;	state Exp;
branches;
next	1.9;
commitid	gjZWVQWOLKneVi1A;

1.9
date	2016.12.30.11.16.59;	author jaapb;	state Exp;
branches;
next	1.8;
commitid	4UT4oNjI9i6XZZzz;

1.8
date	2016.06.17.10.33.23;	author jaapb;	state Exp;
branches;
next	1.7;
commitid	B01JutCt5Y5F3Oaz;

1.7
date	2016.05.05.11.45.38;	author jaapb;	state Exp;
branches;
next	1.6;
commitid	hgz2yCFtg7paQh5z;

1.6
date	2015.06.30.11.52.57;	author jaapb;	state Exp;
branches;
next	1.5;
commitid	BIwgKflO8AXrQrry;

1.5
date	2015.01.20.16.12.12;	author jaapb;	state Exp;
branches;
next	1.4;
commitid	RjKdI6QWc9gesM6y;

1.4
date	2014.10.09.21.08.51;	author jaapb;	state Exp;
branches;
next	1.3;
commitid	tePJyHcQ5obapzTx;

1.3
date	2014.08.17.12.11.07;	author jaapb;	state Exp;
branches;
next	1.2;
commitid	CmsBO30G7D6C7IMx;

1.2
date	2013.11.05.17.39.15;	author joerg;	state Exp;
branches;
next	1.1;
commitid	uBucA5hhwQo277cx;

1.1
date	2013.11.01.11.40.00;	author jaapb;	state Exp;
branches;
next	;
commitid	vVf6MKYADS9Cfzbx;


desc
@@


1.19
log
@camlp4: remove

camlp4 is an outdated way to build packages with caml and does not work
with pkgsrc ocaml versions for more than a year.

Remove camlp4 and all packages using it.

Ok jaapb@@
@
text
@# $NetBSD: Makefile,v 1.18 2022/05/24 18:51:50 jaapb Exp $

VERSION=	1.6
GITHUB_PROJECT=	optcomp
DISTNAME=	${GITHUB_PROJECT}-${VERSION}
PKGNAME=	ocaml-${DISTNAME}
PKGREVISION=	14
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=diml/}

MAINTAINER=	jaapb@@NetBSD.org
HOMEPAGE=	https://github.com/diml/optcomp/
COMMENT=	OCaml syntax extension for optional compilation
LICENSE=	modified-bsd

SUPERSEDES=	optcomp-[0-9]*

OCAML_USE_OASIS=	yes

pre-configure:
	${RUN} cd ${WRKSRC} && oasis setup

.include "../../lang/ocaml/ocaml.mk"
.include "../../devel/ocaml-oasis/buildlink3.mk"
.include "../../lang/camlp4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.18
log
@Recursive revbump associated with update of ocaml.

Also change of mk/ocaml.mk to lang/ocaml/ocaml.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2021/03/08 08:12:54 jaapb Exp $
@


1.17
log
@Recursive revbump associated with update of lang/ocaml
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2018/11/12 16:10:20 jaapb Exp $
d7 1
a7 1
PKGREVISION=	13
d23 1
a23 1
.include "../../mk/ocaml.mk"
@


1.16
log
@Revbumps associated with update of lang/ocaml.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2018/07/19 15:15:23 jaapb Exp $
d7 1
a7 1
PKGREVISION=	12
@


1.15
log
@Recursive revbump associated with the update of lang/ocaml to 4.07.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2018/04/13 13:55:32 jaapb Exp $
d7 1
a7 1
PKGREVISION=	11
@


1.14
log
@Revbump associated with the upgrade of lang/ocaml

(this is the upgrade from 4.06 to 4.06.1)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2018/01/22 11:22:40 jaapb Exp $
d7 1
a7 1
PKGREVISION=	10
@


1.13
log
@Compilation fixes for devel/ocaml-optcomp.

Includes a patch for OCaml 4.06 (from an upstream pull request) and
a call to oasis to regenerate the setup files (which were not compatible
with 4.06 either).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2018/01/10 15:47:30 jaapb Exp $
d7 1
a7 1
PKGREVISION=	9
@


1.12
log
@Corrected PLIST for devel/ocaml-optcomp
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2017/09/08 09:51:21 jaapb Exp $
d7 1
a7 1
PKGREVISION=	8
d20 3
d24 1
@


1.11
log
@Recursive revbump associated with update of ocaml to 4.05
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2017/07/30 22:32:15 wiz Exp $
d7 1
a7 1
PKGREVISION=	7
@


1.10
log
@Switch github HOMEPAGEs to https.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2016/12/30 11:16:59 jaapb Exp $
d7 1
a7 1
PKGREVISION=	5
@


1.9
log
@Recursive revbump associated with ocaml update to 4.04.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2016/06/17 10:33:23 jaapb Exp $
d12 1
a12 1
HOMEPAGE=	http://github.com/diml/optcomp/
@


1.8
log
@Updated package to work with new mk/ocaml.mk, and straightened out some
of the github variables. No upstream changes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2016/05/05 11:45:38 jaapb Exp $
d7 1
a7 1
PKGREVISION=	4
@


1.7
log
@Recursive revbump associated with ocaml update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2015/06/30 11:52:57 jaapb Exp $
d4 4
a7 3
PKGREVISION=	3
DISTNAME=	${VERSION}
PKGNAME=	ocaml-optcomp-${VERSION}
d9 1
a9 3
MASTER_SITES=	https://github.com/diml/optcomp/archive/
DIST_SUBDIR=	ocaml-optcomp
WRKSRC=	${WRKDIR}/optcomp-${VERSION}
@


1.6
log
@Recursive revbump associated with update of lang/ocaml to 4.02.2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2015/01/20 16:12:12 jaapb Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.5
log
@Revbump associated with ocaml 4.02.1.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2014/10/09 21:08:51 jaapb Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.4
log
@Updated package to newest version, 1.6. Changes: build system tweaks and
a fix for ocaml 4.02.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2014/08/17 12:11:07 jaapb Exp $
d4 1
@


1.3
log
@Revamped package to use ocaml.mk infrastructure.
Package name is now ocaml-optcomp rather than optcomp, in line with most
other OCaml packages. This only affects devel/ocaml-deriving-ocsigen,
which will be updated shortly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2013/11/05 17:39:15 joerg Exp $
d3 3
a5 1
DISTNAME=	optcomp-1.4
d7 3
a9 1
MASTER_SITES=	http://forge.ocamlcore.org/frs/download.php/1011/
d12 1
a12 1
HOMEPAGE=	http://optcomp.forge.ocamlcore.org/
d21 1
@


1.2
log
@Needs ocaml-findlib.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2013/11/01 11:40:00 jaapb Exp $
d12 1
a12 3
HAS_CONFIGURE=	yes
CONFIGURE_ARGS+=	--destdir "${DESTDIR}" --prefix "${PREFIX}"
USE_LANGUAGES=	c
d14 1
a14 5
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,'
d16 1
a16 19
INSTALLATION_DIRS=	lib/ocaml/site-lib/optcomp

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

do-install:
	cd ${WRKSRC} && ocaml setup.ml -install

.include "../../devel/ocaml-findlib/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
@


1.1
log
@Committed devel/optcomp, a cpp-like ocaml syntax extension for optional
compilation.
@
text
@d1 1
a1 1
# $NetBSD$
d39 1
@

