2002-07-18 10:07:32 +02:00
|
|
|
# Ports collection makefile for: libquicktime
|
|
|
|
# Date Created: Jul 17, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libquicktime
|
2009-08-11 13:26:10 +02:00
|
|
|
PORTVERSION= 1.1.3
|
2003-04-04 03:38:40 +02:00
|
|
|
CATEGORIES= multimedia
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SFE
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= A library for reading and writing quicktime files
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2008-02-29 15:45:00 +01:00
|
|
|
LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2006-12-09 03:31:59 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-01-25 23:32:35 +01:00
|
|
|
USE_GNOME= gnometarget gnomehack pkgconfig
|
2008-03-28 00:52:18 +01:00
|
|
|
USE_XORG= xaw xv
|
2003-11-16 16:08:44 +01:00
|
|
|
USE_GMAKE= yes
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl"
|
2008-07-26 18:12:44 +02:00
|
|
|
CONFIGURE_ARGS= --with-x --enable-gpl --without-doxygen
|
2004-02-10 16:43:43 +01:00
|
|
|
CFLAGS+= -fPIC
|
2007-01-03 05:47:53 +01:00
|
|
|
MAN1= lqtplay.1
|
2002-07-18 10:07:32 +02:00
|
|
|
|
2005-05-15 20:31:03 +02:00
|
|
|
OPTIONS= LAME "Enable Lame mp3 encoding support" Off \
|
2008-02-29 15:45:00 +01:00
|
|
|
OPENGL "Enable OpenGL support" On \
|
|
|
|
DV "Enable libdv support for digital cameras" On \
|
|
|
|
JPEG "Enable JPEG support" On \
|
|
|
|
PNG "Enable PNG support" On \
|
|
|
|
FFMPEG "Enable FFmpeg support" On \
|
|
|
|
FAAC "Enable FAAC support" Off \
|
|
|
|
FAAD "Enable FAAD support" On \
|
|
|
|
X264 "Enable X264 codec support" On \
|
2009-08-11 13:26:10 +02:00
|
|
|
SCHROEDINGER "Enable dirac support" On \
|
2007-01-03 05:47:53 +01:00
|
|
|
GTK2 "Enable Gtk+2 Frontend" Off \
|
|
|
|
OPTIMIZED_CFLAGS "Enable Optimized CFLAGS" Off
|
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
|
|
|
|
2003-11-16 16:08:44 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-08-10 19:08:46 +02:00
|
|
|
|
2007-01-03 05:47:53 +01:00
|
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --without-cpuflags
|
2007-01-03 05:47:53 +01:00
|
|
|
.endif
|
|
|
|
|
2007-10-30 00:53:02 +01:00
|
|
|
.if ${HAVE_GNOME:Mgtk20}!="" && defined(WITH_GTK2)
|
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
|
|
|
PLIST_SUB+= GTK=""
|
|
|
|
.else
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --without-gtk
|
2005-01-25 23:32:35 +01:00
|
|
|
PLIST_SUB+= GTK="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-02-29 15:45:00 +01:00
|
|
|
.if defined(WITH_LAME)
|
2005-01-20 06:42:26 +01:00
|
|
|
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
|
2005-01-23 04:50:49 +01:00
|
|
|
PLIST_SUB+= LAME=""
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-lame
|
2005-01-23 04:50:49 +01:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= LAME="@comment "
|
2008-02-29 15:45:00 +01:00
|
|
|
CONFIGURE_ARGS+= --without-lame
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_OPENGL)
|
|
|
|
USE_GL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-opengl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-opengl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_DV)
|
|
|
|
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv
|
|
|
|
PLIST_SUB+= DV=""
|
|
|
|
CONFIGURE_ARGS+= --with-libdv
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DV="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-libdv
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_JPEG)
|
2009-07-18 13:11:29 +02:00
|
|
|
LIB_DEPENDS+= jpeg.10:${PORTSDIR}/graphics/jpeg
|
2008-02-29 15:45:00 +01:00
|
|
|
PLIST_SUB+= JPEG=""
|
|
|
|
CONFIGURE_ARGS+= --with-libjpeg
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JPEG="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-libjpeg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_PNG)
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
|
|
|
PLIST_SUB+= PNG=""
|
|
|
|
CONFIGURE_ARGS+= --with-libpng
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PNG="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-libpng
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_FFMPEG)
|
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
|
|
|
PLIST_SUB+= FFMPEG=""
|
|
|
|
CONFIGURE_ARGS+= --with-ffmpeg
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FFMPEG="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-ffmpeg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FAAC)
|
|
|
|
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac
|
|
|
|
PLIST_SUB+= FAAC=""
|
|
|
|
CONFIGURE_ARGS+= --with-faac
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FAAC="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-faac
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_FAAD)
|
2009-02-21 16:51:15 +01:00
|
|
|
LIB_DEPENDS+= faad.2:${PORTSDIR}/audio/faad
|
2008-02-29 15:45:00 +01:00
|
|
|
PLIST_SUB+= FAAD=""
|
|
|
|
CONFIGURE_ARGS+= --with-faad2
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FAAD="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-faad2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_X264)
|
2009-03-31 15:58:18 +02:00
|
|
|
LIB_DEPENDS+= x264.65:${PORTSDIR}/multimedia/x264
|
2008-02-29 15:45:00 +01:00
|
|
|
PLIST_SUB+= X264=""
|
|
|
|
CONFIGURE_ARGS+= --with-x264
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X264="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-x264
|
2005-01-20 06:42:26 +01:00
|
|
|
.endif
|
|
|
|
|
2009-08-11 13:26:10 +02:00
|
|
|
.if !defined(WITHOUT_SCHROEDINGER)
|
|
|
|
LIB_DEPENDS+= schroedinger-1.0.2:${PORTSDIR}/multimedia/schroedinger
|
|
|
|
PLIST_SUB+= SCHROEDINGER=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SCHROEDINGER="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-schroedinger
|
|
|
|
.endif
|
|
|
|
|
2005-05-15 20:31:03 +02:00
|
|
|
.if ${MACHINE_CPU:Mmmx}
|
2003-11-16 16:08:44 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-mmx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mmx
|
|
|
|
.endif
|
2002-08-10 19:08:46 +02:00
|
|
|
|
2008-02-29 15:45:00 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2007-01-03 05:47:53 +01:00
|
|
|
post-patch:
|
2008-08-20 02:57:32 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|2.61|2.62|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/*
|
2007-02-08 05:19:04 +01:00
|
|
|
@${REINPLACE_CMD} -e '/objformat=/s|=.*|=elf|' ${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
|
|
|
|
|
2004-07-27 03:04:21 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
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
|
|
|
|
|
2003-11-16 16:08:44 +01:00
|
|
|
.include <bsd.port.post.mk>
|