| 1 | NAME = mcabber |
|---|
| 2 | VERSION = 0.9.9 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = A small terminal-based Jabber client |
|---|
| 6 | define BLURB |
|---|
| 7 | mcabber is a small Jabber console client. mcabber includes features such as |
|---|
| 8 | SSL support, MUC (Multi-User Chat) support, history logging, command |
|---|
| 9 | completion, OpenPGP encryption, OTR (Off-the-Record Messaging) support and |
|---|
| 10 | external action triggers. |
|---|
| 11 | endef |
|---|
| 12 | |
|---|
| 13 | MASTER_SITES = http://www.lilotux.net/~mikael/mcabber/files/ |
|---|
| 14 | DISTFILES = $(NAME)-$(VERSION).tar.bz2 |
|---|
| 15 | SPKG_SOURCEURL = http://www.lilotux.net/~mikael/mcabber/ |
|---|
| 16 | |
|---|
| 17 | # Please note: CSWotr-dev at this point refers to a more recent version |
|---|
| 18 | # than mcabber 0.9 supports. |
|---|
| 19 | # It will be needed to upgrade it to 0.10 |
|---|
| 20 | BUILD_DEP_PKGS = CSWlibncurses-dev CSWlibssl-dev CSWotr-dev |
|---|
| 21 | BUILD_DEP_PKGS += CSWaspell CSWggettext CSWlibglib2-dev CSWpkgconfig |
|---|
| 22 | BUILD_DEP_PKGS += CSWlibgpg-error-dev CSWgpgme CSWlibiconv-dev |
|---|
| 23 | |
|---|
| 24 | RUNTIME_DEP_PKGS = CSWlibncursesw5 CSWlibssl1-0-0 CSWlibotr2 |
|---|
| 25 | RUNTIME_DEP_PKGS += CSWlibaspell15 CSWlibglib2-0-0 |
|---|
| 26 | RUNTIME_DEP_PKGS += CSWlibintl8 CSWlibpanelw5 CSWgpgme |
|---|
| 27 | # Don't know yet why but this dependency is only picked under sparc |
|---|
| 28 | RUNTIME_DEP_PKGS += $(RUNTIME_DEP_PKGS_$(GARCH)) |
|---|
| 29 | RUNTIME_DEP_PKGS_sparc = CSWlibgpg-error0 |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | TEST_SCRIPTS = |
|---|
| 34 | |
|---|
| 35 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 36 | CONFIGURE_ARGS += --with-openssl=/opt/csw/include |
|---|
| 37 | CONFIGURE_ARGS += --enable-otr |
|---|
| 38 | CONFIGURE_ARGS += --enable-aspell |
|---|
| 39 | CONFIGURE_ARGS += --enable-sigwinch |
|---|
| 40 | |
|---|
| 41 | # mcabber is geared towards gcc and heavily uses inline functions without |
|---|
| 42 | # static/extern storage qualifiers. Sun Studio needs to emulate gcc |
|---|
| 43 | # behaviour with regards to these inline functions. |
|---|
| 44 | # |
|---|
| 45 | # For details see http://blogs.sun.com/dew/entry/c99_inline_function |
|---|
| 46 | # |
|---|
| 47 | EXTRA_CFLAGS = -features=no%extinl |
|---|
| 48 | |
|---|
| 49 | EXTRA_LDFLAGS = -lsocket -lnsl |
|---|
| 50 | EXTRA_INC = /opt/csw/lib/ncursesw |
|---|
| 51 | |
|---|
| 52 | # Get rid of inline functions which are referenced externally (no%extinl |
|---|
| 53 | # makes inline functions static and would break linking otherwise) |
|---|
| 54 | PATCHFILES = patch-inline.diff |
|---|
| 55 | |
|---|
| 56 | # Solaris 8 doesn't have iswlbank(), provide replacement macro |
|---|
| 57 | PATCHFILES += patch-iswblank.diff |
|---|
| 58 | |
|---|
| 59 | include gar/category.mk |
|---|
| 60 | |
|---|
| 61 | pre-build-modulated: |
|---|
| 62 | @perl -pi -e 's|#! /bin/sh|#!/bin/bash|' $(WORKSRC)/hgcset.sh |
|---|
| 63 | @perl -pi -e 's|-O2||' \ |
|---|
| 64 | $(WORKSRC)/Makefile \ |
|---|
| 65 | $(WORKSRC)/src/Makefile \ |
|---|
| 66 | $(WORKSRC)/libjabber/Makefile |
|---|
| 67 | @$(MAKECOOKIE) |
|---|
| 68 | |
|---|
| 69 | post-install-modulated: |
|---|
| 70 | @perl -pi -e '\ |
|---|
| 71 | s|/usr/share/ssl/certs/ca-bundle.crt|/opt/csw/ssl/certs/ca-certificates.crt|;' \ |
|---|
| 72 | $(WORKSRC)/mcabberrc.example |
|---|
| 73 | @ginstall -d $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 74 | @cp $(WORKSRC)/mcabberrc.example $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 75 | @cp $(WORKSRC)/ChangeLog $(DESTDIR)$(docdir)/$(NAME)/changelog |
|---|
| 76 | @$(MAKECOOKIE) |
|---|