Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2018 03:34:17 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484996 - head/multimedia/oscam
Message-ID:  <201811150334.wAF3YHOE055663@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Thu Nov 15 03:34:17 2018
New Revision: 484996
URL: https://svnweb.freebsd.org/changeset/ports/484996

Log:
  Fix build on gcc-based archs.
  
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/multimedia/oscam/Makefile

Modified: head/multimedia/oscam/Makefile
==============================================================================
--- head/multimedia/oscam/Makefile	Thu Nov 15 03:33:04 2018	(r484995)
+++ head/multimedia/oscam/Makefile	Thu Nov 15 03:34:17 2018	(r484996)
@@ -12,13 +12,8 @@ COMMENT=	Softcam software to decrypt digital tv channe
 
 LICENSE=	GPLv3
 
-BROKEN_mips=		does not build: gmake: clang: Command not found
-BROKEN_mips64=		does not build: gmake: clang: Command not found
-BROKEN_powerpc64=	does not build: gmake: clang: Command not found
-
 USES=		gmake ssl tar:bzip2
 USE_RC_SUBR=	oscam
-MAKE_ARGS+=	HOSTCC=clang CC=clang
 
 .if target(gen-dist)
 FETCH_DEPENDS+=	svn:devel/subversion
@@ -28,6 +23,12 @@ SVN_SRC=	http://www.streamboard.tv/svn/oscam/trunk
 
 OPTIONS_DEFINE=	EXAMPLES
 
+.include <bsd.port.pre.mk>
+
+.if ! ${ARCH:Mmips*} && ! ${ARCH:Mpowerpc*} && ! ${ARCH} == sparc64
+MAKE_ARGS+=	HOSTCC=clang CC=clang
+.endif
+
 do-install:
 	${RM} ${WRKSRC}/Distribution/*.debug
 	${INSTALL_PROGRAM} ${WRKSRC}/Distribution/${PORTNAME}-${PORTVERSION}-* ${STAGEDIR}${PREFIX}/bin/oscam
@@ -43,4 +44,4 @@ gen-dist:
 	svn export --force -r ${SVN_REV} ${SVN_SRC} ${WRKSRC}
 	${TAR} -cvy -C ${WRKDIR} -f ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
 
-.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?201811150334.wAF3YHOE055663>