Changeset 0075527


Ignore:
Timestamp:
2013-03-17T13:38:14Z (11 years ago)
Author:
Nick Murdoch <nick@…>
Children:
0147ca9
Parents:
9b2a8c1
Message:

Add existing git project files, and modify bitlbee's build script to build the plugin.

Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9b2a8c1 r0075527  
    2727subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
    2828
    29 all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) doc systemd
     29all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) $(PYTHON_PI) doc systemd
    3030ifdef SKYPE_PI
    3131        $(MAKE) -C protocols/skype doc
     
    5757ifdef SKYPE_PI
    5858        $(MAKE) -C protocols/skype clean
     59endif
     60ifdef PYTHON_PI
     61        $(MAKE) -C protocols/python clean
    5962endif
    6063
     
    118121        -rmdir $(DESTDIR)$(ETCDIR)
    119122
    120 install-plugins: install-plugin-otr install-plugin-skype
     123install-plugins: install-plugin-otr install-plugin-skype install-plugin-python
    121124
    122125install-plugin-otr:
     
    135138        install -m 0755 $(_SRCDIR_)protocols/skype/skyped.py $(DESTDIR)$(BINDIR)/skyped
    136139        make -C protocols/skype install-doc
     140endif
     141
     142install-plugin-python:
     143ifdef PYTHON_PI
     144        mkdir -p $(DESTDIR)$(PLUGINDIR)
     145        install -m 0755 bpython.so $(DESTDIR)$(PLUGINDIR)
    137146endif
    138147
     
    170179$(SKYPE_PI): $(_SRCDIR_)protocols/skype/skype.c
    171180        @echo '*' Building plugin skype
    172         @$(CC) $(CFLAGS) $(SKYPEFLAGS) $< -o $@
     181        $(CC) $(CFLAGS) $(SKYPEFLAGS) $< -o $@
     182
     183$(PYTHON_PI): $(_SRCDIR_)protocols/python/src/bpython.c
     184        @echo '*' Building plugin python
     185        $(CC) $(CFLAGS) $(PYTHONCFLAGS) $< -o $@ $(EFLAGS) $(PYTHONLDFLAGS)
    173186
    174187$(objects): %.o: $(_SRCDIR_)%.c
  • configure

    r9b2a8c1 r0075527  
    3737otr=0
    3838skype=0
     39python=0
    3940
    4041events=glib
     
    8990--skype=0/1/plugin
    9091                Disable/enable Skype support            $skype
     92--python=0/1/plugin
     93                Disable/enable Python support           $skype
    9194
    9295--events=...    Event handler (glib, libevent)          $events
     
    554557        fi
    555558        echo 'SKYPE_PI=skype.so' >> Makefile.settings
    556         protocols_mods="$protocol_mods skype(plugin)"
     559        protocols_mods="$protocols_mods skype(plugin)"
     560fi
     561
     562if [ "$python" = "1" -o "$python" = "plugin" ]; then
     563        echo "PYTHONCFLAGS=-fPIC -shared $(python-config --cflags)" >> Makefile.settings
     564        echo "PYTHONLDFLAGS=$(python-config --ldflags)" >> Makefile.settings
     565        echo 'PYTHON_PI=bpython.so' >> Makefile.settings
     566        protocols_mods="$protocols_mods python(plugin)"
    557567fi
    558568
Note: See TracChangeset for help on using the changeset viewer.