Magellan Linux

Contents of /trunk/extras/xscreensaver/xscreensaver-5.15-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10620 - (show annotations) (download)
Thu Jan 26 10:31:42 2012 UTC (12 years, 4 months ago) by niro
File size: 2495 byte(s)
-fixed intltool issues
1 # $Id$
2
3 PNAME="xscreensaver"
4 PVER="5.15"
5 PBUILD="r2"
6
7 PCAT="x11-misc"
8
9 DESCRIPTION="a screen saver and locker for the x-window-system."
10 HOMEPAGE="http://www.jwz.org/xscreensaver/"
11
12 DEPEND=">= x11-libs/libXxf86misc-1
13 >= x11-libs/libXinerama-1
14 >= x11-apps/xwininfo-1
15 >= x11-apps/appres-1
16 >= media-libs/netpbm-10.35
17 >= media-libs/libjpeg-8
18 >= sys-libs/zlib-1.2
19 >= dev-libs/libxml2-2.7
20 >= x11-libs/gtk2+-2.24
21 >= dev-libs/glib2-2.28
22 >= gnome-base/libglade-2.6.4
23 >= sys-libs/pam-1.1
24 >= virtual/opengl"
25
26 SDEPEND=">= x11-proto/xf86vidmodeproto-2.2
27 >= x11-proto/xextproto-7
28 >= x11-proto/scrnsaverproto-1
29 >= x11-proto/recordproto-1
30 >= x11-proto/xf86miscproto-0.9
31 >= x11-proto/xineramaproto-1
32 >= sys-dev/bc-1.06
33 >= dev-lang/perl-5.14
34 >= dev-util/pkgconfig-0.25
35 >= sys-dev/gettext-0.18"
36
37 SRCFILE="${PNAME}-${PVER}.tar.gz"
38 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
39
40 sminclude mtools
41 msetfeature "!check"
42
43 SRC_URI=(
44 http://www.jwz.org/${PNAME}/${SRCFILE}
45 mirror://${PNAME}/${SRCFILE}
46 mirror://${PNAME}/xscreensaver.pam-systemauth
47 mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch
48 )
49
50 UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz"
51
52 src_prepare()
53 {
54 munpack ${SRCFILE} || die
55 cd ${SRCDIR}
56
57 # fix app defaults for X11R7
58 mpatch ${PNAME}-4.24-app-defaults.patch || die
59
60 # fix intltool issues
61 intltoolize --force || die
62
63 # rebuild configure
64 mautoreconf || die
65 }
66
67 src_compile()
68 {
69 cd ${SRCDIR}
70
71 # force app-defaults dir location
72 ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \
73 mconfigure \
74 --libexecdir=/usr/$(mlibdir) \
75 --enable-hackdir=/usr/$(mlibdir)/xscreensaver \
76 --x-libraries=/usr/$(mlibdir) \
77 --x-includes=/usr/include \
78 --with-mit-ext \
79 --with-dpms-ext \
80 --with-xf86vmode-ext \
81 --with-xf86gamma-ext \
82 --with-randr-ext \
83 --with-proc-interrupts \
84 --with-xpm \
85 --with-xshm-ext \
86 --with-xdbe-ext \
87 --enable-locking \
88 --with-fortune=/usr/bin/fortune \
89 --without-motif \
90 --with-gtk \
91 --with-randr-ext \
92 --with-xml \
93 --with-xinerama-ext \
94 --with-pam \
95 --without-kerberos \
96 --with-gl \
97 --without-gle \
98 --with-jpeg \
99 --enable-nls \
100 || die
101
102 mmake -j1 all || die
103 }
104
105 src_install()
106 {
107 cd ${SRCDIR}
108
109 # needed directories
110 minstalldir /usr/$(mlibdir)/xscreensaver || die
111 minstalldir /usr/share/gnome/capplets || die
112 minstalldir /usr/share/pixmaps || die
113
114 mmake install_prefix=${BINDIR} install || die
115
116 # pam stuff
117 minstallpam xscreensaver.pam-systemauth xscreensaver || die
118
119 minstalldocs README || die
120 }