summaryrefslogtreecommitdiff
path: root/databases/jdbc-oracle8i/Makefile
blob: ec1eeced43ef455d8f160f2df81d907dfdc63d4c (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
47
48
49
50
51
52
53
54
# Created by: Patrick Gardella <patrick@FreeBSD.org>
# $FreeBSD$

PORTNAME=	oracle8i
PORTVERSION=	8.1.7.1
PORTREVISION=	2
CATEGORIES=	databases java
MASTER_SITES=	# none
PKGNAMEPREFIX=	jdbc-
DISTFILES=	${CLASSES}${EXTRACT_SUFX} ${PATCH_FILE}${EXTRACT_SUFX}	\
		${NLS_CHARSET}${EXTRACT_SUFX}
DIST_SUBDIR=	oracle
EXTRACT_ONLY=	${CLASSES}${EXTRACT_SUFX} ${PATCH_FILE}${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The JDBC drivers for Oracle 8i

PATCH_DEPENDS=	${LOCALBASE}/bin/zip:${PORTSDIR}/archivers/zip

RESTRICTED=	Must be downloaded direct from Oracle via www interface

USES=		zip
SE_JAVA=	yes
JAVA_VERSION=	1.6+

NO_BUILD=	yes
NO_WRKSUBDIR=	yes

JDKVER=		12
CLASSES=	classes${JDKVER}
PATCH_FILE=	1725012_${JDKVER}
NLS_CHARSET=	nls_charset${JDKVER}

PLIST_FILES=	%%JAVAJARDIR%%/${CLASSES}${EXTRACT_SUFX}	\
		%%JAVAJARDIR%%/${NLS_CHARSET}${EXTRACT_SUFX}

.include <bsd.port.pre.mk>

.if !exists(${CLASSES:S|^|${_DISTDIR}/|}${EXTRACT_SUFX})	\
 && !exists(${PATCH_FILE:S|^|${_DISTDIR}/|}${EXTRACT_SUFX})	\
 && !exists(${NLS_CHARSET:S|^|${_DISTDIR}/|}${EXTRACT_SUFX})
IGNORE=	Please manually download ${DISTFILES} from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html Oracle8i 8.1.7 JDBC Drivers for use with JDK 1.2 \(JDBC classes + Oracle8i ${PORTVERSION} Patch + nls_charset12.zip\). Put ${DISTFILES} into the directory ${_DISTDIR} and run make again.
.endif

pre-patch:
	@${MV} ${WRKDIR}/v8TTIoac.class ${WRKDIR}/oracle/jdbc/ttc7/v8TTIoac.class
	@(cd ${WRKDIR}; ${LOCALBASE}/bin/zip -rq ${WRKDIR}/${CLASSES}${EXTRACT_SUFX}	\
		javax oracle)

do-install:
	${INSTALL_DATA} ${WRKDIR}/${CLASSES}${EXTRACT_SUFX} ${STAGEDIR}${JAVAJARDIR}
	${INSTALL_DATA} ${_DISTDIR}/${NLS_CHARSET}${EXTRACT_SUFX} ${STAGEDIR}${JAVAJARDIR}

.include <bsd.port.post.mk>