Magellan Linux

Annotation of /trunk/nonfree/libXp/libXp-1.0.0-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5372 - (hide annotations) (download)
Wed May 19 16:21:19 2010 UTC (14 years, 4 months ago) by niro
File size: 1426 byte(s)
auto added: ver bump to 1.0.0-r6
1 niro 5372 # $Id$
2    
3     PNAME="libXp"
4     PVER="1.0.0"
5     PBUILD="r6"
6    
7     PCATEGORIE="x11-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="X Print Library."
11     HOMEPAGE="http://xorg.freedesktop.org"
12    
13     DEPEND=">= x11-libs/libX11-1
14     >= x11-libs/libXext-1
15     >= x11-libs/libXau-1"
16    
17     #SDEPEND=">= x11-proto/printproto-1"
18    
19     sminclude xorg multilib cleanutils
20    
21     PRINTPROTO_PVER="1.0.4"
22     PRINTPROTO_SRCFILE="printproto-${PRINTPROTO_PVER}.tar.bz2"
23     PRINTPROTO_SRCDIR="${BUILDDIR}/printproto-${PRINTPROTO_PVER}"
24    
25     SRC_URI=( ${SRC_URI[*]}
26     http://ftp.x.org/pub/individual/proto/${PRINTPROTO_SRCFILE}
27     mirror://printproto/${PRINTPROTO_SRCFILE}
28     )
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33    
34     # need printproto to build
35     oldmunpack ${PRINTPROTO_SRCFILE} || die
36     ln -snf . ${PRINTPROTO_SRCDIR}/include || die
37     ln -snf . ${PRINTPROTO_SRCDIR}/X11 || die
38     ln -snf . ${PRINTPROTO_SRCDIR}/extensions || die
39     }
40    
41     src_compile()
42     {
43     # create pkgconfig file printproto.pc
44     cd ${PRINTPROTO_SRCDIR}
45     oldmconfigure --prefix=${PRINTPROTO_SRCDIR} || die
46    
47     # include printproto
48     PKG_CONFIG_PATH+=":${PRINTPROTO_SRCDIR}" \
49     mconfigure --prefix=${X11_DIR} || die
50     mmake || die
51     }
52    
53     src_install()
54     {
55     mmake DESTDIR=${BINDIR} install || die
56     # cleanup, only keep the lib, no dev files (.la,.pc etc) - and honor multilib!
57     zapmost ${BINDIR} \
58     usr/$(mlibdir)/*.so \
59     $([[ $(mlibdir) != lib ]] && echo "usr/lib/*.so") \
60     usr/$(mlibdir)/*.so.* \
61     $([[ $(mlibdir) != lib ]] && echo "usr/lib/*.so.*") \
62     || die
63     }

Properties

Name Value
svn:keywords Id