2010-11-22 04:30:38 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2010/11/22 09:30:38 espie Exp $
|
2004-07-09 07:58:39 -04:00
|
|
|
|
2007-09-15 23:24:28 -04:00
|
|
|
COMMENT= tools to edit/modify/encode video streams
|
2004-07-09 07:58:39 -04:00
|
|
|
|
2008-01-25 21:10:26 -05:00
|
|
|
DISTNAME= mjpegtools-1.9.0rc3
|
2010-10-11 04:11:24 -04:00
|
|
|
REVISION= 6
|
2004-07-09 07:58:39 -04:00
|
|
|
CATEGORIES= multimedia
|
2008-01-25 21:10:26 -05:00
|
|
|
SHARED_LIBS= lavfile 4.0 \
|
|
|
|
lavfile-1.9 4.0 \
|
|
|
|
lavjpeg 4.0 \
|
|
|
|
lavjpeg-1.9 4.0 \
|
|
|
|
lavplay 4.0 \
|
|
|
|
lavplay-1.9 4.0 \
|
|
|
|
mjpegutils 4.0 \
|
|
|
|
mjpegutils-1.9 4.0 \
|
|
|
|
mpeg2encpp 5.0 \
|
|
|
|
mpeg2encpp-1.9 5.0 \
|
|
|
|
mplex2 5.0 \
|
|
|
|
mplex2-1.9 5.0
|
2004-07-09 07:58:39 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://mjpeg.sourceforge.net/
|
|
|
|
|
2009-01-29 19:41:24 -05:00
|
|
|
# GPLv2+
|
2004-07-09 07:58:39 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mjpeg/}
|
|
|
|
|
2008-01-25 21:10:26 -05:00
|
|
|
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \
|
2008-11-06 20:15:01 -05:00
|
|
|
Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo \
|
2010-10-11 04:11:24 -04:00
|
|
|
expat fontconfig freetype gio-2.0 glib-2.0 \
|
2009-01-29 19:41:24 -05:00
|
|
|
gmodule-2.0 gobject-2.0 m pango-1.0 pangocairo-1.0 \
|
2009-08-10 02:29:51 -04:00
|
|
|
pangoft2-1.0 pcre pthread pthread-stubs pixman-1 \
|
2010-08-25 16:45:52 -04:00
|
|
|
sndio stdc++ usbhid xcb z gthread-2.0 xcb-render \
|
|
|
|
xcb-render-util SDL dv jpeg png gdk-x11-2.0 \
|
|
|
|
gdk_pixbuf-2.0 gtk-x11-2.0
|
2006-02-03 00:08:41 -05:00
|
|
|
|
|
|
|
MODULES+= devel/gettext
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS= sdl-*-!no_x11:devel/sdl \
|
|
|
|
multimedia/libdv \
|
|
|
|
graphics/jpeg \
|
|
|
|
graphics/png \
|
|
|
|
x11/gtk+2 \
|
2004-07-09 07:58:39 -04:00
|
|
|
|
2006-01-09 21:23:37 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2010-11-11 06:19:10 -05:00
|
|
|
USE_GROFF = Yes
|
2008-01-25 21:10:26 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2006-02-03 00:08:41 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2009-03-04 15:21:57 -05:00
|
|
|
--with-x \
|
|
|
|
--with-libpng \
|
|
|
|
--with-libdv
|
2004-07-09 07:58:39 -04:00
|
|
|
|
2008-01-25 21:10:26 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
2006-02-03 00:08:41 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2006-12-22 11:30:17 -05:00
|
|
|
PKG_CONFIG="/usr/bin/pkg-config"
|
2004-07-09 07:58:39 -04:00
|
|
|
|
|
|
|
FLAVORS= quicktime optimized
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Moptimized}
|
|
|
|
CONFIGURE_ARGS+= --enable-simd-accel
|
|
|
|
.else
|
2006-02-03 00:08:41 -05:00
|
|
|
CONFIGURE_ARGS+= --disable-simd-accel
|
2004-07-09 07:58:39 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mquicktime}
|
2010-11-22 04:30:38 -05:00
|
|
|
LIB_DEPENDS += multimedia/libquicktime
|
|
|
|
WANTLIB += quicktime>=2 GL
|
2010-11-11 06:19:10 -05:00
|
|
|
CONFIGURE_ARGS += --with-libquicktime
|
2004-07-09 07:58:39 -04:00
|
|
|
.else
|
2010-11-11 06:19:10 -05:00
|
|
|
CONFIGURE_ARGS += --without-libquicktime
|
2004-07-09 07:58:39 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|