Changeset e506d6c


Ignore:
Timestamp:
2006-03-02T11:38:33Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
1e5fcac
Parents:
9a1555d
Message:

Install bitlbee's header files and a pkg-config file. This means
that 3rd-parties can write support for additional protocols in BitlBee.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r9a1555d re506d6c  
    1111# Program variables
    1212objects = account.o bitlbee.o conf.o crypting.o help.o ini.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_text.o unix.o url.o user.o util.o
     13headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ini.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h url.h user.h protocols/http_client.h protocols/md5.h protocols/nogaim.h protocols/proxy.h protocols/sha.h protocols/ssl_client.h
    1314subdirs = protocols
    1415
     
    2021        $(MAKE) -C doc
    2122
    22 uninstall: uninstall-bin uninstall-doc
     23uninstall: uninstall-bin uninstall-doc uninstall-header uninstall-pc
    2324        @echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n'
    2425
    25 install: install-bin install-doc
     26install: install-bin install-doc install-header install-pc
    2627        @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi
    2728        @if ! [ -e $(DESTDIR)$(ETCDIR)/bitlbee.conf ]; then echo -e '\nNo files are installed in '$(DESTDIR)$(ETCDIR)' by make install. Run make install-etc to do that.'; fi
     
    5657uninstall-bin:
    5758        rm -f $(DESTDIR)$(BINDIR)/$(OUTFILE)
     59
     60install-header:
     61        mkdir -p $(DESTDIR)$(INCLUDEDIR)
     62        install -m 0644 $(headers) $(DESTDIR)$(INCLUDEDIR)
     63
     64uninstall-header:
     65        rm -f $(foreach hdr,$(headers),$(DESTDIR)$(INCLUDEDIR)/$(hdr))
     66        -rmdir $(DESTDIR)$(INCLUDEDIR)
     67
     68install-pc:
     69        mkdir -p $(DESTDIR)$(PCDIR)
     70        install -m 0644 bitlbee.pc $(DESTDIR)$(PCDIR)
     71
     72uninstall-pc:
     73        rm -f $(DESTDIR)$(PCDIR)/bitlbee.pc
    5874
    5975install-etc:
  • bitlbee.h

    r9a1555d re506d6c  
    102102#include "storage.h"
    103103#include "set.h"
    104 #include "protocols/nogaim.h"
     104#include "nogaim.h"
    105105#include "commands.h"
    106106#include "account.h"
  • configure

    r9a1555d re506d6c  
    1717ipcsocket='/var/run/bitlbee'
    1818plugindir='$prefix/lib/bitlbee'
     19pcdir='$prefix/lib/pkgconfig'
     20includedir='$prefix/include/bitlbee'
    1921
    2022msn=1
     
    8082pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'`
    8183ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'`
     84includedir=`eval echo "$includedir" | sed 's/\/\{1,\}/\//g'`
     85pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`
    8286
    8387cat<<EOF>Makefile.settings
     
    9195CONFIG=$config
    9296IPCSOCKET=$ipcsocket
     97INCLUDEDIR=$includedir
     98PCDIR=$pcdir
    9399
    94100ARCH=$arch
     
    311317fi
    312318
     319cat <<EOF>bitlbee.pc
     320prefix=$prefix
     321includedir=$includedir
     322
     323Name: bitlbee
     324Description: IRC to IM gateway
     325Requires: glib-2.0
     326Version: $BITLBEE_VERSION
     327Libs:
     328Cflags: -I\${includedir}
     329
     330EOF
     331
    313332protocols=''
    314333protoobjs=''
  • doc/example_plugin.c

    r9a1555d re506d6c  
    33 * a shared library and place it in the plugin directory:
    44 *
    5  * gcc -o example.so -shared example.c
     5 * gcc -o example.so -shared example.c `pkg-config --cflags bitlbee`
    66 * cp example.so /usr/local/lib/bitlbee
    77 */
    88#include <stdio.h>
     9#include <bitlbee.h>
    910
    1011void init_plugin(void)
Note: See TracChangeset for help on using the changeset viewer.