1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="A comprehensive filesystem mirroring program"
9 HOMEPAGE="http://apollo.backplane.com/FreeSrc/"
10 SRC_URI="http://apollo.backplane.com/FreeSrc/${P}.tgz"
15 IUSE="userland_GNU threads"
21 PATCHES=( "${FILESDIR}"/${PN}-1.11-unused.patch )
26 if use userland_GNU; then
27 cp "${FILESDIR}"/Makefile.linux Makefile || die
28 # bits/stat.h has __unused too
29 sed -i 's/__unused/__cpdup_unused/' *.c || die
30 echo "#define strlcpy(a,b,c) strncpy(a,b,c)" >> cpdup.h || die
36 use threads || EXTRA_MAKE_OPTS="NOPTHREADS=1"
40 MAKE=make emake ${EXTRA_MAKE_OPTS}