2009-07-07 18:38:29 +02:00
|
|
|
# $NetBSD: options.mk,v 1.6 2009/07/07 16:38:29 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
|
2008-02-20 11:20:04 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS+= dv imagemagick
|
2006-01-24 06:33:21 +01:00
|
|
|
|
2009-07-07 18:38:29 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= a52 freetype2 mjpegtools libxml2
|
2008-02-20 11:20:04 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS+= imagemagick
|
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
|