diff --git a/srcpkgs/hsetroot/patches/fix-x11-detect.patch b/srcpkgs/hsetroot/patches/fix-x11-detect.patch new file mode 100644 index 0000000000..2f8da23773 --- /dev/null +++ b/srcpkgs/hsetroot/patches/fix-x11-detect.patch @@ -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 diff --git a/srcpkgs/hsetroot/template b/srcpkgs/hsetroot/template index 16ce535d1f..0386746e48 100644 --- a/srcpkgs/hsetroot/template +++ b/srcpkgs/hsetroot/template @@ -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 ' @@ -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 +}