Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1481 - (show annotations) (download)
Fri May 8 07:55:41 2009 UTC (15 years ago) by niro
File size: 2980 byte(s)
-no intltool at all
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.12
21 >= dev-libs/glib2-2.14
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-proc-interrupts \
97 --with-xpm \
98 --with-xshm-ext \
99 --with-xdbe-ext \
100 --enable-locking \
101 --with-fortune=/usr/bin/fortune \
102 --without-motif \
103 --with-gtk \
104 --with-xml \
105 --with-xinerama-ext \
106 --with-pam \
107 --without-kerberos \
108 --with-gl \
109 --with-gle \
110 --with-jpeg \
111 --enable-nls \
112 || die
113
114 mmake || die
115 }
116
117 src_install()
118 {
119 cd ${SRCDIR}
120
121 # needed directories
122 minstalldir /usr/$(mlibdir)/xscreensaver || die
123 minstalldir /usr/share/gnome/capplets || die
124 minstalldir /usr/share/pixmaps || die
125
126 mmake install_prefix=${BINDIR} install || die
127
128 # pam stuff
129 minstallpam xscreensaver.pam xscreensaver || die
130
131 minstalldocs README || die
132 }

Properties

Name Value
svn:keywords Id