Ports: add libiconv port

This commit is contained in:
Vincent Sanders 2019-10-06 11:11:16 +01:00 committed by Andreas Kling
parent 904bd3b441
commit d3d972820e
Notes: sideshowbarker 2024-07-19 11:44:03 +09:00
3 changed files with 55 additions and 0 deletions

6
Ports/libiconv/package.sh Executable file
View 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

View 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* \

View 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