root / trunk / data / diskdev-cmds / make.sh

Revision 218, 1.0 kB (checked in by saurik, 7 months ago)

Fixed some dependencies, removed mDNS fix for 2.0, and factored for multi-arch support.

Line 
1shopt -s extglob
2pkg:setup
3
4cd disklib
5rm -f mntopts.h getmntopts.c
6${PKG_TARG}-gcc -c *.c
7${PKG_TARG}-ar -r libdisk.a *.o
8cd ..
9
10for tproj in !(fstyp|dev_mkdb|dump|fsck_hfs|fuser|mount_hfs|restore|quotacheck|ufs).tproj; do
11    tproj=$(basename "${tproj}" .tproj)
12    echo ${tproj}
13
14    extra=
15    if [[ ${tproj} = mount_cd9660 ]]; then
16        extra="${extra} -framework IOKit"
17    fi
18
19    if [[ ${tproj} = mount_cd9660 || ${tproj} = newfs_hfs ]]; then
20        extra="${extra} -framework CoreFoundation"
21    fi
22
23    ${PKG_TARG}-gcc -Idisklib -o "${tproj}" $(find "${tproj}.tproj" -name '*.c') disklib/libdisk.a -lutil ${extra}
24done
25
26cd fstyp.tproj
27for c in *.c; do
28    bin=../$(basename "${c}" .c)
29    ${PKG_TARG}-gcc -o "${bin}" "${c}"
30done
31cd ..
32
33chmod u+s umount quota
34
35pkg: mkdir -p /usr/bin /usr/libexec /usr/sbin /sbin
36
37pkg: cp -a quota /usr/bin
38pkg: cp -a vsdbutil repquota fdisk edquota quot quotaon /usr/sbin
39pkg: cp -a vndevice /usr/libexec
40pkg: cp -a clri dumpfs tunefs umount @(fsck|fstyp|mount|newfs)?(_*([a-z0-9])) /sbin
Note: See TracBrowser for help on using the browser.