svn commit: r491485 - head/irc/iroffer-dinoex

Dirk Meyer dinoex at FreeBSD.org
Mon Jan 28 13:46:21 UTC 2019


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>


More information about the svn-ports-all mailing list