Skip to content

Commit 1a8bde6

Browse files
committed
xiph-update
1 parent 9642ea3 commit 1a8bde6

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

tools/ports/ogg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
import os
77
import shutil
88

9-
TAG = 'version_1'
10-
HASH = '929e8d6003c06ae09593021b83323c8f1f54532b67b8ba189f4aedce52c25dc182bac474de5392c46ad5b0dea5a24928e4ede1492d52f4dd5cd58eea9be4dba7'
9+
VERSION = '1.3.5'
10+
HASH = 'e7b5f5d469090b66dbb33634591ae6de41af3a5644c10488e59ba7428ed78912e208a2c0fbb5003ec5b7eb2a0102a2f85cecb21fa9512d790139ecc45b6d03f4'
1111

1212

1313
def needed(settings):
1414
return settings.USE_OGG
1515

1616

1717
def get(ports, settings, shared):
18-
ports.fetch_project('ogg', f'https://github.com/emscripten-ports/ogg/archive/{TAG}.zip', sha512hash=HASH)
18+
ports.fetch_project('ogg', f'https://github.com/xiph/ogg/releases/download/v{VERSION}/libogg-{VERSION}.zip', sha512hash=HASH)
1919

2020
def create(final):
21-
source_path = ports.get_dir('ogg', 'Ogg-' + TAG)
21+
source_path = ports.get_dir('ogg', 'libogg-' + VERSION)
2222
config_types_h = os.path.join(os.path.dirname(__file__), 'ogg/config_types.h')
2323
shutil.copyfile(config_types_h, os.path.join(source_path, 'include/ogg/config_types.h'))
2424
ports.install_headers(os.path.join(source_path, 'include', 'ogg'), target='ogg')

tools/ports/ogg/config_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ typedef uint16_t ogg_uint16_t;
2121
typedef int32_t ogg_int32_t;
2222
typedef uint32_t ogg_uint32_t;
2323
typedef int64_t ogg_int64_t;
24+
typedef uint64_t ogg_uint64_t;
2425

2526
#endif

tools/ports/vorbis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import os
77

8-
TAG = 'version_1'
9-
HASH = '99bee75beb662f8520bbb18ad6dbf8590d30eb3a7360899f0ac4764ca72fe8013da37c9df21e525f9d2dc5632827d4b4cea558cbc938e7fbed0c41a29a7a2dc5'
8+
VERSION = '1.3.7'
9+
HASH = '10edd193f44f2b2d6085672e257b5be11066f5db27348d4cab53789bf9e8739c2df2cd7f42b83e4edbab53e10b5dc84320d6aab1deac0d8e18196a8a88b19b77'
1010

1111
deps = ['ogg']
1212

@@ -16,10 +16,10 @@ def needed(settings):
1616

1717

1818
def get(ports, settings, shared):
19-
ports.fetch_project('vorbis', f'https://github.com/emscripten-ports/vorbis/archive/{TAG}.zip', sha512hash=HASH)
19+
ports.fetch_project('vorbis', f'https://github.com/xiph/vorbis/releases/download/v{VERSION}/libvorbis-{VERSION}.zip', sha512hash=HASH)
2020

2121
def create(final):
22-
source_path = ports.get_dir('vorbis', 'Vorbis-' + TAG)
22+
source_path = ports.get_dir('vorbis', 'libvorbis-' + VERSION)
2323
ports.install_headers(os.path.join(source_path, 'include', 'vorbis'), target='vorbis')
2424
ports.make_pkg_config('vorbis', TAG, '-sUSE_VORBIS')
2525
ports.build_port(os.path.join(source_path, 'lib'), final, 'vorbis',

0 commit comments

Comments
 (0)