pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/torsmo torsmo: add xft support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/974b71d494c6
branches:  trunk
changeset: 342946:974b71d494c6
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun Oct 27 19:31:40 2019 +0000

description:
torsmo: add xft support
Don't expect xft-config to exist. Use pkg-config instead.
Bump PKGREVISION

Partially from ptiJo in PR pkg/36685.

diffstat:

 sysutils/torsmo/Makefile         |   8 ++++++--
 sysutils/torsmo/distinfo         |   4 ++--
 sysutils/torsmo/patches/patch-ad |  26 +++++++++++++++++++++++++-
 3 files changed, 33 insertions(+), 5 deletions(-)

diffs (83 lines):

diff -r 949495762dde -r 974b71d494c6 sysutils/torsmo/Makefile
--- a/sysutils/torsmo/Makefile  Sun Oct 27 19:20:08 2019 +0000
+++ b/sysutils/torsmo/Makefile  Sun Oct 27 19:31:40 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2015/01/04 04:29:27 dholland Exp $
+# $NetBSD: Makefile,v 1.13 2019/10/27 19:31:40 maya Exp $
 
 DISTNAME=              torsmo-0.18
-PKGREVISION=           2
+PKGREVISION=           3
 CATEGORIES=            sysutils
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=torsmo/}
 
@@ -11,7 +11,10 @@
 
 BROKEN_ON_PLATFORM=    Darwin-*-*
 
+USE_TOOLS+=            pkg-config
 GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --enable-xft
+CONFIGURE_ENV+=                XFTCONFIG=pkg-config
 
 EGDIR=                 ${PREFIX}/share/examples/torsmo
 DOCDIR=                        ${PREFIX}/share/doc/torsmo
@@ -43,4 +46,5 @@
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 949495762dde -r 974b71d494c6 sysutils/torsmo/distinfo
--- a/sysutils/torsmo/distinfo  Sun Oct 27 19:20:08 2019 +0000
+++ b/sysutils/torsmo/distinfo  Sun Oct 27 19:31:40 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2017/06/23 19:02:07 kamil Exp $
+$NetBSD: distinfo,v 1.8 2019/10/27 19:31:40 maya Exp $
 
 SHA1 (torsmo-0.18.tar.gz) = 01e6737b3971daa3a7c9cb6dd1961f61bc39bdae
 RMD160 (torsmo-0.18.tar.gz) = f1d8b3c4679155596569f9116970e7ba8a01eb6e
@@ -7,5 +7,5 @@
 SHA1 (patch-aa) = 8c515d3b0925aeaaea928ad8abd89ab5ccbfceab
 SHA1 (patch-ab) = 858d0f4d4a694e667465ed6519f034c07f13e535
 SHA1 (patch-ac) = 5b342d09ff0fcc3982aa855e2cc660823ed53e11
-SHA1 (patch-ad) = 87fa39455dc2d5190c419142d5e4d0768914841e
+SHA1 (patch-ad) = 977da3272ee309b41d0dc30ea6b2d7f1a5e2a3c7
 SHA1 (patch-ae) = 5888d6cf538a9d95006ab1d2cdd01eabfafa10ed
diff -r 949495762dde -r 974b71d494c6 sysutils/torsmo/patches/patch-ad
--- a/sysutils/torsmo/patches/patch-ad  Sun Oct 27 19:20:08 2019 +0000
+++ b/sysutils/torsmo/patches/patch-ad  Sun Oct 27 19:31:40 2019 +0000
@@ -1,4 +1,8 @@
-$NetBSD: patch-ad,v 1.2 2007/02/19 19:50:48 joerg Exp $
+$NetBSD: patch-ad,v 1.3 2019/10/27 19:31:40 maya Exp $
+
+Add dragonflybsd.
+fix shell portability issues (= vs. ==)
+switch xft-config to pkg-config.
 
 --- configure.orig     2004-12-21 21:57:05.000000000 +0000
 +++ configure
@@ -62,3 +66,23 @@
    cat >> confdefs.h <<\EOF
  #define NVCTRL 1
  EOF
+@@ -1643,17 +1647,13 @@ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+-  if test x$XFTCONFIG != x; then
+     
+     cat >> confdefs.h <<\EOF
+ #define XFT 1
+ EOF
+ 
+-    CFLAGS="$CFLAGS `$XFTCONFIG --cflags`"
+-    XFT_LIBS=`$XFTCONFIG --libs`
+-  else
+-    want_xft=no
+-  fi
++    CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xft`"
++    XFT_LIBS=`$PKG_CONFIG --libs xft`
+ fi
+ 
+ 



Home | Main Index | Thread Index | Old Index