2012-12-31 11:49:52 +01:00
|
|
|
# Created by: ijliao
|
2002-07-18 10:07:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libquicktime
|
2012-04-05 13:33:58 +02:00
|
|
|
PORTVERSION= 1.2.4
|
2013-10-07 11:21:13 +02:00
|
|
|
PORTREVISION?= 5
|
2003-04-04 03:38:40 +02:00
|
|
|
CATEGORIES= multimedia
|
2009-09-02 17:01:56 +02:00
|
|
|
MASTER_SITES= SF
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2013-09-20 23:49:30 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-10-19 18:43:32 +02:00
|
|
|
COMMENT= library for reading and writing quicktime files
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2009-08-11 17:19:26 +02:00
|
|
|
.if !defined(_BUILDING_LIBQUICKTIME_PLUGINS)
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
2009-08-11 17:19:26 +02:00
|
|
|
.endif
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2011-03-23 16:53:22 +01:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2006-12-09 03:31:59 +01:00
|
|
|
USE_LDCONFIG= yes
|
2013-10-19 18:43:32 +02:00
|
|
|
USES= gmake pathfix pkgconfig gettext
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2009-12-31 10:41:03 +01:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl
|
2009-12-31 10:41:03 +01:00
|
|
|
|
2004-02-10 16:43:43 +01:00
|
|
|
CFLAGS+= -fPIC
|
2009-08-11 17:19:26 +02:00
|
|
|
.if !defined(_BUILDING_LIBQUICKTIME_PLUGINS)
|
|
|
|
USE_XORG= xaw xv
|
2011-01-02 02:38:06 +01:00
|
|
|
CONFIGURE_ARGS= --with-x --enable-gpl --without-doxygen --without-lame
|
2007-01-03 05:47:53 +01:00
|
|
|
MAN1= lqtplay.1
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
OPTIONS_DEFINE= ALSA DV FAAC FAAD FFMPEG GTK2 JPEG OPENGL OPTIMIZED_CFLAGS PNG \
|
|
|
|
SCHROEDINGER X264 DOCS
|
|
|
|
OPTIONS_DEFAULT= FFMPEG JPEG OPENGL PNG SCHROEDINGER X264
|
2013-10-19 18:43:32 +02:00
|
|
|
OPTIONS_SUB= yes
|
2005-05-15 20:31:03 +02:00
|
|
|
|
|
|
|
PORTDOCS= api_usage.html codecs.html qt4l_building.html \
|
2007-05-25 17:47:41 +02:00
|
|
|
qt4l_codecs.html qt4l_index.html \
|
2005-05-15 20:31:03 +02:00
|
|
|
qt4l_license.html qt4l_opening.html qt4l_positioning.html \
|
|
|
|
qt4l_reading.html qt4l_util.html qt4l_writing.html
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2009-08-11 17:19:26 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x --enable-gpl --without-doxygen
|
2012-12-31 11:49:52 +01:00
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
2009-08-11 17:19:26 +02:00
|
|
|
.endif
|
|
|
|
|
2013-09-20 22:57:48 +02:00
|
|
|
NO_STAGE= yes
|
2012-12-31 11:49:52 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2002-08-10 19:08:46 +02:00
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --without-cpuflags
|
2007-01-03 05:47:53 +01:00
|
|
|
.endif
|
|
|
|
|
2009-08-11 17:19:26 +02:00
|
|
|
.if !defined(_BUILDING_LIBQUICKTIME_PLUGINS)
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
2005-05-15 20:31:03 +02:00
|
|
|
USE_GNOME+= gtk20
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gtk
|
2005-01-25 23:32:35 +01:00
|
|
|
.else
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --without-gtk
|
2005-01-25 23:32:35 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
|
2011-01-02 02:38:06 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-alsa
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
2008-02-29 15:45:00 +01:00
|
|
|
USE_GL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-opengl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-opengl
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MDV}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libdv.so:${PORTSDIR}/multimedia/libdv
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libdv
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libdv
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MJPEG}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libjpeg.so:${PORTSDIR}/graphics/jpeg
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libjpeg
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libjpeg
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MPNG}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libpng
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libpng
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MFFMPEG}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ffmpeg
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ffmpeg
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MFAAC}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libfaac.so:${PORTSDIR}/audio/faac
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-faac
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-faac
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MFAAD}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libfaad.so:${PORTSDIR}/audio/faad
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-faad2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-faad2
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MX264}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libx264.so:${PORTSDIR}/multimedia/x264
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-x264
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x264
|
2005-01-20 06:42:26 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MSCHROEDINGER}
|
2013-10-19 18:43:32 +02:00
|
|
|
LIB_DEPENDS+= libschroedinger-1.0.so:${PORTSDIR}/multimedia/schroedinger
|
2009-08-11 13:26:10 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-schroedinger
|
|
|
|
.endif
|
|
|
|
|
2009-08-11 17:19:26 +02:00
|
|
|
.endif
|
|
|
|
|
2010-12-22 21:05:49 +01:00
|
|
|
AUTOTOOLSFILES= aclocal.m4
|
|
|
|
|
2007-01-03 05:47:53 +01:00
|
|
|
post-patch:
|
2010-12-22 21:05:49 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|2.64|%%AUTOCONF_VERSION%%|g' ${WRKSRC}/aclocal.m4
|
2004-07-27 03:04:21 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
|
|
|
|
${WRKSRC}/plugins/audiocodec/* \
|
|
|
|
${WRKSRC}/plugins/videocodec/*
|
2013-10-19 18:43:32 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|objformat=aout|objformat=elf|g' ${WRKSRC}/configure
|
2007-12-17 22:08:50 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-DG.*_DISABLE_DEPRECATED||g' \
|
|
|
|
${WRKSRC}/configure*
|
2004-07-27 03:04:21 +02:00
|
|
|
|
2008-02-29 15:45:00 +01:00
|
|
|
pre-configure:
|
|
|
|
@${CHMOD} +x ${WRKSRC}/configure
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS} && !defined(_BUILDING_LIBQUICKTIME_PLUGINS)
|
2008-02-29 15:45:00 +01:00
|
|
|
post-install:
|
2004-07-27 03:04:21 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-05-15 20:31:03 +02:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
2004-07-27 03:04:21 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2012-12-31 11:49:52 +01:00
|
|
|
.include <bsd.port.mk>
|