usr/src/lib/libneon/install-sfw-64
changeset 2 8f1801a322e9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/usr/src/lib/libneon/install-sfw-64	Sun Dec 20 07:12:51 2009 +0200
@@ -0,0 +1,61 @@
+#!/bin/bash
+#
+# 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-64	1.1	09/09/24 SMI"
+
+VERS=neon-0.29.0-64
+
+PREFIX=${ROOT}/usr
+LIBDIR=${PREFIX}/lib/${MACH64}
+PKGCONFIGDIR=${LIBDIR}/pkgconfig
+
+. ${SRC}/tools/install.subr
+
+GSED=/usr/bin/gsed
+
+cd ${INSTDIR}/usr/lib/${MACH64}/pkgconfig
+
+${GSED} -e "s#-R/lib ##g" neon.pc > neon.pc.sed
+cp -fp neon.pc.sed neon.pc
+${GSED} -e "s#-L/lib ##g" neon.pc > neon.pc.sed
+cp -fp neon.pc.sed neon.pc
+${GSED} -e "s#-R/usr/lib ##g" neon.pc > neon.pc.sed
+cp -fp neon.pc.sed neon.pc
+rm -f neon.pc.sed
+
+cd ${TOP}
+
+_install N ${INSTDIR}/usr/lib/${MACH64}/pkgconfig/neon.pc ${PKGCONFIGDIR}/neon.pc 0444
+
+# because libtool is being 'helpful' with the RUNPATH
+elfedit -e 'dyn:delete RUNPATH' ${INSTDIR}/usr/lib/${MACH64}/libneon.so.27.2.0
+elfedit -e 'dyn:delete RPATH' ${INSTDIR}/usr/lib/${MACH64}/libneon.so.27.2.0
+
+_install D ${INSTDIR}/usr/lib/${MACH64}/libneon.so.27.2.0 ${LIBDIR}/libneon.so.27.2.0 0755
+_install L libneon.so.27.2.0 ${LIBDIR}/libneon.so.27
+_install L libneon.so.27.2.0 ${LIBDIR}/libneon.so
+
+exit 0
+