mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-01 20:10:28 +00:00
Ports: add libiconv port
This commit is contained in:
parent
904bd3b441
commit
d3d972820e
Notes:
sideshowbarker
2024-07-19 11:44:03 +09:00
Author: https://github.com/kyllikki Commit: https://github.com/SerenityOS/serenity/commit/d3d972820e8 Pull-request: https://github.com/SerenityOS/serenity/pull/642 Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 55 additions and 0 deletions
6
Ports/libiconv/package.sh
Executable file
6
Ports/libiconv/package.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash ../.port_include.sh
|
||||
port=libiconv
|
||||
version=1.16
|
||||
useconfigure=true
|
||||
files="https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz libiconv-1.16.tar.gz"
|
||||
patchlevel=1
|
38
Ports/libiconv/patches/fix-autoconf.patch
Normal file
38
Ports/libiconv/patches/fix-autoconf.patch
Normal file
|
@ -0,0 +1,38 @@
|
|||
--- libiconv-1.16/build-aux/config.sub.orig 2019-10-05 22:37:52.881885592 +0100
|
||||
+++ libiconv-1.16/build-aux/config.sub 2019-10-05 22:41:00.116990779 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright 1992-2019 Free Software Foundation, Inc.
|
||||
|
||||
-timestamp='2019-01-05'
|
||||
+timestamp='2019-10-05'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@@ -1341,6 +1341,7 @@
|
||||
# Each alternative MUST end in a * to match a version number.
|
||||
# sysv* is not here because it comes later, after sysvr4.
|
||||
gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
|
||||
+ | serenity* \
|
||||
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
|
||||
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
|
||||
| sym* | kopensolaris* | plan9* \
|
||||
--- libiconv-1.16-orig/libcharset/build-aux/config.sub 2019-04-26 19:29:05.000000000 +0100
|
||||
+++ libiconv-1.16/libcharset/build-aux/config.sub 2019-10-05 23:16:08.710006227 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright 1992-2019 Free Software Foundation, Inc.
|
||||
|
||||
-timestamp='2019-01-05'
|
||||
+timestamp='2019-10-05'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@@ -1341,6 +1341,7 @@
|
||||
# Each alternative MUST end in a * to match a version number.
|
||||
# sysv* is not here because it comes later, after sysvr4.
|
||||
gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
|
||||
+ | serenity* \
|
||||
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
|
||||
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
|
||||
| sym* | kopensolaris* | plan9* \
|
11
Ports/libiconv/patches/fix-getprogname.patch
Normal file
11
Ports/libiconv/patches/fix-getprogname.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- libiconv-1.16-orig/srclib/getprogname.c 2019-04-26 19:29:00.000000000 +0100
|
||||
+++ libiconv-1.16/srclib/getprogname.c 2019-10-10 23:36:34.193619582 +0100
|
||||
@@ -244,6 +244,8 @@
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
+# elif defined __serenity__
|
||||
+ return "?";
|
||||
# else
|
||||
# error "getprogname module not ported to this OS"
|
||||
# endif
|
Loading…
Reference in a new issue