pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/XmHTML Updated xmhtml to version 1.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/afbd84ef4540
branches:  trunk
changeset: 400858:afbd84ef4540
user:      nros <nros%pkgsrc.org@localhost>
date:      Fri Sep 06 08:46:26 2019 +0000

description:
Updated xmhtml to version 1.1.0

This version has a real master site
and homepage at sourceforge.
Includes updates for buildling with
the latest png api and fixes to
debug.c (patch-ai).
Removed the patches for this.
Removed patch-ab, patch-ac and patch-ae
because we only build the lib.

Other updates upstream:
Support for utf-8 text and xft.
Function XmHTMLScrollToYPos added.
Fixes for crashes and various memory
leaks.

diffstat:

 x11/XmHTML/Makefile         |   16 ++-
 x11/XmHTML/distinfo         |   25 ++---
 x11/XmHTML/patches/patch-aa |   81 ++++++++-----------
 x11/XmHTML/patches/patch-ab |   17 ----
 x11/XmHTML/patches/patch-ac |   33 --------
 x11/XmHTML/patches/patch-ad |   44 +++++++---
 x11/XmHTML/patches/patch-ae |   13 ---
 x11/XmHTML/patches/patch-af |    4 +-
 x11/XmHTML/patches/patch-ag |    4 +-
 x11/XmHTML/patches/patch-ah |    4 +-
 x11/XmHTML/patches/patch-ai |   42 ----------
 x11/XmHTML/patches/patch-aj |  173 --------------------------------------------
 12 files changed, 91 insertions(+), 365 deletions(-)

diffs (truncated from 576 to 300 lines):

diff -r 551afd936cf0 -r afbd84ef4540 x11/XmHTML/Makefile
--- a/x11/XmHTML/Makefile       Fri Sep 06 06:04:38 2019 +0000
+++ b/x11/XmHTML/Makefile       Fri Sep 06 08:46:26 2019 +0000
@@ -1,13 +1,14 @@
-# $NetBSD: Makefile,v 1.56 2015/07/04 16:18:41 joerg Exp $
+# $NetBSD: Makefile,v 1.57 2019/09/06 08:46:26 nros Exp $
 #
 
-DISTNAME=      XmHTML-1.1.7
-PKGREVISION=   14
+DISTNAME=      XmHTML-1.1.10
 CATEGORIES=    x11
-MASTER_SITES=  # http://www.xs4all.nl/~ripley/XmHTML/dist/
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=xmhtml/}
+EXTRACT_SUFX=  .tgz
+EXTRACT_USING= bsdtar
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-#HOMEPAGE=     http://www.xs4all.nl/~ripley/XmHTML/
+HOMEPAGE=      https://sourceforge.net/projects/xmhtml/
 COMMENT=       Motif Widget capable of displaying HTML 3.2 conforming text
 LICENSE=       gnu-lgpl-v2
 
