From: "Alexis Ballier" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/nas/
Date: Mon, 19 Jun 2017 10:59:07 +0000 (UTC) [thread overview]
Message-ID: <1497869939.eea6d3c38330d2200b3021d828fb55dc7508e72e.aballier@gentoo> (raw)
commit: eea6d3c38330d2200b3021d828fb55dc7508e72e
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 19 10:58:49 2017 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Jun 19 10:58:59 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea6d3c3
media-libs/nas: Run econf instead of letting the build system run configure itself.
It allows updating config.guess & co, needed for arm64. The build system also calls econf after unsetting CFLAGS...
Package-Manager: Portage-2.3.6, Repoman-2.3.2
media-libs/nas/nas-1.9.4-r2.ebuild | 103 +++++++++++++++++++++++++++++++++++++
1 file changed, 103 insertions(+)
diff --git a/media-libs/nas/nas-1.9.4-r2.ebuild b/media-libs/nas/nas-1.9.4-r2.ebuild
new file mode 100644
index 00000000000..b7cf68e7935
--- /dev/null
+++ b/media-libs/nas/nas-1.9.4-r2.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib toolchain-funcs multilib-minimal
+
+DESCRIPTION="Network Audio System"
+HOMEPAGE="http://radscan.com/nas.html"
+SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz"
+
+LICENSE="HPND MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="doc static-libs"
+
+RDEPEND="x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}]
+ x11-libs/libXaw
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXpm
+ >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ app-text/rman
+ sys-devel/bison
+ sys-devel/flex
+ x11-misc/gccmakedep
+ x11-misc/imake
+ >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}]"
+
+DOCS=( BUILDNOTES FAQ HISTORY README RELEASE TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.9.2-asneeded.patch
+ epatch "${FILESDIR}"/${PN}-1.9.4-remove-abs-fabs.patch
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ # Need to run econf so that config.guess is updated
+ pushd config || die
+ econf
+ popd || die
+ xmkmf -a || die
+}
+
+multilib_src_compile() {
+ # EXTRA_LDOPTIONS, SHLIBGLOBALSFLAGS #336564#c2
+ local emakeopts=(
+ AR="$(tc-getAR) clq"
+ AS="$(tc-getAS)"
+ CC="$(tc-getCC)"
+ CDEBUGFLAGS="${CFLAGS}"
+ CXX="$(tc-getCXX)"
+ CXXDEBUFLAGS="${CXXFLAGS}"
+ EXTRA_LDOPTIONS="${LDFLAGS}"
+ LD="$(tc-getLD)"
+ MAKE="${MAKE:-gmake}"
+ RANLIB="$(tc-getRANLIB)"
+ SHLIBGLOBALSFLAGS="${LDFLAGS}"
+ WORLDOPTS=
+ )
+
+ if multilib_is_native_abi ; then
+ # dumb fix for parallel make issue wrt #446598, Imake sux
+ emake "${emakeopts[@]}" -C server/dia all
+ emake "${emakeopts[@]}" -C server/dda/voxware all
+ emake "${emakeopts[@]}" -C server/os all
+ else
+ sed -i \
+ -e 's/SUBDIRS =.*/SUBDIRS = include lib config/' \
+ Makefile || die
+ fi
+
+ emake "${emakeopts[@]}" World
+}
+
+multilib_src_install() {
+ # ranlib is used at install phase too wrt #446600
+ emake RANLIB="$(tc-getRANLIB)" \
+ DESTDIR="${D}" USRLIBDIR=/usr/$(get_libdir) \
+ install install.man
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ if use doc; then
+ docinto doc
+ dodoc doc/{actions,protocol.txt,README}
+ docinto pdf
+ dodoc doc/pdf/*.pdf
+ fi
+
+ mv -vf "${D}"/etc/nas/nasd.conf{.eg,} || die
+
+ newconfd "${FILESDIR}"/nas.conf.d nas
+ newinitd "${FILESDIR}"/nas.init.d nas
+
+ use static-libs || rm -f "${D}"/usr/lib*/libaudio.a
+}
next reply other threads:[~2017-06-19 10:59 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-19 10:59 Alexis Ballier [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-15 23:16 [gentoo-commits] repo/gentoo:master commit in: media-libs/nas/ Sam James
2024-10-27 18:40 Andreas K. Hüttel
2024-08-10 5:27 Michał Górny
2024-08-09 8:50 Jakov Smolić
2024-06-30 17:31 Sam James
2024-06-30 17:31 Sam James
2024-06-30 17:31 Sam James
2024-06-30 12:22 Sam James
2024-06-30 12:22 Sam James
2024-06-30 11:29 Miroslav Šulc
2024-03-20 6:26 Sam James
2022-12-04 5:38 Ionen Wolkens
2022-03-18 8:22 Arthur Zamarin
2022-03-16 8:13 Jakov Smolić
2022-03-15 12:33 Jakov Smolić
2022-03-15 9:39 Jakov Smolić
2022-03-15 7:41 Agostino Sarubbo
2022-03-15 7:41 Agostino Sarubbo
2022-03-15 7:40 Agostino Sarubbo
2022-02-04 8:45 Miroslav Šulc
2019-05-15 1:04 Aaron Bauman
2019-04-20 7:47 Sergei Trofimovich
2018-10-05 5:48 Andreas Sturmlechner
2018-10-05 4:56 Markus Meier
2018-09-15 2:31 Andreas Sturmlechner
2018-09-14 10:18 Tobias Klausmann
2018-08-25 18:55 Sergei Trofimovich
2018-08-25 18:25 Sergei Trofimovich
2018-08-25 18:11 Sergei Trofimovich
2018-08-23 20:13 Sergei Trofimovich
2018-08-23 2:35 Mikle Kolyada
2018-08-23 1:41 Thomas Deutschmann
2017-06-19 11:42 Alexis Ballier
2015-09-12 9:46 Jeroen Roovers
2015-09-05 17:15 Anthony G. Basile
2015-09-05 17:12 Mikle Kolyada
2015-08-30 15:38 Tobias Klausmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497869939.eea6d3c38330d2200b3021d828fb55dc7508e72e.aballier@gentoo \
--to=aballier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox