1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs
7 DESCRIPTION="Mac/PowerMac disk partitioning utility"
8 HOMEPAGE="ftp://ftp.mklinux.apple.com/pub/Other_Tools/"
10 mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV/_p*}.orig.tar.gz
11 mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV/_p*}-${PV/*_p}.diff.gz
16 KEYWORDS="amd64 ppc ppc64 x86"
18 S=${WORKDIR}/${P/_p*}.orig
20 "${WORKDIR}"/${PN}_${PV/_p*}-${PV/*_p}.diff
21 "${FILESDIR}"/largerthan2gb.patch
22 "${FILESDIR}"/${PN}-0.1-headers.patch
23 # Patch for bug #142737
24 "${FILESDIR}"/${PN}-0.1_p16-ppc64.patch
25 ### Patch for building on amd64
26 "${FILESDIR}"/${PN}-amd64.patch
27 # Patch for large (>550GB disks)
28 # Note that >=2TB disks may not work due to limitations of the Mac
29 # Partition Table structure, this needs to be investigated
30 "${FILESDIR}"/big_pt.patch
31 "${FILESDIR}"/${PN}-0.1_p16-ppc-inline.patch
32 "${FILESDIR}"/${PN}-0.1_p18-lseek64.patch
36 emake CC="$(tc-getCC)"
41 newsbin pdisk mac-fdisk
42 newsbin fdisk pmac-fdisk
45 newman mac-fdisk.8.in mac-fdisk.8
46 newman pmac-fdisk.8.in pmac-fdisk.8
48 dodoc debian/changelog README HISTORY