diff -ruN pwlib.old/Makefile pwlib/Makefile --- pwlib.old/Makefile Tue Dec 7 08:52:35 2004 +++ pwlib/Makefile Fri Jun 3 14:18:07 2005 @@ -6,9 +6,9 @@ # PORTNAME= pwlib -PORTVERSION= 1.5.0 -PORTREVISION= 5 -PORTEPOCH= 1 +PORTVERSION= 1.5.2 +#PORTREVISION= 5 +#PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= http://www.openh323.org/bin/ \ http://www.de.openh323.org/bin/ \ diff -ruN pwlib.old/distinfo pwlib/distinfo --- pwlib.old/distinfo Wed Mar 31 03:07:25 2004 +++ pwlib/distinfo Fri Jun 3 16:22:12 2005 @@ -1,2 +1,2 @@ -MD5 (pwlib_1.5.0.tar.gz) = e6bcdd121a85687c040f4871f24b7352 -SIZE (pwlib_1.5.0.tar.gz) = 1074311 +MD5 (pwlib_1.5.2.tar.gz) = 0fa33ba1b32b254abe0b731a52c0f2f9 +SIZE (pwlib_1.5.2.tar.gz) = 1085203 diff -ruN pwlib.old/files/patch-make::common.mak pwlib/files/patch-make::common.mak --- pwlib.old/files/patch-make::common.mak Thu Jan 1 00:00:00 1970 +++ pwlib/files/patch-make::common.mak Wed Jun 8 16:51:15 2005 @@ -0,0 +1,19 @@ +*** make/common.mak.orig Tue Jul 29 11:25:23 2003 +--- make/common.mak Wed Jun 8 16:50:19 2005 +*************** +*** 262,268 **** + endif + + ifneq ($(P_SHAREDLIB),1) +! LDFLAGS += -static + endif + + # clean whitespace out of source file list +--- 262,268 ---- + endif + + ifneq ($(P_SHAREDLIB),1) +! #LDFLAGS += -static + endif + + # clean whitespace out of source file list diff -ruN pwlib.old/files/patch-src::ptclib::asner.cxx pwlib/files/patch-src::ptclib::asner.cxx --- pwlib.old/files/patch-src::ptclib::asner.cxx Tue Jun 8 06:27:43 2004 +++ pwlib/files/patch-src::ptclib::asner.cxx Thu Jan 1 00:00:00 1970 @@ -1,58 +0,0 @@ - -$FreeBSD: ports/devel/pwlib/files/patch-src::ptclib::asner.cxx,v 1.1 2004/06/08 06:27:43 sobomax Exp $ - ---- src/ptclib/asner.cxx 2004/06/03 14:44:43 1.1 -+++ src/ptclib/asner.cxx 2004/06/03 14:50:35 -@@ -4926,6 +4926,11 @@ - return -1; - - value += lower; -+ -+ // clamp value to upper limit -+ if (value > upper) -+ value = upper; -+ - return 0; - } - -@@ -4970,7 +4975,13 @@ - unsigned base; - if (!MultiBitDecode(CountBits(upper - lower + 1), base)) - return -1; -- return lower + base; // 10.9.4.1 -+ len = lower + base; // 10.9.4.1 -+ -+ // clamp value to upper limit -+ if (len > upper) -+ len = upper; -+ -+ return len; - } - - if (upper < 65536) // 10.9.3.3 -@@ -4981,13 +4992,20 @@ - if (IsAtEnd()) - return -1; - -- if (SingleBitDecode() == 0) -- return MultiBitDecode(7, len) ? 0 : -1; // 10.9.3.6 -+ if (SingleBitDecode() == 0) { -+ if (!MultiBitDecode(7, len)) // 10.9.3.6 -+ return -1; // 10.9.3.8 unsupported -+ } -+ else if (SingleBitDecode() == 0) { -+ if (!MultiBitDecode(14, len)) // 10.9.3.7 -+ return -1; // 10.9.3.8 unsupported -+ } - -- if (SingleBitDecode() == 0) -- return MultiBitDecode(14, len) ? 0 : -1; // 10.9.3.7 -+ // clamp value to upper limit -+ if (len > upper) -+ len = upper; - -- return -1; // 10.9.3.8 unsupported -+ return 0; - } - - diff -ruN pwlib.old/files/patch-src::ptclib::asnper.cxx pwlib/files/patch-src::ptclib::asnper.cxx --- pwlib.old/files/patch-src::ptclib::asnper.cxx Thu Jan 1 00:00:00 1970 +++ pwlib/files/patch-src::ptclib::asnper.cxx Fri Jun 3 15:01:03 2005 @@ -0,0 +1,56 @@ +--- src/ptclib/asnper.cxx Fri Aug 1 02:11:38 2003 ++++ src/ptclib/asnper.cxx Fri Jun 3 14:32:55 2005 +@@ -1224,6 +1224,11 @@ + return -1; + + value += lower; ++ ++ // clamp value to upper limit ++ if (value > upper) ++ value = upper; ++ + return 0; + } + +@@ -1268,7 +1273,14 @@ + unsigned base; + if (!MultiBitDecode(CountBits(upper - lower + 1), base)) + return -1; +- return lower + base; // 10.9.4.1 ++ len = lower + base; // 10.9.4.1 ++ ++ // clamp value to upper limit ++ if (len > upper) ++ len = upper; ++ ++ return len; ++ + } + + if (upper < 65536) // 10.9.3.3 +@@ -1279,13 +1291,20 @@ + if (IsAtEnd()) + return -1; + +- if (SingleBitDecode() == 0) +- return MultiBitDecode(7, len) ? 0 : -1; // 10.9.3.6 ++ if (SingleBitDecode() == 0) { ++ if (!MultiBitDecode(7, len)) // 10.9.3.6 ++ return -1; // 10.9.3.8 unsupported ++ } ++ else if (SingleBitDecode() == 0) { ++ if (!MultiBitDecode(14, len)) // 10.9.3.7 ++ return -1; // 10.9.3.8 unsupported ++ } + +- if (SingleBitDecode() == 0) +- return MultiBitDecode(14, len) ? 0 : -1; // 10.9.3.7 ++ // clamp value to upper limit ++ if (len > upper) ++ len = upper; + +- return -1; // 10.9.3.8 unsupported ++ return 0; + } + + diff -ruN pwlib.old/files/patch-unix pwlib/files/patch-unix --- pwlib.old/files/patch-unix Thu Aug 28 07:58:51 2003 +++ pwlib/files/patch-unix Fri Jun 3 15:18:33 2005 @@ -1,7 +1,7 @@ -*** make/unix.mak.orig Thu Aug 28 08:39:18 2003 ---- make/unix.mak Thu Aug 28 08:42:30 2003 -*************** endif # linux -*** 338,348 **** +*** make/unix.mak.orig Thu Jul 24 22:01:42 2003 +--- make/unix.mak Fri Jun 3 15:13:47 2005 +*************** +*** 358,368 **** ifeq ($(OSTYPE),FreeBSD) @@ -13,7 +13,7 @@ ifndef OSRELEASE OSRELEASE := $(shell sysctl -n kern.osreldate) ---- 338,348 ---- +--- 358,368 ---- ifeq ($(OSTYPE),FreeBSD) @@ -25,8 +25,8 @@ ifndef OSRELEASE OSRELEASE := $(shell sysctl -n kern.osreldate) -*************** SHELL := /bin/sh -*** 871,881 **** +*************** +*** 891,901 **** # Directories @@ -38,7 +38,7 @@ ifndef UNIX_SRC_DIR UNIX_SRC_DIR = $(PWLIBDIR)/src/ptlib/unix ---- 871,881 ---- +--- 891,901 ---- # Directories @@ -50,20 +50,20 @@ ifndef UNIX_SRC_DIR UNIX_SRC_DIR = $(PWLIBDIR)/src/ptlib/unix -*************** LDFLAGS += $(DEBLDFLAGS) -*** 912,918 **** +*************** +*** 932,938 **** else ifneq ($(OSTYPE),Darwin) -! OPTCCFLAGS += -O3 -DNDEBUG +! OPTCCFLAGS += -Os -DNDEBUG else OPTCCFLAGS += -O2 -DNDEBUG endif ---- 912,919 ---- +--- 932,939 ---- else ifneq ($(OSTYPE),Darwin) -! # OPTCCFLAGS += -O3 -DNDEBUG +! # OPTCCFLAGS += -Os -DNDEBUG ! OPTCCFLAGS += -DNDEBUG else OPTCCFLAGS += -O2 -DNDEBUG