2006-08-02 06:10:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2006/08/02 10:10:35 espie Exp $
|
2001-05-18 07:25:26 -04:00
|
|
|
|
2001-08-27 20:06:29 -04:00
|
|
|
DISTNAME= cqcam-0.91
|
2004-12-29 19:43:15 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2001-05-18 07:25:26 -04:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-29 20:06:33 -05:00
|
|
|
WANTLIB= c m stdc++
|
2001-05-18 07:25:26 -04:00
|
|
|
|
2001-09-09 13:56:59 -04:00
|
|
|
COMMENT= "color QuickCam control program"
|
2001-05-18 07:25:26 -04:00
|
|
|
HOMEPAGE= http://www.cs.duke.edu/~reynolds/cqcam/
|
2006-03-28 10:57:05 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
2001-05-18 07:25:26 -04:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
|
|
|
USE_X11= Yes
|
2006-08-02 06:10:35 -04:00
|
|
|
LIB_DEPENDS= jpeg.>=62::graphics/jpeg
|
2001-05-18 07:25:26 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ARGS= --enable-jpeg --enable-asm
|
|
|
|
|
2001-11-02 12:52:58 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-05-18 07:25:26 -04:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
MAKE_FLAGS= ${FAKE_FLAGS}
|
|
|
|
FAKE_FLAGS= CLIENTS="cli webcam"
|
|
|
|
.else
|
2004-11-29 20:06:33 -05:00
|
|
|
WANTLIB+= X11 Xext Xi glib gmodule iconv intl
|
2001-05-18 07:25:26 -04:00
|
|
|
USE_X11= Yes
|
2006-08-02 06:10:35 -04:00
|
|
|
LIB_DEPENDS+= gtk.>=1,gdk.>=1::x11/gtk+
|
2001-10-12 11:07:30 -04:00
|
|
|
LIB_DEPENDS+= xview,olgx::x11/xview/lib
|
|
|
|
#BUILD_DEPENDS= wish8.3::x11/tk/8.3
|
2001-05-18 07:25:26 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gtk-prefix=${LOCALBASE}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-10-12 11:07:30 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" # -L${LOCALBASE}/lib/tcl8.3"
|
|
|
|
#MAKE_FLAGS= CPPFLAGS="-I${LOCALBASE}/include/tcl8.3 \
|
|
|
|
# -I${LOCALBASE}/include/tk8.3" \
|
|
|
|
MAKE_FLAGS= ${FAKE_FLAGS}
|
2001-05-18 07:25:26 -04:00
|
|
|
FAKE_FLAGS= CLIENTS="cli gtkfe webcam xfe"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cqcam
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/README.webcam \
|
|
|
|
${PREFIX}/share/doc/cqcam/README.webcam
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cqcam
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/.cqcrc \
|
|
|
|
${PREFIX}/share/examples/cqcam/dot.cqcrc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/webcam/nph-webcam \
|
|
|
|
${PREFIX}/share/examples/cqcam/nph-webcam
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|