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