Magellan Linux

Contents of /trunk/core/ntfs-3g/ntfs-3g-2016.2.22-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28140 - (show annotations) (download)
Thu May 19 13:58:13 2016 UTC (8 years ago) by niro
File size: 1694 byte(s)
-gnutls-3.5 rebuild
1 # $Id$
2
3 PNAME="ntfs-3g"
4 PVER="2016.2.22"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="ntfs-3g ntfsprogs"
8
9 PCAT="sys-fs"
10 HOMEPAGE="http://www.tuxera.com/"
11
12 NTFS3G_DEPEND=">= virtual/glibc"
13 NTFSPROGS_DEPEND=">= sys-libs/libuuid-2.28
14 >= app-crypt/gnutls-3.5"
15 SDEPEND="${NTFS3G_DEPEND}
16 ${NTFSPROGS_DEPEND}
17 >= sys-apps/attr-2.4"
18
19 SRCFILE="${PNAME/-fuse/}_ntfsprogs-${PVER}.tgz"
20 SRCDIR="${BUILDDIR}/${PNAME/-fuse/}_ntfsprogs-${PVER}"
21
22 sminclude mbuild mtools
23
24 SRC_URI=(
25 http://tuxera.com/opensource/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 UP2DATE="updatecmd ${HOMEPAGE}community/open-source-ntfs-3g/ | highesttarball tgz"
30
31 split_info_ntfs-3g()
32 {
33 DESCRIPTION="NTFS-3G Read/Write Driver."
34 DEPEND="${NTFS3G_DEPEND}"
35 }
36
37 split_info_ntfsprogs()
38 {
39 DESCRIPTION="A collection of utilities for managing NTFS volumes."
40 DEPEND="== sys-fs/ntfs-3g-${PVER}
41 ${NTFSPROGS_DEPEND}"
42 }
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47 cd ${SRCDIR}
48
49 # fix hardcoded symlinks
50 sed -i 's:$(DESTDIR)/sbin:$(DESTDIR)$(rootsbindir):g' src/Makefile.{am,in} ntfsprogs/Makefile.{am,in} || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56
57 # use the internal stripped down fuse library
58 mconfigure \
59 --exec-prefix=/usr \
60 --with-fuse=internal \
61 --enable-crypto \
62 --enable-extras \
63 || die
64
65 mmake || die
66 }
67
68 src_install_ntfs-3g()
69 {
70 cd ${SRCDIR}
71 mmake -C src DESTDIR=${BINDIR} install || die
72 mmake -C libntfs-3g DESTDIR=${BINDIR} install || die
73 mmake -C include DESTDIR=${BINDIR} install || die
74 # missing symlink
75 mlink ../bin/ntfs-3g /usr/sbin/mount.ntfs || die
76
77 minstalldocs AUTHORS COPYING* CREDITS ChangeLog NEWS README TODO* || die
78 }
79
80 src_install_ntfsprogs()
81 {
82 cd ${SRCDIR}
83 mmake -C ntfsprogs DESTDIR=${BINDIR} install || die
84 }