42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $NetBSD: options.mk,v 1.6 2014/08/11 23:10:13 thomasklausner Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.linphone
|
|
PKG_SUPPORTED_OPTIONS= alsa inet6 linphone-gui linphone-video gsm
|
|
PKG_SUGGESTED_OPTIONS= inet6 linphone-gui linphone-video gsm
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Malsa)
|
|
CONFIGURE_ARGS+= --enable-alsa
|
|
.endif
|
|
|
|
.if empty(PKG_OPTIONS:Mlinphone-gui)
|
|
CONFIGURE_ARGS+= --enable-gnome_ui=no
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
.include "../../devel/libglade/buildlink3.mk"
|
|
PLIST_SUBST+= GUI="@comment "
|
|
.else
|
|
PLIST_SUBST+= GUI=
|
|
CONFIGURE_ARGS+= --enable-gnome_ui=yes
|
|
.include "../../x11/gnome-panel/buildlink3.mk"
|
|
.endif
|
|
|
|
.if empty(PKG_OPTIONS:Mlinphone-gui) || empty(PKG_OPTIONS:Mlinphone-video)
|
|
CONFIGURE_ARGS+= --enable-video=no
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-video=yes
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
.include "../../multimedia/ffmpeg1/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgsm)
|
|
.include "../../audio/gsm/buildlink3.mk"
|
|
SUBST_CLASSES+= gsm
|
|
SUBST_STAGE.gsm= post-patch
|
|
SUBST_FILES.gsm= mediastreamer2/src/gsm.c mediastreamer2/configure
|
|
SUBST_SED.gsm= -e 's,gsm/gsm.h,gsm.h,g'
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.endif
|