summaryrefslogtreecommitdiff
path: root/databases/java-db3/Makefile
blob: dddfce17bccba126e7ae0cd9684db0686b08075b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.8 2002/12/26 20:52:10 jlam Exp $

DISTNAME=	db-3.3.11
PKGNAME=	java-db3-3.11.2
CATEGORIES=	databases
MASTER_SITES=	http://www.sleepycat.com/update/3.3.11/

MAINTAINER=	jlam@netbsd.org
HOMEPAGE=	http://www.sleepycat.com/
COMMENT=	Java interface to Sleepycat Software's Berkeley DB version 3

PATCH_SITES=		${MASTER_SITES}
PATCHFILES=		patch.3.3.11.1 patch.3.3.11.2
PATCH_DIST_ARGS=	-d ${WRKSRC}/.. --forward --quiet

DISTINFO_FILE?=		${.CURDIR}/../db3/distinfo
PATCHDIR?=		${.CURDIR}/../db3/patches

JAVAC=			${PKG_JAVA_HOME}/bin/javac
JAR=			${PKG_JAVA_HOME}/bin/jar
JAVACABS=		${JAVAC}

USE_BUILDLINK2=		yes
USE_LIBTOOL=		yes
LIBTOOL_OVERRIDE=	${WRKSRC}/libtool
GNU_CONFIGURE=		yes
CONFIGURE_SCRIPT=	../dist/configure

CONFIGURE_ARGS+=	--program-transform-name=s,db_,db3_,
CONFIGURE_ARGS+=	--includedir=${PREFIX}/include/db3
CONFIGURE_ARGS+=	--enable-shared
CONFIGURE_ARGS+=	--enable-java
CONFIGURE_ENV+=		JAVAC="${JAVAC}"
CONFIGURE_ENV+=		JAVACABS="${JAVACABS}"
CONFIGURE_ENV+=		JAR="${JAR}"

CPPFLAGS+=		${BUILDLINK_CPPFLAGS.${PKG_JVM}}

ALL_TARGET=		libdb3_java.la java
INSTALL_TARGET=		install_java

WRKSRC=			${WRKDIR}/${DISTNAME}/build_unix

.include "../../databases/db3/buildlink2.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"