mate-utils: cross compilation support.
This commit is contained in:
parent
df45de3642
commit
f6815dea1e
|
@ -0,0 +1,47 @@
|
|||
--- configure.ac.orig 2015-09-01 15:56:57.000000000 +0200
|
||||
+++ configure.ac 2015-10-23 15:09:25.486599085 +0200
|
||||
@@ -277,24 +277,32 @@ AS_IF([test "x$have_ipv6" = "xyes"],
|
||||
]
|
||||
)
|
||||
|
||||
-
|
||||
-dnl strftime extension checks
|
||||
-AC_TRY_RUN([
|
||||
+dnl ***************************************
|
||||
+dnl *** Check for strftime() extensions ***
|
||||
+dnl ***************************************
|
||||
+AC_CACHE_CHECK([Define if strftime supports %E and %O modifiers], ac_cv_strftime_extensions,
|
||||
+ [AC_TRY_RUN([
|
||||
+ #include <string.h>
|
||||
#include <time.h>
|
||||
- int main (void) {
|
||||
- char buf[100];
|
||||
- struct tm tm = {0};
|
||||
- tm.tm_year = 99;
|
||||
- if (strftime(buf, 100, "%EY", &tm) == 4 && strcmp (buf, "1999")==0)
|
||||
+ int
|
||||
+ main (int argc, char **argv)
|
||||
+ {
|
||||
+ struct tm tm;
|
||||
+ char buffer[16];
|
||||
+ tm.tm_year = 81;
|
||||
+ if (strftime (buffer, 16, "%EY", &tm) == 4 && strcmp (buffer, "1981") == 0)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
],
|
||||
- [
|
||||
- AC_DEFINE([HAVE_STRFTIME_EXTENSION], [1],
|
||||
- [Define if strftime supports %E and %O modifiers.])
|
||||
- ]
|
||||
+ ac_cv_strftime_extensions=yes,
|
||||
+ ac_cv_strftime_extensions=no,
|
||||
+ [AC_MSG_ERROR([cross-compiling, preset ac_cv_strftime_extensions=yes/no])]
|
||||
+ )]
|
||||
)
|
||||
+if test x"$ac_cv_strftime_extensions" = x"yes"; then
|
||||
+ AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.])
|
||||
+fi
|
||||
|
||||
dnl mate-search-tool checks
|
||||
withval=""
|
|
@ -1,11 +1,13 @@
|
|||
# Template file for 'mate-utils'
|
||||
pkgname=mate-utils
|
||||
version=1.10.3
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-gtk=2.0 --disable-static"
|
||||
hostmakedepends="pkg-config intltool itstool glib-devel"
|
||||
makedepends="gtk+-devel libSM-devel zlib-devel libcanberra-devel libgtop-devel libmate-panel-devel"
|
||||
hostmakedepends="automake libtool gettext-devel pkg-config
|
||||
intltool itstool glib-devel mate-common"
|
||||
makedepends="gtk+-devel libSM-devel zlib-devel libcanberra-devel
|
||||
libgtop-devel libmate-panel-devel"
|
||||
depends="desktop-file-utils"
|
||||
short_desc="Common utilities for the MATE desktop"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
|
@ -14,6 +16,9 @@ homepage="http://mate-desktop.org"
|
|||
distfiles="http://pub.mate-desktop.org/releases/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
checksum=44acb6a7a2caa8992d0437fab74bf57d20e909ef9b780430128a2521cb61be70
|
||||
|
||||
pre_configure() {
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
}
|
||||
post_install() {
|
||||
rm -r ${DESTDIR}/usr/include
|
||||
rm -r ${DESTDIR}/usr/lib/pkgconfig
|
||||
|
|
Loading…
Reference in New Issue