summaryrefslogtreecommitdiff
path: root/audio/lame/options.mk
blob: 5b17062c68b702873f9ae1aa51f52248f4d26702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $NetBSD: options.mk,v 1.5 2010/11/07 15:27:26 shattered Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.lame
PKG_SUPPORTED_OPTIONS=	gtk sndfile unicode

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		gtk

.if !empty(PKG_OPTIONS:Mgtk)
CONFIGURE_ENV+=		GTK_CONFIG=${BUILDLINK_PREFIX.gtk}/bin/gtk-config
CONFIGURE_ARGS+=	--enable-mp3x
PLIST.gtk=		yes
.  include "../../x11/gtk/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Msndfile)
CONFIGURE_ARGS+=	--with-fileio=sndfile
CONFIGURE_ARGS+=	--with-sndfile-prefix=${BUILDLINK_PREFIX.libsndfile}
USE_TOOLS+=		pkg-config
.  include "../../audio/libsndfile/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Municode)
CFLAGS+=		-DHAVE_ICONV
.  include "../../converters/libiconv/buildlink3.mk"
.endif

# doesn't work
#.if !empty(PKG_OPTIONS:Mvorbis)
#CONFIGURE_ARGS+=	--with-vorbis
#CONFIGURE_ARGS+=	--with-vorbis-prefix=${BUILDLINK_PREFIX.libvorbis}
#.  include "../../audio/libvorbis/buildlink3.mk"
#.else
#CONFIGURE_ARGS+=	--without-vorbis
#.endif