Contents of /branches/branch-xorg18/todo/xdvdfs-tools/xdvdfs-tools-2.1-r4.smage2
Parent Directory | Revision Log
Revision 5192 -
(show annotations)
(download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 1610 byte(s)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 1610 byte(s)
created branch 'branch-xorg18'
1 | # $Header: /magellan-cvs/smage/xdvdfs-tools/xdvdfs-tools-2.1-r4.smage2,v 1.3 2008/02/07 14:23:56 niro Exp $ |
2 | |
3 | PNAME="xdvdfs-tools" |
4 | PVER="2.1" |
5 | PBUILD="r4" |
6 | |
7 | PCATEGORIE="app-cdr" |
8 | STATE="testing" |
9 | |
10 | DESCRIPTION="Utilities to create and extract xbox xdvdfs isos." |
11 | HOMEPAGE="http://www.layouts.xbox-scene.com/" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | |
15 | SDEPEND=">= dev-lang/nasm-0.98.39 |
16 | >= sys-apps/sed-4 |
17 | >= app-arch/unrar-3" |
18 | |
19 | SRCFILE="XDVDFSToolsv${PVER}.rar" |
20 | SRCDIR="${BUILDDIR}/XDVDFS Tools" # this one needs quotes -> call "${SRCDIR}" |
21 | |
22 | sminclude mtools |
23 | |
24 | SRC_URI=( |
25 | mirror://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${PNAME}-${PVER}-fnamefix.patch |
27 | ) |
28 | |
29 | # which tools shall be compiled ? |
30 | COMP_TOOLS="xdvdfs_dumper xdvdfs_maker xdvdfs_extract" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd "${SRCDIR}"/src |
36 | |
37 | # fixes some problems with filenames |
38 | mpatch ${PNAME}-${PVER}-fnamefix.patch || die |
39 | |
40 | # fix compilations issues and make use if our CFLAGS |
41 | sed -i -e "s:^\(BINDIR =\).*:\1 .:" \ |
42 | -e "s:^\(CCFLAGS =\).*:\1 ${CFLAGS} -fomit-frame-pointer -ffast-math:" \ |
43 | makefile.prefab || die |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd "${SRCDIR}"/src |
49 | |
50 | for i in ${COMP_TOOLS} |
51 | do |
52 | cd "${SRCDIR}"/src/${i} |
53 | mmake || die |
54 | done |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd "${SRCDIR}"/src |
60 | |
61 | # needed directories |
62 | minstalldir /usr/bin || die |
63 | minstalldir /usr/share/doc/${PNAME}-${PVER} || die |
64 | |
65 | for i in ${COMP_TOOLS} |
66 | do |
67 | minstallexec ${i}/${i} /usr/bin/${i} || die |
68 | done |
69 | |
70 | cd "${SRCDIR}" |
71 | # minstalldocs doesnt work cause of the space in SRCDIR |
72 | cat Readme.txt | gzip -9 > \ |
73 | ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/Readme.txt.gz || die |
74 | minstallhtml documentation/* || die |
75 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |