summaryrefslogtreecommitdiff
path: root/graphics/cqcam/Makefile
blob: 15b5c13ef4a63e22ff4aca91169ccab072e7c9c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:	cqcam
# Date created:		29 Oct 1997
# Whom:			Kensaku Masuda <greg@greg.rim.or.jp>
#
# $FreeBSD$
#

PORTNAME=	cqcam
PORTVERSION=	0.91
PORTREVISION=	7
CATEGORIES=	graphics
MASTER_SITES=	http://www.cs.duke.edu/~reynolds/cqcam/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Color Quickcam control program

LIB_DEPENDS=	jpeg.10:${PORTSDIR}/graphics/jpeg

ONLY_FOR_ARCHS=	i386

USE_XORG=	x11
USE_GNOME=	gtk12
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
INSTALL_TARGET=	bininstall
SUB_FILES=	pkg-message

MAN1=		cqcam.1
MLINKS=		cqcam.1 webcam.1 \
		cqcam.1 xcqcam.1

MYPORTDOCS=	README docs/APINOTES docs/CHANGES docs/README.webcam \
		docs/refresh.html docs/webcam.html docs/README.movies

post-install:
.for file in cqcam gtkcam webcam xcqcam
	@${STRIP_CMD} ${PREFIX}/bin/${file}
.endfor
	${INSTALL_MAN} ${WRKSRC}/docs/cqcam.1 ${MANPREFIX}/man/man1
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/.cqcrc ${EXAMPLESDIR}/sample.cqcrc
	${INSTALL_DATA} ${WRKSRC}/webcam/nph-webcam ${EXAMPLESDIR}/sample.nph-webcam
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in ${MYPORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>