freebsd-ports/databases/linux-oracle-instantclient-sqlplus/Makefile
Kurt Jaeger 7031d14847 databases/linux-oracle-instantclient-*: fix download link, take maintainer
- The download link given in the IGNORE message was out-dated.
- ldconfig was not invoked so the shared libraries were not found
- taking maintainer
2014-11-23 16:55:31 +00:00

79 lines
2 KiB
Makefile

# Created by: nork@FreeBSD.org
# $FreeBSD$
PORTNAME= instantclient
PORTVERSION= ${ORACLEVERSION}.${DISTDATE}
PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= #http://www.oracle.com/technology/software/tech/oci/instantclient/
PKGNAMEPREFIX= linux-oracle-
PKGNAMESUFFIX= -sqlplus
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${LINUXARCH}-${ORACLEVERSION}-${DISTDATE}
DIST_SUBDIR= oracle
MAINTAINER= pi@FreeBSD.org
COMMENT= Oracle 10 32 Bit Linux InstantClient SQLPlus for RDBMS 8.1.2+
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
DISTINFO_FILE= ${MASTERDIR}/distinfo.i386
RESTRICTED= Packaging prohibited by Oracle license
# base
RUN_DEPENDS+= linux-oracle-instantclient-basic>0:${PORTSDIR}/databases/linux-oracle-instantclient-basic
USES= zip
USE_LINUX= c6
USE_LINUX_PREFIX= yes
ORACLEVERSION= 10.2.0.3
BINS_LIST= sqlplus
LIBS_LIST= glogin.sql \
libsqlplus.so \
libsqlplusic.so
WRKSRC= ${WRKDIR}/instantclient_10_2
INSTBINSDIR= ${STAGEDIR}${PREFIX}/usr/bin
INSTLIBSDIR= ${STAGEDIR}${PREFIX}/usr/lib/oracle/${ORACLEVERSION}/client/lib
#USE_LDCONFIG= ${PREFIX}/usr/lib/oracle/${ORACLEVERSION}/client/lib
USE_LDCONFIG= yes
PLIST_SUB= ORACLEVERSION=${ORACLEVERSION}
.include <bsd.port.pre.mk>
#LINUXXVAL= x86-64
#.if ${ARCH} == "i386"
LINUXARCH= linux32
LINUXXVAL= x86
DISTDATE= 20061115
#.elif ${ARCH} == "amd64"
#LINUXARCH= linux-x86-64
#DISTDATE= 20070103
#.endif
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE=\
Due to Oracle license restrictions, you must fetch the source\
distribution manually from\
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html\
, follow the link for Linux ${LINUXXVAL} and ${DISTFILES}\
and place them in ${DISTDIR}/${DIST_SUBDIR}/
.endif
do-install:
${MKDIR} -m 0755 ${INSTBINSDIR}
${MKDIR} -m 0755 ${INSTLIBSDIR}
.for i in ${BINS_LIST}
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${INSTBINSDIR}/${i}
.endfor
.for i in ${LIBS_LIST}
${INSTALL_DATA} ${WRKSRC}/${i} ${INSTLIBSDIR}/${i}
.endfor
.include <bsd.port.post.mk>