diff --git a/pkgsrc/Makefile b/pkgsrc/Makefile index 2b1ebc75..5ba80649 100644 --- a/pkgsrc/Makefile +++ b/pkgsrc/Makefile @@ -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 diff --git a/pkgsrc/PLIST b/pkgsrc/PLIST index c4781dec..6fd60767 100644 --- a/pkgsrc/PLIST +++ b/pkgsrc/PLIST @@ -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 diff --git a/programs/dtchat/Makefile.am b/programs/dtchat/Makefile.am index de6769aa..8a46b93a 100644 --- a/programs/dtchat/Makefile.am +++ b/programs/dtchat/Makefile.am @@ -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