Check-in [10ce0a371d]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:update tcl-stbimage to version 1.1
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 10ce0a371d483a5cd0de72d73265948902f0ce6f
User & Date: chw 2024-07-18 17:10:29.678
Context
2024-07-19
07:44
improve tksvg to render into a bytearray check-in: af0b72d297 user: chw tags: trunk
2024-07-18
17:10
update tcl-stbimage to version 1.1 check-in: 10ce0a371d user: chw tags: trunk
04:38
fix in tk menu handling for win32 check-in: 570113c80e user: chw tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Name change from assets/stbimage1.0/pkgIndex.tcl to assets/stbimage1.1/pkgIndex.tcl.
1
2
package ifneeded stbimage 1.0 \
    [list load libstbimage[info sharedlibextension] stbimage]
|

1
2
package ifneeded stbimage 1.1 \
    [list load libstbimage[info sharedlibextension] stbimage]
Changes to jni/tcl-stbimage/Android.mk.
28
29
30
31
32
33
34
35
36
37
38
39
40

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

LOCAL_SRC_FILES := generic/tclstbimage.c

LOCAL_CFLAGS := $(tcl_cflags) $(tk_cflags) \
	-DPACKAGE_NAME="\"stbimage\"" \
	-DPACKAGE_VERSION="\"1.0\"" \
	-O2

LOCAL_SHARED_LIBRARIES := libtcl libtk

include $(BUILD_SHARED_LIBRARY)







|





28
29
30
31
32
33
34
35
36
37
38
39
40

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

LOCAL_SRC_FILES := generic/tclstbimage.c

LOCAL_CFLAGS := $(tcl_cflags) $(tk_cflags) \
	-DPACKAGE_NAME="\"stbimage\"" \
	-DPACKAGE_VERSION="\"1.1\"" \
	-O2

LOCAL_SHARED_LIBRARIES := libtcl libtk

include $(BUILD_SHARED_LIBRARY)
Changes to jni/tcl-stbimage/ChangeLog.










1
2
3
4
5
6
7










2024-07-10  Danilo Chang

	* Added functions (crop, mirror, rotate, put) from AndroWish project

2024-06-04  Danilo Chang

	* Bump version to v1.0
>
>
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2024-07-18  Danilo Chang

	* Bump version to v1.1
	* Merge code from AndroWish project

2024-07-17  Danilo Chang

	* Merge code from AndroWish project
	* Update stb_image_resize2.h

2024-07-10  Danilo Chang

	* Added functions (crop, mirror, rotate, put) from AndroWish project

2024-06-04  Danilo Chang

	* Bump version to v1.0
Changes to jni/tcl-stbimage/configure.
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for stbimage 1.0.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.


|







1
2
3
4
5
6
7
8
9
10
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for stbimage 1.1.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='stbimage'
PACKAGE_TARNAME='stbimage'
PACKAGE_VERSION='1.0'
PACKAGE_STRING='stbimage 1.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H







|
|







573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='stbimage'
PACKAGE_TARNAME='stbimage'
PACKAGE_VERSION='1.1'
PACKAGE_STRING='stbimage 1.1'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures stbimage 1.0 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.







|







1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures stbimage 1.1 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389

  cat <<\_ACEOF
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of stbimage 1.0:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]







|







1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389

  cat <<\_ACEOF
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of stbimage 1.1:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
stbimage configure 1.0
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit







|







1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
stbimage configure 1.1
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by stbimage $as_me 1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{







|







1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by stbimage $as_me 1.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
else
  AR="$ac_cv_prog_AR"
fi

    STLIB_LD='${AR} cr'
    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
    if test "x$SHLIB_VERSION" = x; then :
  SHLIB_VERSION="1.0"
fi
    case $system in
	# TEA specific:
	windows)
	    # This is a 2-stage check to make sure we have the 64-bit SDK
	    # We have to know where the SDK is installed.
	    # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs







|







6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
else
  AR="$ac_cv_prog_AR"
fi

    STLIB_LD='${AR} cr'
    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
    if test "x$SHLIB_VERSION" = x; then :
  SHLIB_VERSION="1.1"
fi
    case $system in
	# TEA specific:
	windows)
	    # This is a 2-stage check to make sure we have the 64-bit SDK
	    # We have to know where the SDK is installed.
	    # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by stbimage $as_me 1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@







|







9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by stbimage $as_me 1.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
stbimage config.status 1.0
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."








|







9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
stbimage config.status 1.1
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

