svn commit: r336931 - head/graphics/qcread
Pawel Pekala
pawel at FreeBSD.org
Thu Dec 19 15:55:20 UTC 2013
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 at 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 at 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>
More information about the svn-ports-all
mailing list