hsetroot: fix libX11 detection

This commit is contained in:
Jürgen Buchmüller 2016-05-16 14:15:12 +02:00
parent 139700dbd7
commit 51f91323b0
2 changed files with 18 additions and 3 deletions

View file

@ -0,0 +1,12 @@
--- configure.ac 2003-09-05 23:41:38.000000000 +0200
+++ configure.ac 2016-05-16 14:11:37.284749099 +0200
@@ -38,6 +38,9 @@
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
+# Check for X11
+AC_CHECK_FILE([/usr/lib/libX11.so], [LDFLAGS="-L/usr/lib -lX11"])
+
# Check for imlib2
AC_CHECK_PROGS(imlib2config_cmd, imlib2-config)
if test x$imlib2config_cmd = "x"; then

View file

@ -1,10 +1,9 @@
# Template build file for 'hsetroot'.
LDFLAGS="-lX11"
pkgname=hsetroot
version=1.0.2
revision=5
revision=6
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="libX11-devel imlib2-devel"
short_desc="A tool which changes X server wallpapers"
maintainer='Juan RP <xtraeme@voidlinux.eu>'
@ -12,3 +11,7 @@ license="GPL-2"
homepage="http://www.thegraveyard.org/hsetroot.php"
distfiles="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/hsetroot-${version}.tar.gz"
checksum=d6712d330b31122c077bfc712ec4e213abe1fe71ab24b9150ae2774ca3154fd7
pre_configure() {
autoreconf -if
}