Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:49:40 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184817: graphics/qcread: Fix build with clang
Message-ID:  <20131217024940.db115b19b587db26aae2f39d@yahoo.com>
Resent-Message-ID: <201312161810.rBGIA29g015836@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184817
>Category:       ports
>Synopsis:       graphics/qcread: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 18:10:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Add amd64 to ONLY_FOR_ARCHS
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/qcread/Makefile graphics/qcread/Makefile
--- /usr/ports/graphics/qcread/Makefile	2013-11-06 22:02:31.000000000 +0900
+++ graphics/qcread/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -10,18 +10,21 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Supports both color and B&W parallel-port Connectix QuickCam for PC
 
-ONLY_FOR_ARCHS=	i386
+LICENSE=	BSD
+
+USE_CSTD=	gnu89
+
+ONLY_FOR_ARCHS=	amd64 i386
 
-NO_STAGE=	yes
 do-build:
-	cd ${WRKSRC} && ${CC} ${CFLAGS} -I. -DFreeBSD ${CPPFLAGS} \
-		-o qcread qcread.c cqc.c -lm ${LDFLAGS}
+	(cd ${WRKSRC} && ${CC} ${CFLAGS} -I. -DFreeBSD ${CPPFLAGS} \
+		-o qcread qcread.c cqc.c -lm ${LDFLAGS})
+	@${LN} -sf qcam.conf ${WRKSRC}/qcam.conf.dist
 
 do-install:
-	${INSTALL} ${COPY} -o root -g wheel -m 644 ${WRKSRC}/qcam.conf ${PREFIX}/etc/qcam.conf.dist
-	if [ ! -e ${PREFIX}/etc/qcam.conf ]; then \
-		${CP} ${PREFIX}/etc/qcam.conf.dist ${PREFIX}/etc/qcam.conf; \
-	fi
-	${INSTALL_PROGRAM} ${WRKSRC}/qcread ${PREFIX}/bin
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} qcread \
+		${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_DATA} qcam.conf.dist \
+		${STAGEDIR}${PREFIX}/etc)
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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