diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2017-05-08 11:46:17 +0200 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2017-05-08 11:46:17 +0200 |
commit | dc520b9bfbe273bf6ff8b0fd3960a2638d8539ec (patch) | |
tree | 52627e1e866f9cb6a42a30a522ecb4f36133389c /libre/xchat | |
parent | c16ac23ed8337f0843ca9e62460aa66c895685e7 (diff) | |
download | abslibre-dc520b9bfbe273bf6ff8b0fd3960a2638d8539ec.tar.gz abslibre-dc520b9bfbe273bf6ff8b0fd3960a2638d8539ec.tar.bz2 abslibre-dc520b9bfbe273bf6ff8b0fd3960a2638d8539ec.zip |
xchat: building against openssl-1.0
Diffstat (limited to 'libre/xchat')
-rw-r--r-- | libre/xchat/PKGBUILD | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/libre/xchat/PKGBUILD b/libre/xchat/PKGBUILD index af5efe18d..df7247a42 100644 --- a/libre/xchat/PKGBUILD +++ b/libre/xchat/PKGBUILD @@ -5,14 +5,18 @@ pkgname=xchat pkgver=2.8.8 -pkgrel=19.parabola1 +pkgrel=19.parabola2 pkgdesc="A GTK+ based IRC client, without nonfree browser reference" arch=('i686' 'x86_64' 'armv7h') url="http://www.xchat.org/" replaces=('xchat-libre') conflicts=('xchat-libre') license=('GPL') -depends=('gtk2' 'openssl' 'dbus-glib' 'libnotify') +depends=('gtk2' 'dbus-glib' 'libnotify') +# until openssl-1.1 arrives in arm packages... +depends_armv7h=('openssl') +depends_i686=('openssl-1.0') +depends_x86_64=('openssl-1.0') makedepends=('tcl' 'perl' 'python2' 'librsvg') optdepends=('enchant: for spell checking support' 'perl: for perl plugin' @@ -51,8 +55,19 @@ build() { autoconf autoheader - LIBS+="-lgmodule-2.0" ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share \ - --enable-openssl --enable-dbus --disable-textfe --enable-ipv6 --enable-shm --enable-spell=static + if [[ "$CARCH" != "arm" ]]; then + LIBS+=" -lgmodule-2.0 -l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0" \ + CFLAGS+=" -I /usr/include/openssl-1.0" \ + ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share \ + --enable-openssl --enable-dbus --disable-textfe --enable-ipv6 \ + --enable-shm --enable-spell=static + else + LIBS+=" -lgmodule-2.0" \ + ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share \ + --enable-openssl --enable-dbus --disable-textfe --enable-ipv6 \ + --enable-shm --enable-spell=static + fi + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } |