Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2013 15:55:20 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336931 - head/graphics/qcread
Message-ID:  <201312191555.rBJFtKjI091543@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Dec 19 15:55:19 2013
New Revision: 336931
URL: http://svnweb.freebsd.org/changeset/ports/336931

Log:
  - Fix build with clang
  - Add amd64 to ONLY_FOR_ARCHS
  - Add LICENSE
  - Support staging
  
  PR:		ports/184817
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/graphics/qcread/Makefile   (contents, props changed)

Modified: head/graphics/qcread/Makefile
==============================================================================
--- head/graphics/qcread/Makefile	Thu Dec 19 15:50:10 2013	(r336930)
+++ head/graphics/qcread/Makefile	Thu Dec 19 15:55:19 2013	(r336931)
@@ -10,18 +10,21 @@ MASTER_SITES=	http://www.fhttpd.org/pub/
 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>



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