Changes to jni/tcl-stbimage/configure.ac.
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
# set as provided.  These will also be added as -D defs in your Makefile
# so you can encode the package version directly into the source files.
# This will also define a special symbol for Windows (BUILD_<PACKAGE_NAME>
# so that we create the export library with the dll.
#-----------------------------------------------------------------------

AC_INIT([stbimage],[1.0])

#--------------------------------------------------------------------
# Call TEA_INIT as the first TEA_ macro to set up initial vars.
# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
#--------------------------------------------------------------------








|







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
# set as provided.  These will also be added as -D defs in your Makefile
# so you can encode the package version directly into the source files.
# This will also define a special symbol for Windows (BUILD_<PACKAGE_NAME>
# so that we create the export library with the dll.
#-----------------------------------------------------------------------

AC_INIT([stbimage],[1.1])

#--------------------------------------------------------------------
# Call TEA_INIT as the first TEA_ macro to set up initial vars.
# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
#--------------------------------------------------------------------

Changes to jni/tcl-stbimage/generic/tclstbimage.c.
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
    Tcl_DecrRefCount(pkg_data->height_obj);
    Tcl_DecrRefCount(pkg_data->channels_obj);
    Tcl_DecrRefCount(pkg_data->data_obj);
    ckfree(pkg_data);
}



/*
 *----------------------------------------------------------------------
 *
 * Stbimage_Init --
 *
 *      Initialize the new package.
 *







<







1920
1921
1922
1923
1924
1925
1926

1927
1928
1929
1930
1931
1932
1933
    Tcl_DecrRefCount(pkg_data->height_obj);
    Tcl_DecrRefCount(pkg_data->channels_obj);
    Tcl_DecrRefCount(pkg_data->data_obj);
    ckfree(pkg_data);
}



/*
 *----------------------------------------------------------------------
 *
 * Stbimage_Init --
 *
 *      Initialize the new package.
 *
Changes to jni/tcl-stbimage/tcl-stbimage.spec.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%{!?directory:%define directory /usr}

%define buildroot %{_tmppath}/%{name}
%define packckname stbimage

Name:          tcl-stbimage
Summary:       Tcl extension for stb_image
Version:       1.0
Release:       0
License:       MIT
Group:         Development/Libraries/Tcl
Source:        %{name}-%{version}.tar.gz
URL:           https://github.com/ray2501/tcl-stbimage
BuildRequires: autoconf
BuildRequires: make







|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%{!?directory:%define directory /usr}

%define buildroot %{_tmppath}/%{name}
%define packckname stbimage

Name:          tcl-stbimage
Summary:       Tcl extension for stb_image
Version:       1.1
Release:       0
License:       MIT
Group:         Development/Libraries/Tcl
Source:        %{name}-%{version}.tar.gz
URL:           https://github.com/ray2501/tcl-stbimage
BuildRequires: autoconf
BuildRequires: make
Changes to undroid/luck/cgi-bin/luck.tips.
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
snack2.2 {Sound toolkit (MP3 and OGG support not provided)}
snap70.1 {Tcl interface to snap7 using Ffidl and TclOO}
sqlite3.45.2 {Embedded SQL database}
sqlite3.45.3 {Embedded SQL database}
sqlite3.46.0 {Embedded SQL database}
stardom0.42 {Small XML browser/editor based on tdom and bwidget}
starsync1.0 {Support package for SDX utility}
stbimage0.9 {Danilo Chang's Tcl binding to stb_image}
stbimage1.0 {Danilo Chang's Tcl binding to stb_image}
stringfileinfo0.2 {Support package for SDX utility}
sun-valley-ttk {Sun-Valley ttk themes}
tangoicons0.1 {Tango icons using tksvg}
tbcload1.7 {Byte-code loader}
tcl {The Tcl core}
tcl8 {The Tcl core}
tcl8.6 {The Tcl core}







|
|







179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
snack2.2 {Sound toolkit (MP3 and OGG support not provided)}
snap70.1 {Tcl interface to snap7 using Ffidl and TclOO}
sqlite3.45.2 {Embedded SQL database}
sqlite3.45.3 {Embedded SQL database}
sqlite3.46.0 {Embedded SQL database}
stardom0.42 {Small XML browser/editor based on tdom and bwidget}
starsync1.0 {Support package for SDX utility}
stbimage1.0 {Danilo Chang's Tcl binding to stb_image}
stbimage1.1 {Danilo Chang's Tcl binding to stb_image}
stringfileinfo0.2 {Support package for SDX utility}
sun-valley-ttk {Sun-Valley ttk themes}
tangoicons0.1 {Tango icons using tksvg}
tbcload1.7 {Byte-code loader}
tcl {The Tcl core}
tcl8 {The Tcl core}
tcl8.6 {The Tcl core}