@@ -21,15 +22,18 @@
                ${WRKSRC}/lib/libXmHTML.la ${DESTDIR}${PREFIX}/lib
        ${INSTALL_DATA} ${WRKSRC}/include/XmHTML/*.h ${DESTDIR}${PREFIX}/include/XmHTML
 
-.include "../../mk/jpeg.buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../x11/libICE/buildlink3.mk"
 .include "../../x11/libSM/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
 .include "../../x11/libXmu/buildlink3.mk"
 .include "../../x11/libXpm/buildlink3.mk"
 .include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/motif.buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
diff -r 551afd936cf0 -r afbd84ef4540 x11/XmHTML/distinfo
--- a/x11/XmHTML/distinfo       Fri Sep 06 06:04:38 2019 +0000
+++ b/x11/XmHTML/distinfo       Fri Sep 06 08:46:26 2019 +0000
@@ -1,16 +1,11 @@
-$NetBSD: distinfo,v 1.11 2015/11/04 03:28:25 agc Exp $
+$NetBSD: distinfo,v 1.12 2019/09/06 08:46:26 nros Exp $
 
-SHA1 (XmHTML-1.1.7.tar.gz) = 4d8c82f88cf0700f6fc8898323d865b83d2a1ff1
-RMD160 (XmHTML-1.1.7.tar.gz) = 0e5cf4a0d24fc73277186a726a3997dea4ea82db
-SHA512 (XmHTML-1.1.7.tar.gz) = a8d46a27ab69f840f944d0d826d81f642fde804e7c3c62dc01899890b9f1a6108c55073e331aec8fd4c4cb47d768d7f4e0208a950f2e8b68f397076330673e1b
-Size (XmHTML-1.1.7.tar.gz) = 1289780 bytes
-SHA1 (patch-aa) = 3d4f8b8cbb825b91da3bae64ef2b6572406189d9
-SHA1 (patch-ab) = 2f9e88b74913c735caf139646c2637a77a1232cd
-SHA1 (patch-ac) = a253e613c9f8752bbef42d5d9db180506edf0940
-SHA1 (patch-ad) = 69f9244f3a567e4d2d15f3af448476167454c4c9
-SHA1 (patch-ae) = f4d0a993d383e97ff06a29151316d57bcd21c25d
-SHA1 (patch-af) = de3658ddbe191deb3d838f500d985c950ab4a967
-SHA1 (patch-ag) = acac76543e8fe98d79064bbec7830f285e9c50cd
-SHA1 (patch-ah) = 78ad8dc486da8aad6911f79eb8bd22d8417aec1f
-SHA1 (patch-ai) = 300b35e24698d6e717f0b1bdfd577df91244fba4
-SHA1 (patch-aj) = 7dbd41eb4c07f094f614a0ad91fbda242d167c31
+SHA1 (XmHTML-1.1.10.tgz) = 88b7b53d70903c79adf3629db76d803d3af6312b
+RMD160 (XmHTML-1.1.10.tgz) = 0f4914be68d051e1a9b2b797ddfaf4490f51330b
+SHA512 (XmHTML-1.1.10.tgz) = 6b92df188011478b4ab36ff57c04490acdb8eb1070caff48c31dde7006ac2ce54ea6cc7a990363569d7ebee531bba06d0d9e848f9397f156403c26974d2cb962
+Size (XmHTML-1.1.10.tgz) = 1348388 bytes
+SHA1 (patch-aa) = 6d3eb8a40fd2beb847614b1c9484573dfe02d1eb
+SHA1 (patch-ad) = d71fe01b604def5c00213a0d2fb249208ffa098e
+SHA1 (patch-af) = e88b0bee324aae547d0b2e694b63342491cc2fcd
+SHA1 (patch-ag) = c99a18184d573608021ca2084394691bcea60c66
+SHA1 (patch-ah) = 698299e9d1ec6b7f454cddd7cb6ba364fc1d4e4c
diff -r 551afd936cf0 -r afbd84ef4540 x11/XmHTML/patches/patch-aa
--- a/x11/XmHTML/patches/patch-aa       Fri Sep 06 06:04:38 2019 +0000
+++ b/x11/XmHTML/patches/patch-aa       Fri Sep 06 08:46:26 2019 +0000
@@ -1,31 +1,31 @@
-$NetBSD: patch-aa,v 1.7 2005/07/31 05:51:28 grant Exp $
-
---- Makefile.orig      1999-02-04 11:43:27.000000000 +1100
+$NetBSD: patch-aa,v 1.8 2019/09/06 08:46:26 nros Exp $
+* only build lib and use the right x11 include and link directories
+--- Makefile.orig      2015-10-26 10:22:55.000000000 +0000
 +++ Makefile
-@@ -40,7 +40,7 @@ PLATFORM=Motif
- # remove the examples directory from this line.
- # If you want to build the XmHTML tutorial examples, add the book directory.
- 
+@@ -61,7 +61,7 @@ HAVE_XPM=1
+ ifeq ($(OS),IRIX)
+ SUBDIRS= lib http
+ else
 -SUBDIRS= lib http examples tools
 +SUBDIRS= lib # http examples tools
+ endif
  
  # some common definitions
- #
-@@ -64,9 +64,10 @@ MAKEDEPEND= gccmakedep
+@@ -99,9 +99,10 @@ endif
  # Compiler Settings #
  #                   #
  #####################
--CC       = gcc
--CFLAGS   = -g -funroll-loops -Wall -pipe -ansi 
--LDFLAGS  = 
+-CC            = gcc
+-CFLAGS        = -funroll-loops -Wall -pipe -ansi -fPIC $(OS_CFLAGS) $(EXTRA_CFLAGS)
+-LDFLAGS       = 
 +# Inherit from build environment
-+#CC       = gcc
-+#CFLAGS   = -g -funroll-loops -Wall -pipe -ansi 
-+#LDFLAGS  = 
++#CC           = gcc
++#CFLAGS       = -funroll-loops -Wall -pipe -ansi -fPIC $(OS_CFLAGS) $(EXTRA_CFLAGS)
++#LDFLAGS      = 
  
  # The following flags are *very* usefull if you are getting unresolved
  # references to functions in libraries that you *know* to exist.
-@@ -114,8 +115,8 @@ IMAGEDEFINES = -DHAVE_LIBJPEG -DHAVE_LIB
+@@ -159,8 +160,8 @@ endif
  # HAVE_LIBPNG  => png.h and zlib.h
  # HAVE_LIBZ => zlib.h
  
@@ -36,41 +36,30 @@
  
  # Image libraries
  # No need to add -lXpm if you need to include it with LIBS below
-@@ -166,14 +167,14 @@ IMAGELIBS = -ljpeg -lpng $(ZLIBLIB)
+@@ -211,7 +212,7 @@ IMAGELIBS = -ljpeg -lpng $(ZLIBLIB)
  # Add -DDEBUG to enable selective debug output (see the file DEBUGGING for more
  # info).
  #
--CPPFLAGS = -DDEBUG -D_GNU_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -DHAVE_REGEX_H $(IMAGEDEFINES) 
-+CPPFLAGS = -DHAVE_REGEX_H $(IMAGEDEFINES) 
- 
- # Various include directories
- LIBINC=-I. -I../include -I../include/common -I../../include -I../../include/common
- 
- # Platform specific includes
- ifeq ($(PLATFORM),Motif)
--PLATFORMINC=-I../../include/XmHTML -I/usr/X11R6/include
-+PLATFORMINC=-I../../include/XmHTML -I${X11BASE}/include
+-CPPFLAGS = -D_GNU_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -DHAVE_REGEX_H \
++CPPFLAGS = -DHAVE_REGEX_H \
+       $(EXTRA_CPPFLAGS) \
+       $(IMAGEDEFINES) \
+       $(XFT_DEFINES)
+@@ -224,7 +225,7 @@ ifeq ($(TOOLKIT),Motif)
+ ifeq ($(OS),IRIX)
+ TOOLKITINC=-I../../include/XmHTML -I/usr/include
  else
- ifeq ($(PLATFORM),gtk)
- PLATFORMINC=-I../../include/gtk-xmhtml -I/usr/local/include
-@@ -192,17 +193,17 @@ INCLUDES = $(LIBINC) $(PLATFORMINC) $(IM
- # Motif version (default)
- ifeq ($(PLATFORM),Motif)
- 
+-TOOLKITINC=-I../../include/XmHTML -I/usr/X11R6/include -I/usr/include/freetype2
++TOOLKITINC=-I../../include/XmHTML -I${X11BSE}/include -I/usr/include/freetype2
+ endif
+ else
+ ifeq ($(TOOLKIT),gtk)
+@@ -250,7 +251,7 @@ ifeq ($(TOOLKIT),Motif)
+ ifeq ($(OS),IRIX)
+ LIBDIR = -L/usr/lib32
+ else
 -LIBDIR = -L/usr/X11R6/lib
 +LIBDIR = -L${X11BASE}/lib
+ endif
  # This is what is required under Linux (Motif 2.0.1).
  # Your mileage may vary.
--LIBS   = -lXm -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE
-+LIBS   = ${MOTIFLIB} -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE
- 
- else
- 
- # gtk version (only supported port for now)
- ifeq($(PLATFORM),gtk)
- 
--LIBDIR = -L/usr/local/lib
-+LIBDIR = -L${X11BASE}/lib
- LIBS   = -lgdk -lgtk -lX11
- 
- # endif gtk
diff -r 551afd936cf0 -r afbd84ef4540 x11/XmHTML/patches/patch-ab
--- a/x11/XmHTML/patches/patch-ab       Fri Sep 06 06:04:38 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-ab,v 1.3 1999/11/13 07:31:40 jlam Exp $
-
---- examples/Makefile.orig     Wed Feb  3 19:43:27 1999
-+++ examples/Makefile  Tue Nov  2 01:39:14 1999
-@@ -11,10 +11,10 @@
- EXAMPLES=example_1 example_2 example_4
- 
- # The XmHTML library
--XMHTMLLIB = -L../lib -lXmHTML
-+XMHTMLLIB = ../lib/libXmHTML.la
- 
- # Richard Offer's http client-side library
--HTTPLIB   = -L../http -lhttp
-+HTTPLIB   = ../http/libhttp.la
- 
- # Libraries against which all examples are linked 
- LINKLIBS = $(XMHTMLLIB) $(LOADLIBES) $(DMALLOCLIB)
diff -r 551afd936cf0 -r afbd84ef4540 x11/XmHTML/patches/patch-ac
--- a/x11/XmHTML/patches/patch-ac       Fri Sep 06 06:04:38 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-$NetBSD: patch-ac,v 1.5 2009/09/08 19:20:49 joerg Exp $
-
---- http/Makefile.orig Thu Feb  4 00:43:27 1999
-+++ http/Makefile
-@@ -2,7 +2,7 @@
- # lint configuration. I use lclint.
- #
- 
--LIBRARY=libhttp.a
-+LIBRARY=libhttp.la
- 
- # List of source, object and header files 
- SRCS=HTTP.c cookie.c
-@@ -20,16 +20,15 @@
- # rule to create .o files from .c files 
- .c.o:
-       $(RM) $@
--      $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $<
-+      ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $<
- 
- all: $(TARGET)
- 
- # targets to build
- 
- $(TARGET):: $(OBJS)  
--      $(RM) $@ \ 
--      $(AR) $@ $(OBJS)  
--      $(RANLIB) $@
-+      $(RM) $@
-+      ${LIBTOOL} --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath ${PREFIX}/lib -version-info 0:2
- 
- stamp-includes:
-       @if [ -d ../include ]; then set +x; \
diff -r 551afd936cf0 -r afbd84ef4540 x11/XmHTML/patches/patch-ad
--- a/x11/XmHTML/patches/patch-ad       Fri Sep 06 06:04:38 2019 +0000
+++ b/x11/XmHTML/patches/patch-ad       Fri Sep 06 08:46:26 2019 +0000
@@ -1,26 +1,42 @@
-$NetBSD: patch-ad,v 1.5 2009/09/08 19:20:49 joerg Exp $
-
---- lib/Makefile.orig  Thu Feb  4 00:43:26 1999
+$NetBSD: patch-ad,v 1.6 2019/09/06 08:46:26 nros Exp $
+* use libtool
+--- lib/Makefile.orig  2015-10-26 10:22:55.000000000 +0000
 +++ lib/Makefile
-@@ -25,7 +25,7 @@
+@@ -25,18 +25,18 @@
  # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.         #
  ##############################################################################
  #
 -LIBRARY=libXmHTML.a
 +LIBRARY=libXmHTML.la
+ SHAREDLIB=libXmHTML.so.$(ARCHIVE)
  
- # Target to make
- TARGET=$(LIBRARY)
-@@ -44,9 +44,9 @@
+ # Targets to make
+-TARGET_STATIC=$(LIBRARY)
++TARGET=$(LIBRARY)
+ TARGET_SHARED=$(SHAREDLIB)
+ 
+ # Subdirectories to visit
+ SUBDIRS= common $(TOOLKIT)
+ 
+ # Target rules
+-all:: $(TARGET_STATIC) $(TARGET_SHARED)
++all:: $(TARGET)
+ 
+ # Separate rules for all targets 
+ $(TOOLKIT):: 
+@@ -45,10 +45,11 @@ $(TOOLKIT):: 
+ common::
        @(set -x; cd common; $(MAKE) all $(pass_flags) )
  
- $(TARGET):: common $(PLATFORM) 
+-$(TARGET_STATIC):: common $(TOOLKIT) 
 -      $(RM) $@ \ 
--      $(AR) $@ common/*.o $(PLATFORM)/*.o
+-      $(AR) $@ common/*.o $(TOOLKIT)/*.o
 -      $(RANLIB) $@
++$(TARGET):: common $(TOOLKIT) 
 +      $(RM) $@
-+      ${LIBTOOL} --mode=link $(CC) -o $@ common/*.lo $(PLATFORM)/*.lo \
-+              -rpath ${PREFIX}/lib -version-info 1:2
-       
- depend:: 
-       @( for dir in $(SUBDIRS) ; do \
++      ${LIBTOOL} --mode=link $(CC) -o $@ $(sort $(wildcard common/*.lo)) \
++              $(sort  $(wildcard $(TOOLKIT)/*.lo)) \
++              -rpath $(PREFIX)/lib -version-info 2:0:1



Home | Main Index | Thread Index | Old Index