pkgsrc-wip/linphone/options.mk
Thomas Klausner 076ac93325 Use options.mk file instead of having the same code in the Makefile.
Change defaults in options.mk to the ones from the Makefile.
Fix a bug.

Add a TODO file noting where compilation stops for me.
2009-02-15 16:16:33 +00:00

32 lines
870 B
Makefile

# $NetBSD: options.mk,v 1.2 2009/02/15 16:16:33 thomasklausner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.linphone
PKG_SUPPORTED_OPTIONS= alsa inet6 linphone-gui linphone-video
PKG_SUGGESTED_OPTIONS= linphone-gui linphone-video
.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
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/ffmpeg/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.endif