29056cb17e
from js
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# $NetBSD: options.mk,v 1.10 2019/09/15 22:15:02 maya Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.easytag
|
|
PKG_SUPPORTED_OPTIONS= doc flac manual ogg opus speex wavpack
|
|
PKG_SUGGESTED_OPTIONS= doc flac manual ogg opus speex wavpack
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
|
DEPENDS+= yelp-[0-9]*:../../misc/yelp3
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mflac)
|
|
. include "../../audio/flac/buildlink3.mk"
|
|
. include "../../audio/libvorbis/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-flac
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-flac
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmanual)
|
|
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
|
|
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
|
|
CONFIGURE_ARGS+= --with-xml-catalog=${PKG_SYSCONFDIR}/xml/catalog
|
|
CONFIGURE_ARGS+= --enable-man
|
|
PLIST.man= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-man
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mogg)
|
|
. include "../../audio/libvorbis/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-ogg
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ogg
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mopus)
|
|
. include "../../audio/libopus/buildlink3.mk"
|
|
. include "../../audio/opusfile/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-opus
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-opus
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mspeex)
|
|
. include "../../audio/speex/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-speex
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-speex
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mwavpack)
|
|
. include "../../audio/wavpack/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-wavpack
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-wavpack
|
|
.endif
|