Magellan Linux

Contents of /trunk/todo/d4x/d4x-2.5.7.1-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2225 - (show annotations) (download)
Thu Jul 9 19:23:25 2009 UTC (14 years, 10 months ago) by niro
File size: 1874 byte(s)
-moved to 'todo'
1 # $Header: /magellan-cvs/smage/d4x/d4x-2.5.7.1-r3.smage2,v 1.2 2008/02/07 14:23:35 niro Exp $
2
3 PNAME="d4x"
4 PVER="2.5.7.1"
5 PBUILD="r3"
6
7 PCATEGORIE="net-misc"
8 STATE="testing"
9
10 DESCRIPTION="A downloader for X."
11 HOMEPAGE="http://www.krasu.ru/soft/chuchelo/"
12
13 DEPEND=">= x11-libs/libXt-1
14 >= dev-libs/boost-1.33
15 >= dev-libs/glib2-2.12
16 >= x11-libs/gtk2+-2.10
17 >= dev-libs/openssl-0.9.8"
18
19 SDEPEND=">= sys-dev/gettext-0.12.1
20 >= dev-util/desktop-file-utils-0.10"
21
22 SRCFILE="${PNAME}-${PVER}.tar.bz2"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 sminclude mtools xdg
26
27 SRC_URI=(
28 http://d4x.krasu.ru/files/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${PNAME}-${PVER}-libintl_fix.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-speed.patch
32 )
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # fixes issues with newer glibc
40 mpatch ${PNAME}-${PVER}-libintl_fix.patch || die
41 # fixes some speed issues
42 mpatch ${PNAME}-${PVER}-speed.patch || die
43
44 # force use of our CFLAGS
45 sed -i -e "s:CXXFLAGS=\"-O2\":CXXFLAGS=\"${CXXFLAGS}\":g" \
46 -e "s:OPTFLAGS=\"-O2\":OPTFLAGS=\"\":g" \
47 configure || die
48
49 # use a nice icon rather than the default
50 sed -i "s:Icon=nt.png:Icon=d4x_aqua.png:g" share/nt.desktop || die
51 mv share/{nt,d4x}.desktop || die
52 }
53
54 src_compile()
55 {
56 cd ${SRCDIR}
57
58 mconfigure \
59 --enable-nls \
60 --enable-release\
61 --enable-openssl \
62 --disable-libao \
63 --disable-oss \
64 --disable-esd \
65 || die
66
67 mmake || die
68 }
69
70 src_install()
71 {
72 cd ${SRCDIR}
73 make DESTDIR=${BINDIR} install || die
74
75 # icons
76 minstallpixmap share/d4x_aqua.png d4x.png || die
77
78 # menu
79 minstall_desktop_icon --categories Network || die
80
81 # docs
82 minstalldocs AUTHORS COPYING ChangeLog* NEWS PLANS TODO \
83 DOC/{FAQ*,LICENSE,README*,TROUBLES,THANKS} || die
84
85 # these are in doc dir already; don't need them twice
86 rm -rf ${BINDIR}/usr/share/d4x/{FAQ*,README*,LICENSE,TROUBLES} || die
87 }

Properties

Name Value
svn:keywords Id