Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2019 13:46:20 +0000 (UTC)
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r491485 - head/irc/iroffer-dinoex
Message-ID:  <201901281346.x0SDkKR9086547@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dinoex
Date: Mon Jan 28 13:46:20 2019
New Revision: 491485
URL: https://svnweb.freebsd.org/changeset/ports/491485

Log:
  - fix build on non-x86 architectures
  PR:		235069
  Submitted by:	Mark Linimon

Modified:
  head/irc/iroffer-dinoex/Makefile

Modified: head/irc/iroffer-dinoex/Makefile
==============================================================================
--- head/irc/iroffer-dinoex/Makefile	Mon Jan 28 13:20:32 2019	(r491484)
+++ head/irc/iroffer-dinoex/Makefile	Mon Jan 28 13:46:20 2019	(r491485)
@@ -2,7 +2,7 @@
 
 PORTNAME=	iroffer
 PORTVERSION=	3.31
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	irc
 MASTER_SITES=	https://iroffer.net/
 PKGNAMESUFFIX=	-dinoex${PKGNAMESUFFIX2}
@@ -46,12 +46,21 @@ OPTIONS_DEFAULT=CURL RUBY UPNP
 CURL_LIB_DEPENDS=	libcurl.so:ftp/curl
 CURL_CONFIGURE_ON=	-curl
 RUBY_USE=		RUBY=yes
-RUBY_LIB_DEPENDS=	lib${RUBY_NAME}.so:${RUBY_PORT} \
-			libunwind.so:devel/libunwind
+RUBY_LIB_DEPENDS=	lib${RUBY_NAME}.so:${RUBY_PORT}
 RUBY_CONFIGURE_ON=	-ruby
 UPNP_LIB_DEPENDS=	libminiupnpc.so:net/miniupnpc
 UPNP_CONFIGURE_ON=	-upnp
 
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MRUBY}
+# make stage-qa happy
+# keep in sync with all platforms where libunwind is available
+.if (${ARCH} == amd64 || ${ARCH} == i386)
+LIB_DEPENDS+=	libunwind.so:devel/libunwind
+.endif
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${STAGEDIR}${PREFIX}/bin/
 	${INSTALL_PROGRAM} ${WRKSRC}/iroffer-de ${STAGEDIR}${PREFIX}/bin/
@@ -75,4 +84,4 @@ do-install-EXAMPLES-on:
 	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}/
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901281346.x0SDkKR9086547>