1 #!/bin/sh 2 # 3 # CDDL HEADER START 4 # 5 # The contents of this file are subject to the terms of the 6 # Common Development and Distribution License (the "License"). 7 # You may not use this file except in compliance with the License. 8 # 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets "[]" replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 # 23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 #ident "@(#)install-libxslt-64 1.10 07/04/02 SMI" 27 28 VERS=libxslt-1.1.15-64 29 30 PREFIX=${ROOT}/usr 31 LIBDIR=${PREFIX}/lib/${MACH64} 32 PKGDIR=${LIBDIR}/pkgconfig 33 34 . ${SRC}/tools/install.subr 35 36 cd ${VERS} 37 38 39 rm -f ${PKGDIR}/libxslt.pc 40 rm -f /tmp/mysed$$ 41 echo 's/-R${exec_prefix}\/lib //' > /tmp/mysed$$ 42 echo 's/ -L\/usr\/lib -R\/usr\/lib //' >> /tmp/mysed$$ 43 echo "s/^libdir.*/&\/${MACH64}/" >> /tmp/mysed$$ 44 sed -f /tmp/mysed$$ < libxslt.pc > ${PKGDIR}/libxslt.pc 45 rm -f /tmp/mysed$$ 46 chmod 644 ${PKGDIR}/libxslt.pc 47 48 rm -f ${PKGDIR}/libexslt.pc 49 sed -e 's/-R${exec_prefix}\/lib //' -e 's/ -L\/usr\/lib -R\/usr\/lib //' \ 50 -e 's/^libdir.*/&\/sparcv9/' < libexslt.pc > ${PKGDIR}/libexslt.pc 51 chmod 644 ${PKGDIR}/libexslt.pc 52 53 _install D libxslt/.libs/libxslt.so ${LIBDIR}/libxslt.so.1 755 54 _install L libxslt.so.1 ${LIBDIR}/libxslt.so 55 56 _install N llib-lxslt.ln ${LIBDIR}/llib-lxslt.ln 644 57 58 _install D libexslt/.libs/libexslt.so ${LIBDIR}/libexslt.so.0 755 59 _install L libexslt.so.0 ${LIBDIR}/libexslt.so 60 61 _install N llib-lexslt.ln ${LIBDIR}/llib-lexslt.ln 644 62 63 exit 0 64