From owner-svn-ports-head@FreeBSD.ORG Sun Jan 19 10:02:11 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C803F40; Sun, 19 Jan 2014 10:02:11 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4D01B1FD3; Sun, 19 Jan 2014 10:02:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0JA2BIQ040520; Sun, 19 Jan 2014 10:02:11 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0JA2Aux040516; Sun, 19 Jan 2014 10:02:10 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201401191002.s0JA2Aux040516@svn.freebsd.org> From: Martin Wilke Date: Sun, 19 Jan 2014 10:02:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r340258 - in head/devel/libmpcbdm: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jan 2014 10:02:11 -0000 Author: miwi Date: Sun Jan 19 10:02:10 2014 New Revision: 340258 URL: http://svnweb.freebsd.org/changeset/ports/340258 QAT: https://qat.redports.org/buildarchive/r340258/ Log: - Fix build with clang PR: 184851 Submitted by: ports fury Modified: head/devel/libmpcbdm/Makefile (contents, props changed) head/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c (contents, props changed) head/devel/libmpcbdm/pkg-plist (contents, props changed) Modified: head/devel/libmpcbdm/Makefile ============================================================================== --- head/devel/libmpcbdm/Makefile Sun Jan 19 09:28:21 2014 (r340257) +++ head/devel/libmpcbdm/Makefile Sun Jan 19 10:02:10 2014 (r340258) @@ -13,19 +13,20 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Standalone library to control various mpc8xx boards WRKSRC= ${WRKDIR}/libmpc8xx -USE_GMAKE= yes -GNU_CONFIGURE= yes + +USES= gmake +USE_AUTOTOOLS= libtool USE_LDCONFIG= yes -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= amd64 i386 -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} -E -e 's,(objformat=).*,\1elf,' \ - ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's| $$(includedir)| $$(DESTDIR)$$(includedir)|' \ + ${WRKSRC}/libmpc8xx/Makefile.in post-install: - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/Flash.dev ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} Flash.dev ${STAGEDIR}${DATADIR}) .include Modified: head/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c ============================================================================== --- head/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c Sun Jan 19 09:28:21 2014 (r340257) +++ head/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c Sun Jan 19 10:02:10 2014 (r340258) @@ -9,12 +9,24 @@ #include static int lptbdm_read( void ); -@@ -252,7 +252,7 @@ +@@ -52,8 +52,9 @@ + + static uid_t lptbdm_euid = -1; + +-#define INB(x,port) asm volatile("inb %1, %0" : "=a" (x) : "d" (port)) +-#define OUTB(x,port) asm volatile("outb %0, %1" : : "a" (x), "d" (port)) ++#include ++#define INB(x,port) x = inb(port) ++#define OUTB(x,port) outb(port,x) + + /* in case of asm trouble (red hat 7.0?) try the code below and compile with -O option */ + /*#include +@@ -252,7 +253,7 @@ } } - nResult = ioperm( lptbdm_port.DATAAddr, 3, 1 ); -+ nResult = i386_set_ioperm( lptbdm_port.DATAAddr, 3, 1 ); ++ nResult = sysarch( I386_SET_IOPERM, (void *) ( lptbdm_port.DATAAddr, 3, 1 ) ); seteuid( getuid() ); Modified: head/devel/libmpcbdm/pkg-plist ============================================================================== --- head/devel/libmpcbdm/pkg-plist Sun Jan 19 09:28:21 2014 (r340257) +++ head/devel/libmpcbdm/pkg-plist Sun Jan 19 10:02:10 2014 (r340258) @@ -7,6 +7,7 @@ include/mpc8xx/mpc8xxmem.h include/mpc8xx/mpc8xxmisc.h include/mpc8xx/mpc8xxspr.h include/mpc8xx/mpc8xxtarget.h +lib/libmpc8xx.a lib/libmpc8xx.la lib/libmpc8xx.so lib/libmpc8xx.so.0