[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / lablgtk1

File: [cvs.NetBSD.org] / pkgsrc / x11 / lablgtk1 / Makefile (download)

Revision 1.7, Mon Oct 29 05:06:32 2012 UTC (6 years, 6 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.6: +1 -3 lines

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.7 2012/10/29 05:06:32 asau Exp $

DISTNAME=	lablgtk-1.2.7
PKGNAME=	lablgtk1-1.2.7
PKGREVISION=	7
CATEGORIES=	x11
MASTER_SITES=	http://forge.ocamlcore.org/frs/download.php/571/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
COMMENT=	GTK+ bindings for ocaml

MAKE_JOBS_SAFE=	no

USE_TOOLS+=	gmake

BUILDLINK_DEPMETHOD.ocaml=	full
BUILDLINK_API_DEPENDS.ocaml+=	ocaml>=3.0.5

CONFLICTS+=	lablgtk-1.*

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

# currently ocamlopt is only available on i386, sparc and powerpc.
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
    (${MACHINE_ARCH} == "sparc") || ${MACHINE_ARCH} == "x86_64"
USE_DOTOPT=	YES
.else
CAMLOPT=	ocamlc
MAKE_ENV+=	CAMLOPT=${CAMLOPT:Q}
PLIST_SRC=	${PKGDIR}/PLIST.noopt
.endif

.if ${OPSYS} == "Darwin"
PLIST_SRC+=	${PKGDIR}/PLIST.stub
.endif

do-configure:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
		configure USE_DOTOPT=${USE_DOTOPT} USE_CC=1 CC=${CC}

.if defined(USE_DOTOPT)
post-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
		opt
.endif

INSTALLATION_DIRS+=	bin

.include "../../x11/gtk/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"