Annotation of /branches/R11-stable/core/ntfs-3g/ntfs-3g-2014.2.15-r1.smage2
Parent Directory | Revision Log
Revision 21645 -
(hide annotations)
(download)
Mon Jul 21 09:26:15 2014 UTC (10 years, 2 months ago) by niro
File size: 1663 byte(s)
Mon Jul 21 09:26:15 2014 UTC (10 years, 2 months ago) by niro
File size: 1663 byte(s)
-release branches/R11-stable
1 | niro | 20989 | # $Id$ |
2 | |||
3 | PNAME="ntfs-3g" | ||
4 | PVER="2014.2.15" | ||
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.20" | ||
14 | SDEPEND="${NTFS3G_DEPEND} | ||
15 | ${NTFSPROGS_DEPEND} | ||
16 | >= sys-apps/attr-2.4" | ||
17 | |||
18 | SRCFILE="${PNAME/-fuse/}_ntfsprogs-${PVER}.tgz" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME/-fuse/}_ntfsprogs-${PVER}" | ||
20 | |||
21 | sminclude mbuild mtools | ||
22 | |||
23 | SRC_URI=( | ||
24 | http://tuxera.com/opensource/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | ) | ||
27 | |||
28 | UP2DATE="updatecmd ${HOMEPAGE}community/ntfs-3g-download/ | lasttarball tgz" | ||
29 | |||
30 | split_info_ntfs-3g() | ||
31 | { | ||
32 | DESCRIPTION="NTFS-3G Read/Write Driver." | ||
33 | DEPEND="${NTFS3G_DEPEND}" | ||
34 | } | ||
35 | |||
36 | split_info_ntfsprogs() | ||
37 | { | ||
38 | DESCRIPTION="A collection of utilities for managing NTFS volumes." | ||
39 | DEPEND="== sys-fs/ntfs-3g-${PVER} | ||
40 | ${NTFSPROGS_DEPEND}" | ||
41 | } | ||
42 | |||
43 | src_prepare() | ||
44 | { | ||
45 | munpack ${SRCFILE} || die | ||
46 | cd ${SRCDIR} | ||
47 | |||
48 | # fix hardcoded symlinks | ||
49 | sed -i 's:$(DESTDIR)/sbin:$(DESTDIR)$(rootsbindir):g' src/Makefile.{am,in} ntfsprogs/Makefile.{am,in} || die | ||
50 | } | ||
51 | |||
52 | src_compile() | ||
53 | { | ||
54 | cd ${SRCDIR} | ||
55 | |||
56 | # use the internal stripped down fuse library | ||
57 | mconfigure \ | ||
58 | --exec-prefix=/usr \ | ||
59 | --with-fuse=internal \ | ||
60 | --enable-crypto \ | ||
61 | --enable-extras \ | ||
62 | || die | ||
63 | |||
64 | mmake || die | ||
65 | } | ||
66 | |||
67 | src_install_ntfs-3g() | ||
68 | { | ||
69 | cd ${SRCDIR} | ||
70 | mmake -C src DESTDIR=${BINDIR} install || die | ||
71 | mmake -C libntfs-3g DESTDIR=${BINDIR} install || die | ||
72 | mmake -C include DESTDIR=${BINDIR} install || die | ||
73 | # missing symlink | ||
74 | mlink ../bin/ntfs-3g /usr/sbin/mount.ntfs || die | ||
75 | |||
76 | minstalldocs AUTHORS COPYING* CREDITS ChangeLog NEWS README TODO* || die | ||
77 | } | ||
78 | |||
79 | src_install_ntfsprogs() | ||
80 | { | ||
81 | cd ${SRCDIR} | ||
82 | mmake -C ntfsprogs DESTDIR=${BINDIR} install || die | ||
83 | } |