Home | History | Annotate | Download | only in lcms
      1 #! /usr/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 2008 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 # ident "@(#)install-sfw 1.1     08/04/14 SMI"
     27 
     28 VERS=lcms-1.17
     29 
     30 PREFIX=${ROOT}/usr
     31 LIBDIR=${PREFIX}/lib
     32 PYTHONLCMSDIR=${LIBDIR}/python2.4/vendor-packages
     33 PKGCONFIGDIR=${LIBDIR}/pkgconfig
     34 INCDIR=${PREFIX}/include/lcms
     35 BINDIR=${PREFIX}/bin
     36 MAN1DIR=${PREFIX}/share/man/man1
     37 MAN3DIR=${PREFIX}/share/man/man3
     38 HTMLDOCDIR=${PREFIX}/share/doc/lcms/html
     39 ROOTMAN1DIR=${MAN1DIR}
     40 ROOTMAN3DIR=${MAN3DIR}
     41 
     42 MANSCRIPT=../sunman-stability
     43 . ${SRC}/tools/install.subr
     44 
     45 mkdir -p ${INCDIR}
     46 mkdir -p ${HTMLDOCDIR}
     47 
     48 cd ${VERS}
     49 HERE="`pwd`"
     50 
     51 _install N include/lcms.h ${INCDIR}/lcms.h 0644
     52 _install N include/icc34.h ${INCDIR}/icc34.h 0644
     53 
     54 _install D ${INSTDIR}/usr/lib/liblcms.so.1.0.16 ${LIBDIR}/liblcms.so.1.0.16 0755
     55 cd ${LIBDIR}
     56 ln -sf liblcms.so.1.0.16 liblcms.so.1
     57 ln -sf liblcms.so.1.0.16 liblcms.so
     58 
     59 cd ${HERE}
     60 
     61 _install D ${INSTDIR}/usr/lib/python2.4/site-packages/_lcms.so ${PYTHONLCMSDIR}/_lcms.so 0755
     62 _install N python/lcms.py ${PYTHONLCMSDIR}/lcms.py 0644
     63 
     64 _install E samples/.libs/icc2ps ${BINDIR}/icc2ps 0555
     65 _install E samples/.libs/icclink ${BINDIR}/icclink 0555
     66 _install E samples/.libs/icctrans ${BINDIR}/icctrans 0555
     67 _install E samples/.libs/wtpt ${BINDIR}/wtpt 0555
     68 
     69 _install E ${INSTDIR}/usr/bin/jpegicc ${BINDIR}/jpegicc 0555
     70 _install E ${INSTDIR}/usr/bin/tiffdiff ${BINDIR}/tiffdiff 0555
     71 _install E ${INSTDIR}/usr/bin/tifficc ${BINDIR}/tifficc 0555
     72 
     73 _install M samples/icc2ps.1 ${MAN1DIR}/icc2ps.1 0444
     74 _install M samples/icclink.1 ${MAN1DIR}/icclink.1 0444
     75 _install M samples/icctrans.1 ${MAN1DIR}/icctrans.1 0444
     76 _install M jpegicc/jpegicc.1 ${MAN1DIR}/jpegicc.1 0444
     77 _install M tifficc/tifficc.1 ${MAN1DIR}/tifficc.1 0444
     78 _install M samples/wtpt.1 ${MAN1DIR}/wtpt.1 0444
     79 
     80 _install N ../llib-llcms ${LIBDIR}/llib-llcms 0644
     81 _install N llib-llcms.ln ${LIBDIR}/llib-llcms.ln 0644
     82 
     83 sed -e 's#\${prefix}/include#\${prefix}/include/lcms#g' ${INSTDIR}/usr/lib/pkgconfig/lcms.pc > ${INSTDIR}/usr/lib/pkgconfig/lcms.pc.tmp
     84 cp -fp ${INSTDIR}/usr/lib/pkgconfig/lcms.pc.tmp ${INSTDIR}/usr/lib/pkgconfig/lcms.pc
     85 rm -f ${INSTDIR}/usr/lib/pkgconfig/lcms.pc.tmp
     86 
     87 _install N ${INSTDIR}/usr/lib/pkgconfig/lcms.pc ${PKGCONFIGDIR}/lcms.pc 0644
     88 
     89 
     90 
     91