mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
54bbacafe6
- Update Mk/bsd.sdl.mk for the new shared lib version - Bump portrevisions for all ports depending on graphics/sdl_gfx
122 lines
3.2 KiB
Makefile
122 lines
3.2 KiB
Makefile
# New ports collection makefile for: mjpegtools
|
|
# Date created: Wed May 29 21:12:38 UTC 2002
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mjpegtools
|
|
PORTVERSION= 2.0.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF/${PORTNAME:S/tools//}/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
|
COMMENT= Set of tools to record/playback/edit videos in MPEG format
|
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
|
|
|
|
OPTIONS= GTK2 "Build GTK+2 player (needs SDL)" on \
|
|
SDL "Enable SDL support" on \
|
|
PNG "Enable libPNG support" on \
|
|
DV "Enable libDV support" off \
|
|
QUICKTIME "Enable libQuickTime support" off \
|
|
SIMD "Use cpu-specific optimizations if possible" off
|
|
|
|
CONFLICTS= mplex-[0-9]*
|
|
|
|
USE_GNOME= gnomehack
|
|
WANT_GNOME= yes
|
|
WANT_SDL= yes
|
|
USE_GMAKE= yes
|
|
USE_AUTOTOOLS= libtool
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" \
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
|
|
CONFIGURE_ARGS= --without-x
|
|
USE_LDCONFIG= yes
|
|
|
|
MAN1= jpeg2yuv.1 lav2mpeg.1 lav2wav.1 lav2yuv.1 lavpipe.1 lavplay.1 \
|
|
lavrec.1 lavtrans.1 mjpegtools.1 mp2enc.1 mpeg2enc.1 mplex.1 \
|
|
pgmtoy4m.1 png2yuv.1 pnmtoy4m.1 ppmtoy4m.1 y4mcolorbars.1 \
|
|
y4mdenoise.1 y4munsharp.1 y4mtopnm.1 y4mtoppm.1 yuv2lav.1 \
|
|
yuvdenoise.1 yuvfps.1 yuvinactive.1 yuvkineco.1 \
|
|
yuvmedianfilter.1 yuvplay.1 yuvscaler.1 yuvycsnoise.1
|
|
MAN5= yuv4mpeg.5
|
|
INFO= mjpeg-howto
|
|
|
|
DOC_FILES= AUTHORS BUGS CHANGES ChangeLog HINTS NEWS PLANS README \
|
|
README.DV README.avilib README.glav README.AltiVec \
|
|
README.lavpipe README.transist TODO
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_GTK2) && defined(WITHOUT_SDL)
|
|
IGNORE= GTK+2 player needs SDL
|
|
.endif # GTK2/SDL
|
|
|
|
.if defined(WITHOUT_GTK2)
|
|
PLIST_SUB+= GTK2:="@comment "
|
|
_HAVE_GTK= false
|
|
.else
|
|
USE_GNOME+= gtk20
|
|
PLIST_SUB+= GTK2:=""
|
|
_HAVE_GTK= true
|
|
.endif # GTK2
|
|
|
|
.if defined(WITHOUT_SDL)
|
|
CONFIGURE_ENV+= ac_cv_path_SDL_CONFIG=no
|
|
PLIST_SUB+= SDL:="@comment "
|
|
.else
|
|
USE_SDL+= gfx sdl
|
|
PLIST_SUB+= SDL:=""
|
|
.endif # SDL
|
|
|
|
.if defined(WITHOUT_PNG)
|
|
CONFIGURE_ARGS+=--without-libpng
|
|
PLIST_SUB+= PNG:="@comment "
|
|
.else
|
|
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
|
|
CONFIGURE_ARGS+=--with-libpng
|
|
PLIST_SUB+= PNG:=""
|
|
.endif # PNG
|
|
|
|
.if defined(WITH_DV)
|
|
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv
|
|
CONFIGURE_ARGS+=--with-libdv
|
|
.else
|
|
CONFIGURE_ARGS+=--without-libdv
|
|
.endif # DV
|
|
|
|
.if defined(WITH_QUICKTIME)
|
|
LIB_DEPENDS+= quicktime.0:${PORTSDIR}/multimedia/libquicktime
|
|
CONFIGURE_ARGS+=--with-libquicktime
|
|
.else
|
|
CONFIGURE_ARGS+=--without-libquicktime
|
|
.endif # QUICKTIME
|
|
|
|
.if defined(WITH_SIMD)
|
|
CONFIGURE_ARGS+=--enable-simd-accel
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-simd-accel
|
|
.endif # SIMD
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|have_gtk="true"|have_gtk="${_HAVE_GTK}"|g ; \
|
|
/^CFLAGS=/s|$$ARCHFLAGS||g ; \
|
|
/^CXXFLAGS=/s|$$ARCHFLAGS||g' ${WRKSRC}/configure
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in ${DOC_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif # NOPORTDOCS
|
|
|
|
.include <bsd.port.post.mk>
|