Magellan Linux

Contents of /trunk/extras/xscreensaver/xscreensaver-5.32-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23421 - (show annotations) (download)
Thu Nov 20 14:37:22 2014 UTC (9 years, 6 months ago) by niro
File size: 2650 byte(s)
auto added: ver bump to 5.32-r1
1 # $Id$
2
3 PNAME="xscreensaver"
4 PVER="5.32"
5 PBUILD="r1"
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.60
17 >= media-libs/libjpeg-8
18 >= sys-libs/zlib-1.2
19 >= dev-libs/libxml2-2.9
20 >= x11-libs/gtk2+-2.24
21 >= dev-libs/glib2-2.42
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.20
34 >= dev-util/pkgconfig-0.25
35 >= dev-util/intltool-0.50
36 >= sys-dev/gettext-0.18
37 >= virtual/sed"
38
39 SRCFILE="${PNAME}-${PVER}.tar.gz"
40 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
41
42 sminclude mtools
43 msetfeature "!check"
44
45 SRC_URI=(
46 http://www.jwz.org/${PNAME}/${SRCFILE}
47 mirror://${PNAME}/${SRCFILE}
48 mirror://${PNAME}/xscreensaver.pam-systemauth
49 mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch
50 )
51
52 UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz"
53
54 src_prepare()
55 {
56 munpack ${SRCFILE} || die
57 cd ${SRCDIR}
58
59 # fix app defaults for X11R7
60 mpatch ${PNAME}-4.24-app-defaults.patch || die
61
62 # fix intltool issues
63 intltoolize --force || die
64 sed -i 's:@install_sh@:install:g' po/Makefile.in.in || die
65
66 # remove old aclocal macros
67 rm aclocal.m4 || die
68
69 # rebuild configure
70 mautoreconf || die
71 }
72
73 src_compile()
74 {
75 cd ${SRCDIR}
76
77 # force app-defaults dir location
78 ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \
79 mconfigure \
80 --libexecdir=/usr/$(mlibdir) \
81 --enable-hackdir=/usr/$(mlibdir)/xscreensaver \
82 --x-libraries=/usr/$(mlibdir) \
83 --x-includes=/usr/include \
84 --with-mit-ext \
85 --with-dpms-ext \
86 --with-xf86vmode-ext \
87 --with-xf86gamma-ext \
88 --with-randr-ext \
89 --with-proc-interrupts \
90 --with-xpm \
91 --with-xshm-ext \
92 --with-xdbe-ext \
93 --enable-locking \
94 --with-fortune=/usr/bin/fortune \
95 --without-motif \
96 --with-gtk \
97 --with-randr-ext \
98 --with-xml \
99 --with-xinerama-ext \
100 --with-pam \
101 --without-kerberos \
102 --with-gl \
103 --without-gle \
104 --with-jpeg \
105 --enable-nls \
106 || die
107
108 mmake -j1 all || die
109 }
110
111 src_install()
112 {
113 cd ${SRCDIR}
114
115 # needed directories
116 minstalldir /usr/$(mlibdir)/xscreensaver || die
117 minstalldir /usr/share/gnome/capplets || die
118 minstalldir /usr/share/pixmaps || die
119
120 mmake install_prefix=${BINDIR} install || die
121
122 # pam stuff
123 minstallpam xscreensaver.pam-systemauth xscreensaver || die
124
125 minstalldocs README || die
126 }