1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/mcabber/trunk/Makefile

Revision 20997, 2.5 KB (checked in by lblume, 7 weeks ago)

mcabber/trunk: Recipe cleanup before mothballing the package

Line 
1NAME    = mcabber
2VERSION = 0.9.9
3GARTYPE = v2
4
5DESCRIPTION = A small terminal-based Jabber client
6define BLURB
7mcabber is a small Jabber console client.  mcabber includes features such as
8SSL support, MUC (Multi-User Chat) support, history logging, command
9completion, OpenPGP encryption, OTR (Off-the-Record Messaging) support and
10external action triggers.
11endef
12
13MASTER_SITES = http://www.lilotux.net/~mikael/mcabber/files/
14DISTFILES  = $(NAME)-$(VERSION).tar.bz2
15SPKG_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
20BUILD_DEP_PKGS = CSWlibncurses-dev CSWlibssl-dev CSWotr-dev
21BUILD_DEP_PKGS += CSWaspell CSWggettext CSWlibglib2-dev CSWpkgconfig
22BUILD_DEP_PKGS += CSWlibgpg-error-dev CSWgpgme CSWlibiconv-dev
23
24RUNTIME_DEP_PKGS = CSWlibncursesw5 CSWlibssl1-0-0 CSWlibotr2
25RUNTIME_DEP_PKGS += CSWlibaspell15 CSWlibglib2-0-0
26RUNTIME_DEP_PKGS += CSWlibintl8 CSWlibpanelw5 CSWgpgme
27# Don't know yet why but this dependency is only picked under sparc
28RUNTIME_DEP_PKGS += $(RUNTIME_DEP_PKGS_$(GARCH))
29RUNTIME_DEP_PKGS_sparc = CSWlibgpg-error0
30
31
32
33TEST_SCRIPTS = 
34
35CONFIGURE_ARGS = $(DIRPATHS)
36CONFIGURE_ARGS += --with-openssl=/opt/csw/include
37CONFIGURE_ARGS += --enable-otr
38CONFIGURE_ARGS += --enable-aspell
39CONFIGURE_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#
47EXTRA_CFLAGS = -features=no%extinl
48
49EXTRA_LDFLAGS = -lsocket -lnsl
50EXTRA_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)
54PATCHFILES = patch-inline.diff
55
56# Solaris 8 doesn't have iswlbank(), provide replacement macro
57PATCHFILES += patch-iswblank.diff
58
59include gar/category.mk
60
61pre-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
69post-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)
Note: See TracBrowser for help on using the browser.