Magellan Linux

Annotation of /trunk/extras/nspluginwrapper/nspluginwrapper-1.0.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 2315 byte(s)
import repo
1 niro 2 # $Header: /magellan-cvs/smage/nspluginwrapper/nspluginwrapper-1.0.0-r1.smage2,v 1.1 2008/08/10 09:19:21 niro Exp $
2    
3     PNAME="nspluginwrapper"
4     PVER="1.0.0"
5     PBUILD="r1"
6    
7     PCATEGORIE="net-www"
8     STATE="unstable"
9    
10     DESCRIPTION="nspluginwrapper is an Open Source compatibility plugin for Netscape 4 (NPAPI) plugins. "
11     HOMEPAGE="http://gwenole.beauchesne.info/projects/nspluginwrapper/"
12    
13     DEPEND=">= x11-libs/libXt-1
14     >= x11-libs/gtk2+-2.12
15     >= dev-util/linux32-1"
16    
17     SDEPEND=">= dev-util/pkgconfig-0.23"
18    
19     SRCFILE="${PNAME}-${PVER}.tar.bz2"
20     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21    
22     sminclude mtools
23    
24     SRC_URI=(
25     http://gwenole.beauchesne.info/projects/${PNAME}/files/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${PNAME}-0.9.91.5-magellan.patch
28     )
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # add support for magellan linux
36     mpatch ${PNAME}-0.9.91.5-magellan.patch || die
37     }
38    
39     src_compile()
40     {
41     cd ${SRCDIR}
42    
43     mconfigure \
44     --with-biarch \
45     --with-lib32=lib \
46     --with-lib64=$(mlibdir) \
47     --pkglibdir=/usr/$(mlibdir)/${PNAME} \
48     || die
49    
50     mmake || die
51     }
52    
53     src_install()
54     {
55     local myarch
56     [[ ${ARCH} = i?86 ]] && myarch="i386"
57     [[ ${ARCH} = x86_64 ]] && myarch="${ARCH}"
58    
59     cd ${SRCDIR}
60     make DESTDIR=${BINDIR} DONT_STRIP=yes install || die
61    
62     minstalldir /usr/bin
63     mlink /usr/$(mlibdir)/nspluginwrapper/${myarch}/linux/npconfig /usr/bin/nspluginwrapper || die
64    
65     # setup the plugin
66     minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
67     minstalldir /opt/netscape/plugins || die
68     mlink /usr/$(mlibdir)/nspluginwrapper/${myarch}/linux/npwrapper.so /usr/$(mlibdir)/nsbrowser/plugins || die
69     mlink /usr/$(mlibdir)/nspluginwrapper/${myarch}/linux/npwrapper.so /opt/netscape/plugins || die
70     }
71    
72     postinstall()
73     {
74     echo "Auto installing 32bit plugins ..."
75     nspluginwrapper -v -a -i
76     echo
77     echo "Any 32bit plugins you currently have installed have now been"
78     echo "configured to work in a 64bit browser. Any plugins you install in"
79     echo "the future will first need to be setup with:"
80     echo " \"nspluginwrapper -i <path-to-32bit-plugin>\""
81     echo "before they will function in a 64bit browser"
82     echo
83     }
84    
85     preremove()
86     {
87     echo "Removing wrapper plugins ..."
88     nspluginwrapper -v -a -r
89     }
90    
91     postremove()
92     {
93     if [[ -x /usr/bin/nspluginwrapper ]]
94     then
95     echo "Auto installing 32bit plugins ..."
96     nspluginwrapper -v -a -i
97     fi
98     }

Properties

Name Value
svn:keywords Id