Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31952 - (show annotations) (download)
Sun Jan 6 12:25:58 2019 UTC (5 years, 3 months ago) by niro
File size: 2452 byte(s)
-fixed a ftbfs
1 # $Id$
2
3 PNAME="xscreensaver"
4 PVER="5.42"
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-libs/libXpm-3.5
15 >= x11-apps/xwininfo-1
16 >= x11-apps/appres-1
17 >= media-libs/netpbm-10.82
18 >= virtual/libjpeg
19 >= sys-libs/zlib-1.2
20 >= dev-libs/libxml2-2.9
21 >= x11-libs/gtk2+-2.24
22 >= dev-libs/glib2-2.58
23 >= gnome-base/libglade-2.6.4
24 >= sys-libs/pam-1.1
25 >= virtual/opengl"
26
27 SDEPEND=">= virtual/xf86vidmodeproto
28 >= virtual/xextproto
29 >= virtual/scrnsaverproto
30 >= virtual/recordproto
31 >= virtual/xf86miscproto
32 >= virtual/xineramaproto
33 >= sys-dev/bc-1.06
34 >= dev-lang/perl-5.28
35 >= dev-util/pkgconfig-0.25
36 >= dev-util/intltool-0.50
37 >= sys-dev/gettext-0.18
38 >= virtual/sed"
39
40 SRCFILE="${PNAME}-${PVER}.tar.gz"
41 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
42
43 sminclude mbuild mtools
44 msetfeature "!check"
45
46 SRC_URI=(
47 http://www.jwz.org/${PNAME}/${SRCFILE}
48 mirror://${PNAME}/${SRCFILE}
49 mirror://${PNAME}/xscreensaver.pam-systemauth
50 mirror://${PNAME}/${PNAME}-${PVER}-fontglide-forbit-c-style-comment-ftbfs.patch
51 )
52
53 UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz"
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58 cd ${SRCDIR}
59
60 # fix a ftbfs
61 mpatch ${PNAME}-${PVER}-fontglide-forbit-c-style-comment-ftbfs.patch || die
62 }
63
64 src_compile()
65 {
66 cd ${SRCDIR}
67
68 mconfigure \
69 --libexecdir=/usr/$(mlibdir) \
70 --enable-hackdir=/usr/$(mlibdir)/xscreensaver \
71 --x-libraries=/usr/$(mlibdir) \
72 --x-includes=/usr/include \
73 --with-x-app-defaults=/usr/$(mlibdir)/X11/app-defaults \
74 --with-mit-ext \
75 --with-dpms-ext \
76 --with-xf86vmode-ext \
77 --with-xf86gamma-ext \
78 --with-randr-ext \
79 --with-proc-interrupts \
80 --with-xpm \
81 --with-xshm-ext \
82 --with-xdbe-ext \
83 --enable-locking \
84 --with-fortune=/usr/bin/fortune \
85 --without-motif \
86 --with-gtk \
87 --with-randr-ext \
88 --with-xml \
89 --with-xinerama-ext \
90 --with-pam \
91 --without-kerberos \
92 --with-gl \
93 --without-gle \
94 --with-jpeg \
95 --enable-nls \
96 || die
97
98 mmake -j1 all || die
99 }
100
101 src_install()
102 {
103 cd ${SRCDIR}
104
105 # needed directories
106 minstalldir /usr/$(mlibdir)/xscreensaver || die
107 minstalldir /usr/share/gnome/capplets || die
108 minstalldir /usr/share/pixmaps || die
109
110 mmake install_prefix=${BINDIR} install || die
111
112 # pam stuff
113 minstallpam xscreensaver.pam-systemauth xscreensaver || die
114
115 minstalldocs README || die
116 }