Magellan Linux

Contents of /trunk/core/xscreensaver/xscreensaver-5.08-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1789 - (show annotations) (download)
Fri May 29 21:11:38 2009 UTC (14 years, 11 months ago) by niro
File size: 3022 byte(s)
auto added: ver bump to 5.08-r1
1 # $Id$
2
3 PNAME="xscreensaver"
4 PVER="5.08"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-misc"
8 STATE="unstable"
9
10 DESCRIPTION="a screen saver and locker for the x-window-system."
11 HOMEPAGE="http://www.jwz.org/xscreensaver/"
12
13 DEPEND=">= x11-libs/libXxf86misc-1
14 >= x11-apps/xwininfo-1
15 >= x11-libs/libXinerama-1
16 >= media-libs/netpbm-10
17 >= media-libs/libjpeg-6
18 >= sys-libs/zlib-1.2
19 >= dev-libs/libxml2-2.6
20 >= x11-libs/gtk2+-2.16
21 >= dev-libs/glib2-2.20
22 >= gnome-base/libglade-2.6
23 >= sys-libs/pam-0.99
24 >= virtual/opengl
25 >= media-libs/gle-3.1.0"
26
27 SDEPEND=">= x11-proto/xf86vidmodeproto-2.2
28 >= x11-proto/xextproto-7
29 >= x11-proto/scrnsaverproto-1
30 >= x11-proto/recordproto-1
31 >= x11-proto/xf86miscproto-0.9
32 >= x11-proto/xineramaproto-1
33 >= sys-dev/bc-1.06
34 >= dev-lang/perl-5.10
35 >= dev-util/pkgconfig-0.20
36 >= sys-dev/gettext-0.17"
37
38 SRCFILE="${PNAME}-${PVER}.tar.gz"
39 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
40
41 sminclude mtools
42
43 SRC_URI=(
44 http://www.jwz.org/${PNAME}/${SRCFILE}
45 mirror://${PNAME}/${SRCFILE}
46 mirror://${PNAME}/xscreensaver.pam
47 mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch
48 mirror://${PNAME}/${PNAME}-${PVER}-no-intltool.patch
49 mirror://${PNAME}/${PNAME}-${PVER}-randr12.patch
50 mirror://${PNAME}/${PNAME}-${PVER}-glforrestfire.patch
51 mirror://${PNAME}/${PNAME}-${PVER}-phosphor-segv.patch
52 )
53
54 UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz"
55
56 src_prepare()
57 {
58 munpack ${SRCFILE} || die
59 cd ${SRCDIR}
60
61 # fix app defaults for X11R7
62 mpatch ${PNAME}-4.24-app-defaults.patch || die
63
64 # recreate all po files
65 # fix error: po/Makefile.in.in was not created by intltoolize
66 mpatch ${PNAME}-${PVER}-no-intltool.patch || die
67
68 # add randr-1.2 support
69 mpatch ${PNAME}-${PVER}-randr12.patch || die
70
71 # fix compilation of glforrestfire with -lopengl
72 mpatch ${PNAME}-${PVER}-glforrestfire.patch || die
73
74 # fix segfaults in phosphor
75 mpatch ${PNAME}-${PVER}-phosphor-segv.patch || die
76
77 # rebuild configure
78 autoreconf || die
79 }
80
81 src_compile()
82 {
83 cd ${SRCDIR}
84
85 # force app-defaults dir location
86 ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \
87 mconfigure \
88 --libexecdir=/usr/$(mlibdir) \
89 --enable-hackdir=/usr/$(mlibdir)/xscreensaver \
90 --x-libraries=/usr/$(mlibdir) \
91 --x-includes=/usr/include \
92 --with-mit-ext \
93 --with-dpms-ext \
94 --with-xf86vmode-ext \
95 --with-xf86gamma-ext \
96 --with-randr-ext \
97 --with-proc-interrupts \
98 --with-xpm \
99 --with-xshm-ext \
100 --with-xdbe-ext \
101 --enable-locking \
102 --with-fortune=/usr/bin/fortune \
103 --without-motif \
104 --with-gtk \
105 --with-randr-ext \
106 --with-xml \
107 --with-xinerama-ext \
108 --with-pam \
109 --without-kerberos \
110 --with-gl \
111 --with-gle \
112 --with-jpeg \
113 --enable-nls \
114 || die
115
116 mmake || die
117 }
118
119 src_install()
120 {
121 cd ${SRCDIR}
122
123 # needed directories
124 minstalldir /usr/$(mlibdir)/xscreensaver || die
125 minstalldir /usr/share/gnome/capplets || die
126 minstalldir /usr/share/pixmaps || die
127
128 mmake install_prefix=${BINDIR} install || die
129
130 # pam stuff
131 minstallpam xscreensaver.pam xscreensaver || die
132
133 minstalldocs README || die
134 }

Properties

Name Value
svn:keywords Id