usr/src/cmd/sox/install-sfw
author Jon Tibble <meths@btinternet.com>
Mon, 04 May 2015 14:04:39 +0100
branchoi_151a
changeset 254 9c2a4ac793f0
parent 204 2b4944346604
permissions -rw-r--r--
Bash patch catchup including shellshock

#!/bin/sh -e
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

#ident	"@(#)install-sfw	1.1	09/08/24 SMI"

PREFIX=${ROOT}/usr
BINDIR=${PREFIX}/bin
SHAREDIR=${PREFIX}/share
LIBDIR=${PREFIX}/lib
LIBDIR64=${PREFIX}/lib/${MACH64}
SOXLIBDIR=${PREFIX}/lib/sox
SOXLIBDIR64=${PREFIX}/lib/${MACH64}/sox
INCDIR=${PREFIX}/include
PCDIR=${LIBDIR}/pkgconfig
PCDIR64=${LIBDIR}/${MACH64}/pkgconfig
MAN1DIR=${SHAREDIR}/man/man1
MAN3DIR=${SHAREDIR}/man/man3
MAN4DIR=${SHAREDIR}/man/man4
MAN5DIR=${SHAREDIR}/man/man5
VERSRCLIBS=${VER}/src/.libs
VERSRCLIBS64=${VER64}/src/.libs

. ${SRC}/tools/install.subr

mkdir -m 755 -p ${BINDIR}
mkdir -m 755 -p ${LIBDIR}
mkdir -m 755 -p ${LIBDIR64}
mkdir -m 755 -p ${SHAREDIR}
mkdir -m 755 -p ${SOXLIBDIR}
mkdir -m 755 -p ${SOXLIBDIR64}
mkdir -m 755 -p ${PCDIR}
mkdir -m 755 -p ${PCDIR64}
mkdir -m 755 -p ${INCDIR}
mkdir -m 755 -p ${MAN1DIR}
mkdir -m 755 -p ${MAN3DIR}
mkdir -m 755 -p ${MAN4DIR}
mkdir -m 755 -p ${MAN5DIR}

# Binaries
_install E ${VERSRCLIBS}/sox ${BINDIR}/sox 555
_install L sox ${BINDIR}/rec 555
_install L sox ${BINDIR}/play 555
_install L sox ${BINDIR}/soxi 555
_install D ${VERSRCLIBS}/libsox.so ${LIBDIR}/libsox.so.2.0.1 555
_install L libsox.so.2.0.1 ${LIBDIR}/libsox.so 555
_install L libsox.so.2.0.1 ${LIBDIR}/libsox.so.2 555

# installing 64-bit binaries
_install D ${VERSRCLIBS64}/libsox.so ${LIBDIR64}/libsox.so.2.0.1 555
_install L libsox.so.2.0.1 ${LIBDIR64}/libsox.so 555
_install L libsox.so.2.0.1 ${LIBDIR64}/libsox.so.2 555

# header files, pkgconfig file, 64-bit pkgconfig file
_install N ${VER}/src/sox.h ${INCDIR}/sox.h 444
_install N ${VER}/sox.pc ${PCDIR}/sox.pc 444
_install N ${VER64}/sox.pc ${PCDIR64}/sox.pc 444

# Man Pages
#  The MAN pages are updated to indicate Interface Stability in an ATTIRBUTES
#  section, and also indicate where the source code is available
MANSCRIPT=sunman-stability
_install M ${VER}/sox.1 ${MAN1DIR}/sox.1 444
_install M ${VER}/soxi.1 ${MAN1DIR}/soxi.1 444
_install L sox.1 ${MAN1DIR}/rec.1 444
_install L sox.1 ${MAN1DIR}/play.1 444
_install M ${VER}/libsox.3 ${MAN3DIR}/libsox.3 444
_install M ${VER}/soxformat.7 ${MAN4DIR}/soxformat.4 444
_install L ../man1/sox.1 ${MAN5DIR}/soxeffect.5 444

exit 0