mcde: install the protocol adapters next to dtchat
dtchat-telegram joins bin_PROGRAMS (always built: TDLib when available, otherwise a stub that reports the missing library); dtchat-xmpp is installed when MCDE_STROPHE built it; the Go-built dtchat-whatsapp is installed by install-exec-hook when MCDE_GO is set. The PLIST lists dtchat-telegram unconditionally and the other two behind PLIST_VARS xmpp/whatsapp (left unset in the recipe, so a target without libstrophe/Go omits them while the host build installs all three). The accounts editor's default adapter path becomes <bindir>/dtchat-<protocol> in the packaged layout. Host build and mcde-linux install/plist follow.
This commit is contained in:
1 parent
056bd30a8f
commit
5a07cc7938
3 files changed
+12
-4
No files matched your search
+1
-1
@@ -118,7 +118,7 @@ MAKE_FLAGS+= LDFLAGS=${LDFLAGS:M*:Q}
|
||||
# ToolTalk's tt_type_comp compiles the types while MCDE installs: a program of
|
||||
# the target. A cross build installs the ptype files and the system compiles
|
||||
# them (files/dtlogin.sh, before dtlogin starts); a native build does as upstream.
|
||||
PLIST_VARS+= tttypes ptypes
|
||||
PLIST_VARS+= tttypes ptypes xmpp whatsapp
|
||||
.if ${USE_CROSS_COMPILE:U:tl} == "yes"
|
||||
CONFIGURE_ARGS+= --disable-tttypes-build
|
||||
PLIST.ptypes= yes
|
||||
|
||||
@@ -2552,6 +2552,9 @@ dt/bin/dtcalc
|
||||
dt/bin/dtchat
|
||||
dt/bin/dtchat-headless
|
||||
dt/bin/dtchat-irc
|
||||
dt/bin/dtchat-telegram
|
||||
${PLIST.whatsapp}dt/bin/dtchat-whatsapp
|
||||
${PLIST.xmpp}dt/bin/dtchat-xmpp
|
||||
dt/bin/dtchooser
|
||||
dt/bin/dtcm
|
||||
dt/bin/dtcm_delete
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
bin_PROGRAMS = dtchat dtchat-headless dtchat-irc
|
||||
bin_PROGRAMS = dtchat dtchat-headless dtchat-irc dtchat-telegram
|
||||
noinst_PROGRAMS = dtchat-demo
|
||||
|
||||
man_MANS = dtchat.1
|
||||
@@ -39,7 +39,6 @@ dtchat_headless_CPPFLAGS = -I$(top_srcdir)/include \
|
||||
dtchat_headless_LDADD = $(top_builddir)/lib/libDtChat/libDtChat.la \
|
||||
$(top_builddir)/lib/libDtChat/libDtChatIpc.la $(LIBTLS) $(CRYPTOLIB)
|
||||
|
||||
noinst_PROGRAMS += dtchat-telegram
|
||||
dtchat_telegram_SOURCES = telegram_adapter.c
|
||||
dtchat_telegram_CPPFLAGS = -I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat \
|
||||
@@ -58,10 +57,16 @@ dtchat-whatsapp: $(srcdir)/whatsapp_adapter/main.go \
|
||||
GOFLAGS=-mod=mod GOSUMDB=off GOPROXY=off $(GO) build -o "$(abs_builddir)/dtchat-whatsapp" .
|
||||
clean-local:
|
||||
rm -f dtchat-whatsapp
|
||||
install-exec-hook: dtchat-whatsapp
|
||||
$(MKDIR_P) "$(DESTDIR)$(bindir)"
|
||||
$(INSTALL_PROGRAM) dtchat-whatsapp \
|
||||
"$(DESTDIR)$(bindir)/dtchat-whatsapp"
|
||||
uninstall-hook:
|
||||
rm -f "$(DESTDIR)$(bindir)/dtchat-whatsapp"
|
||||
endif
|
||||
|
||||
if MCDE_STROPHE
|
||||
noinst_PROGRAMS += dtchat-xmpp
|
||||
bin_PROGRAMS += dtchat-xmpp
|
||||
dtchat_xmpp_SOURCES = xmpp_adapter.c
|
||||
dtchat_xmpp_CPPFLAGS = -I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/lib/libDtChat -I$(top_builddir)/lib/libDtChat
|
||||
|
||||
Reference in new issue
Block a user