aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfce4-wavelan-plugin
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-03 10:33:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-03 10:33:37 +0000
commit247188c40f62d56ae3cac792041b6610c9a6fe0e (patch)
tree1177768a209c34ba1d40cedf3cc16d9904051bb9 /main/xfce4-wavelan-plugin
parentdd04485bc45202b49ea7c5b58f9aa211b4dd47d7 (diff)
downloadaports-247188c40f62d56ae3cac792041b6610c9a6fe0e.tar.bz2
aports-247188c40f62d56ae3cac792041b6610c9a6fe0e.tar.xz
main/xfce4-wavelan-plugin: build fix, libm underlinking
Diffstat (limited to 'main/xfce4-wavelan-plugin')
-rw-r--r--main/xfce4-wavelan-plugin/APKBUILD28
-rw-r--r--main/xfce4-wavelan-plugin/xfce4-wavelan-plugin-0.5.6-fix-libm-underlinking.patch11
2 files changed, 33 insertions, 6 deletions
diff --git a/main/xfce4-wavelan-plugin/APKBUILD b/main/xfce4-wavelan-plugin/APKBUILD
index 4dd8240aff..274c4f10f6 100644
--- a/main/xfce4-wavelan-plugin/APKBUILD
+++ b/main/xfce4-wavelan-plugin/APKBUILD
@@ -1,17 +1,32 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-wavelan-plugin
pkgver=0.5.6
-pkgrel=0
+pkgrel=1
pkgdesc="plugin to monitor wifi connectivity for the Xfce4 panel"
url="http://goodies.xfce.org/projects/panel-plugins/xfce4-wavelan-plugin/"
arch="all"
license="custom"
depends=
-makedepends="pkgconfig xfce4-panel-dev intltool libsm-dev libxfcegui4-dev"
-source="http://archive.xfce.org/src/panel-plugins/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"
+subpackages="$pkgname-lang"
+makedepends="pkgconfig xfce4-panel-dev intltool libsm-dev libxfcegui4-dev
+ xfce4-dev-tools"
+source="http://archive.xfce.org/src/panel-plugins/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
+ xfce4-wavelan-plugin-0.5.6-fix-libm-underlinking.patch
+ "
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ xdt-autogen
+}
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
@@ -22,9 +37,10 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-md5sums="b23a4c9c2a206242ee4db8186dd01801 xfce4-wavelan-plugin-0.5.6.tar.bz2"
+md5sums="b23a4c9c2a206242ee4db8186dd01801 xfce4-wavelan-plugin-0.5.6.tar.bz2
+826ac10d3daab247abadaf9797bcf22e xfce4-wavelan-plugin-0.5.6-fix-libm-underlinking.patch"
diff --git a/main/xfce4-wavelan-plugin/xfce4-wavelan-plugin-0.5.6-fix-libm-underlinking.patch b/main/xfce4-wavelan-plugin/xfce4-wavelan-plugin-0.5.6-fix-libm-underlinking.patch
new file mode 100644
index 0000000000..32d17a8402
--- /dev/null
+++ b/main/xfce4-wavelan-plugin/xfce4-wavelan-plugin-0.5.6-fix-libm-underlinking.patch
@@ -0,0 +1,11 @@
+diff -ur xfce4-wavelan-plugin-0.5.6.orig/configure.ac xfce4-wavelan-plugin-0.5.6/configure.ac
+--- xfce4-wavelan-plugin-0.5.6.orig/configure.ac 2010-12-04 01:51:47.000000000 +0100
++++ xfce4-wavelan-plugin-0.5.6/configure.ac 2011-09-21 08:55:53.549999963 +0200
+@@ -41,6 +41,7 @@
+ sys/socket.h sys/ioctl.h linux/types.h linux/if.h \
+ linux/wireless.h string.h \
+ ctype.h], [], [], [#include <sys/socket.h>])
++AC_SEARCH_LIBS(sin, m)
+
+ dnl Check for i18n support
+ XDT_I18N([ar ast be ca cs da de en_GB es eu fr gl hu id it ja kk ko lv nb pl pt_BR pt ru sq sv tr ug uk ur_PK ur vi zh_CN ])