1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/databases/linux-oracle-instantclient-sqlplus/Makefile
Tijl Coosemans 82a87de90c - Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with
Mk/Uses/linux.mk.
- Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with
  USES+=linux:\1 in all ports.
- Replace USE_LINUX_APPS with USE_LINUX in all ports.
- Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some
  ports.
- When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY
  are defined.
- Remove BRANDELF_DIRS and BRANDELF_FILES handling.  In the very rare cases
  that it is still necessary ports can run ${BRANDELF} from post-patch.
- Remove AUTOMATIC_PLIST handling.  Only one port used it.
- Fix Linux MASTER_SITES.
- Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with
  default versions framework.
- bsd.port.mk:
  - Move Linux related bits to Uses/linux.mk, except USE_LINUX_PREFIX.
  - Put USE_LINUX_PREFIX handling after USES processing.
  - Define DOCSDIR, DATADIR, etc. after handling USE_LINUX_PREFIX so it can
    give these variables a different default value.
  - When a package needs to run Linux ldconfig check before installation if
    Linux support is enabled.
- emulators/linux_base-*:
  - Use USES=linux and remove duplication.
  - Remove files/lp.  FreeBSD or CUPS lp(1) should work.
  - Remove files/yp.conf.  No longer seems to be used.
  - Remove pkg-deinstall and move pkg-install into pkg-plist.
  - Update pkg-descr and pkg-message.
  - Fix handling of ldconfig cache in pkg-plist.
- devel/fb-adb: Use a Linux shell to run a Linux script but patch the script
  to use FreeBSD mkdir so mkdir -p $path creates $path and not
  /compat/linux/$path.

PR:		211645
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-09-05 19:23:42 +00:00

79 lines
2.0 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:databases/linux-oracle-instantclient-basic
USES= linux:c6 zip
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>