2016-09-09 23:18:41 -05:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
2023-09-03 04:41:09 -05:00
|
|
|
EAPI=8
|
2016-09-09 23:18:41 -05:00
|
|
|
|
|
|
|
DESCRIPTION="SDK for the SILC protocol"
|
|
|
|
HOMEPAGE="http://silcnet.org/"
|
|
|
|
#SRC_URI="http://silcnet.org/download/toolkit/sources/${P}.tar.bz2"
|
|
|
|
SRC_URI="mirror://sourceforge/silc/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
|
|
|
IUSE="debug ipv6"
|
|
|
|
|
|
|
|
RDEPEND=""
|
|
|
|
DEPEND="virtual/pkgconfig"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# They have incorrect DESTDIR usage
|
|
|
|
sed -i \
|
|
|
|
"s/^\(pkgconfigdir =\) \$(libdir)\/pkgconfig/\1 \/usr\/$(get_libdir)\/pkgconfig/"\
|
|
|
|
"${S}"/lib/Makefile.{am,in}
|
2022-07-22 01:19:08 -05:00
|
|
|
default
|
2016-09-09 23:18:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
--datadir="${EPREFIX}/usr/share/${PN}" \
|
|
|
|
--datarootdir="${EPREFIX}/usr/share/${PN}" \
|
|
|
|
--includedir="${EPREFIX}/usr/include/${PN}" \
|
|
|
|
--sysconfdir="${EPREFIX}/etc/silc" \
|
|
|
|
--libdir="${EPREFIX}/usr/$(get_libdir)/${PN}" \
|
|
|
|
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
|
|
|
--disable-optimizations \
|
|
|
|
--with-simdir=/usr/$(get_libdir)/${PN}/modules \
|
|
|
|
$(use_enable debug) \
|
|
|
|
$(use_enable ipv6)
|
|
|
|
}
|