Magellan Linux

Annotation of /branches/magellan-next/core/xfsprogs/xfsprogs-3.1.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9202 - (hide annotations) (download)
Tue Nov 8 18:45:32 2011 UTC (12 years, 7 months ago) by niro
File size: 2422 byte(s)
auto added: ver bump to 3.1.6-r1
1 niro 9202 # $Id$
2    
3     PNAME="xfsprogs"
4     PVER="3.1.6"
5     PBUILD="r1"
6    
7     PCATEGORIE="sys-fs"
8    
9     DESCRIPTION="Administration and debugging tools for the XFS file system."
10     HOMEPAGE="http://oss.sgi.com/projects/xfs/"
11    
12     DEPEND=">= virtual/glibc
13     >= sys-fs/e2fsprogs-1.41"
14    
15     SDEPEND=">= sys-dev/gettext-0.18
16     >= sys-apps/sed-4"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     sminclude mtools
22    
23     SRC_URI=(
24     ftp://oss.sgi.com/projects/xfs/cmd_tars/${SRCFILE}
25     ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     )
28    
29     #UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | sed -n 's/.*_\(.*\)-[0-9]\..*/\1/;$ p'"
30     UP2DATE="updatecmd ftp://oss.sgi.com/projects/xfs/cmd_tars | grep ${PNAME} | lasttarball gz"
31    
32     src_prepare()
33     {
34     munpack ${SRCFILE} || die
35     cd ${SRCDIR}
36    
37     # fix CFLAGS and some install pathes
38     sed -i "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PNAME}-${PVER}:" \
39     include/builddefs.in || die
40    
41     # extreme dirty fix:
42     # it complains always about:
43     # libtool: compile: unable to infer tagged configuration
44     # libtool: compile: specify a tag with `--tag'
45     # make: *** [parser.o] Error 1
46     #
47     # to fix that we set the needed tag to libtool:
48     # --tag=CXX
49     # sed -i '/^LIBTOOL/s:=.*:= @LIBTOOL@ --tag=CXX:g' \
50     # include/builddefs.in || die
51    
52     # create configure scripts
53     mlibtoolize || die
54     autoconf --force || die
55     }
56    
57     src_compile()
58     {
59     cd ${SRCDIR}
60    
61     # enable CFLAGS
62     export OPTIMIZER="${CFLAGS}"
63    
64     # disable debug code
65     export DEBUG=-DNDEBUG
66    
67     mconfigure \
68     --bindir=/bin \
69     --sbindir=/sbin \
70     --libexecdir=/$(mlibdir) \
71     --enable-gettext \
72     || die
73    
74     mmake || die
75     }
76    
77     src_install()
78     {
79     cd ${SRCDIR}
80    
81     # needed directories
82     minstalldir /usr/$(mlibdir) || die
83    
84     make DIST_ROOT=${BINDIR} \
85     DK_INC_DIR=${BINDIR}/usr/include/disk \
86     install install-dev \
87     || die
88    
89     # missing link
90     mlink /$(mlibdir)/libhandle.so.1 /$(mlibdir)/libhandle.so || die
91    
92     # fix .la file
93     sed -e 's:installed=no:installed=yes:g' \
94     libhandle/.libs/libhandle.la \
95     > ${BINDIR}/usr/$(mlibdir)/libhandle.la \
96     || die
97    
98     # move static lib to /usr/lib
99     mv ${BINDIR}/$(mlibdir)/*.a ${BINDIR}/usr/$(mlibdir)/ || die
100    
101     # we want compressed docs
102     rm -rf ${BINDIR}/usr/share/doc || die
103    
104     # prune unneeded docs
105     rm doc/{CHANGES.gz,INSTALL,Makefile} || die
106    
107     # sometime /var/tmp exist, remove it, to keep the right permissions
108     [[ -d ${BINDIR}/var ]] && rm -rf ${BINDIR}/var
109    
110     minstalldocs doc/* || die
111     }