2010-05-08 18:04:05 +02:00
|
|
|
# $NetBSD: options.mk,v 1.8 2010/05/08 16:04:05 drochner Exp $
|
2006-01-24 06:33:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.transcode
|
2009-07-07 18:38:29 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= a52 freetype2 mjpegtools lzo libxml2
|
2010-05-08 18:04:05 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS+= dv imagemagick x264 faac
|
2006-01-24 06:33:21 +01:00
|
|
|
|
2009-07-07 18:38:29 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= a52 freetype2 mjpegtools libxml2
|
2009-11-15 19:09:35 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS+= imagemagick x264
|
2006-01-24 06:33:21 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
|
|
|
|
|
2006-01-24 06:33:21 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Ma52)
|
|
|
|
. include "../../audio/liba52/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-a52
|
|
|
|
CONFIGURE_ARGS+= --enable-a52-default-decoder
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.a52= yes
|
2006-01-24 06:33:21 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-a52
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mfreetype2)
|
|
|
|
. include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-freetype2
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.freetype2= yes
|
2006-01-24 06:33:21 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-freetype2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmjpegtools)
|
|
|
|
. include "../../multimedia/mjpegtools/buildlink3.mk"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.mjpegtools= yes
|
2006-01-24 06:33:21 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-mjpegtools
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mjpegtools
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mlzo)
|
|
|
|
. include "../../archivers/lzo/buildlink3.mk"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.lzo= yes
|
2006-01-24 06:33:21 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-lzo
|
2008-02-20 13:14:53 +01:00
|
|
|
CONFIGURE_ARGS+= --with-lzo-prefix=${BUILDLINK_PREFIX.lzo}
|
2006-01-24 06:33:21 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-lzo
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mlibxml2)
|
|
|
|
. include "../../textproc/libxml2/buildlink3.mk"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.libxml2= yes
|
2006-01-24 06:33:21 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-libxml2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libxml2
|
|
|
|
.endif
|
|
|
|
|
2006-01-25 09:53:34 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdv)
|
2006-01-24 06:33:21 +01:00
|
|
|
. include "../../multimedia/libdv/buildlink3.mk"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.dv= yes
|
2006-01-24 06:33:21 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-libdv
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libdv
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mimagemagick)
|
|
|
|
. include "../../graphics/ImageMagick/buildlink3.mk"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.imagemagick= yes
|
2006-01-24 06:33:21 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-imagemagick
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-imagemagick
|
|
|
|
.endif
|
2009-11-15 19:09:35 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mx264)
|
|
|
|
. include "../../multimedia/x264-devel/buildlink3.mk"
|
|
|
|
PLIST.x264= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-x264
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=
|
|
|
|
CONFIGURE_ARGS+= --disable-x264
|
|
|
|
.endif
|
2010-05-08 18:04:05 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mfaac)
|
|
|
|
. include "../../audio/faac/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-faac
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-faac
|
|
|
|
.endif
|