From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f65.google.com ([209.85.218.65]) by ewsd; Sun Aug 30 00:20:59 EDT 2020 Received: by mail-ej1-f65.google.com with SMTP id a26so4226235ejc.2 for <9front@9front.org>; Sat, 29 Aug 2020 21:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=RlTYNJzcm8C1+dVNm1++dYIaf101LSRlllREQJOgnp0=; b=rt5RFNSSnqexSz99qMifbWQMGv02V/5lg5HoOuWOpASbCoL1WtAQUUs6zcJAy6p19u h3X2kHdemLFJtUgrY6hJUwCCiO2HL7Zlzkmf7AkPOGKPEIzPCrao1UAeGxpSzgdAfYcr Kx5x1kCDP2eNTxVuPv3VYzMIm2j2hTjSwAahEZ4I/LrT2emCVmGQTRtVwrBQ7WixqJwR iBfzui7bxRXBYxIl/ZuHwejOP2pGWWCBDuisIGBfZ+POxcuSuLuGSAo1OHyoxbSwBoO4 59EoGPBQEHjfaIFEBIOTAAxdjIcuqnMNcgsU/UllKUeNqpQuB7p3f2Tl5ubiLBhn5YZp R1hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=RlTYNJzcm8C1+dVNm1++dYIaf101LSRlllREQJOgnp0=; b=q3M4NvxGhg4hykOZVwencH6YP2kq0OvdNq0RR+4KKq6riWrT8/eTOiQw+m/40QyrSe x+HHdGNB5XtLFgMwqxxiWPTcYcL+uRxSRhaSwEO/3JDNI0SxSIzjFpGIHk/0Zf/k7cxK cPjSY9ERDTk7xDpZwDuewpjMfWZZ95KdX0U5JahdpKVfdXsUO8Y/WWG0gvGHVzI3Vb08 RbcDoL84Pvfh0BH1qzaBzqqRuY9Kx9xhIhO6CsxNGxOeUcq7dHtwPWcFnIoJYE7S9D83 ubvgiZYDG9HdrUGidyA15EGe8VV+/5MmG3NnngqvwC8uMXdICNP4cKSSiOIVJy8e6N1a eTmA== X-Gm-Message-State: AOAM530vd3Mxc3mef8GLlJZZKYzFdpswGGgQu8AQs5TNvSHFec9UbPa4 7qBFqHz7+vjJw0C7qZUx6/SxProCaB8= X-Google-Smtp-Source: ABdhPJyg7K/TgC17m1b6X4wCaumGnO/McD4uUAOAyiCQgrFMo28Mr/6riKVbtvCnTl4fOAz96IaXgQ== X-Received: by 2002:a17:906:80d3:: with SMTP id a19mr6419346ejx.217.1598761253123; Sat, 29 Aug 2020 21:20:53 -0700 (PDT) Return-Path: Received: from Hugin (ptr-eitwsfeqnbu45pbta6b.18120a2.ip6.access.telenet.be. [2a02:1811:e405:5900:f203:8cff:fe97:17c3]) by smtp.gmail.com with ESMTPSA id yh29sm4217194ejb.0.2020.08.29.21.20.51 for <9front@9front.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Aug 2020 21:20:52 -0700 (PDT) Date: Sun, 30 Aug 2020 06:20:15 +0200 From: Jens Staal To: 9front@9front.org Subject: [ports] WIP: libwebp Message-ID: <20200830042015.wzljvbo5ll5smncn@Hugin> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="iadagvr2xhldpzln" Content-Disposition: inline List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: agile DOM package --iadagvr2xhldpzln Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, I have been trying to get libwebp into ports as an optional dependency for netsurf. Unfortunately I have hit some compilation issues that I don't know how to solve (I think it involves "##" substitutions which I remember was a problem before when trying to compile perl too). If anyone else is interested in getting libwebp support, I here share my current progress on the port. It is currently under a wip directory in ports, but would move to ape-libs when it works. --iadagvr2xhldpzln Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="wip_ports_libwebp.patch" # HG changeset patch # User glenda@Krypton # Date 1598752226 -7200 # Node ID a4b847abc7772090b01a12a4fd7c3aedafa5ba6a # Parent 31104ca3b87bc43f919b4a6a206562eee4cecb51 Work-in-progress attempt at porting libwebp (optional dependency of netsurf). Currently issues with compiling certain files (due to "##" substitution?), causing "_body_last_cpuinfo" to be appended to some variable names. diff -r 31104ca3b87b -r a4b847abc777 wip/libwebp/files/mkfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wip/libwebp/files/mkfile Sun Aug 30 03:50:26 2020 +0200 @@ -0,0 +1,195 @@ += 0.2.0 +Cflags: -I${includedir} +Libs: -L${libdir} -lwebpdemux diff -r 31104ca3b87b -r a4b847abc777 wip/libwebp/files/src/libwebp.pc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wip/libwebp/files/src/libwebp.pc Sun Aug 30 03:50:26 2020 +0200 @@ -0,0 +1,11 @@ +prefix=/$objtype +exec_prefix=${prefix}/ +libdir=${exec_prefix}/lib/ape +includedir=/sys/include/ape + +Name: libwebp +Description: Library for the WebP graphics format +Version: 1.1.0 +Cflags: -I${includedir} +Libs: -L${libdir} -lwebp +Libs.private: -lm diff -r 31104ca3b87b -r a4b847abc777 wip/libwebp/files/src/libwebpdecoder.pc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wip/libwebp/files/src/libwebpdecoder.pc Sun Aug 30 03:50:26 2020 +0200 @@ -0,0 +1,11 @@ +prefix=/$objtype +exec_prefix=${prefix} +libdir=${exec_prefix}/lib/ape +includedir=/sys/include/ape + +Name: libwebpdecoder +Description: Library for the WebP graphics format (decode only) +Version: 1.1.0 +Cflags: -I${includedir} +Libs: -L${libdir} -lwebpdecoder +Libs.private: -lm diff -r 31104ca3b87b -r a4b847abc777 wip/libwebp/files/src/mux/libwebpmux.pc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wip/libwebp/files/src/mux/libwebpmux.pc Sun Aug 30 03:50:26 2020 +0200 @@ -0,0 +1,12 @@ +prefix=/$objtype +exec_prefix=${prefix} +libdir=${exec_prefix}/lib/ape +includedir=/sys/include/ape + +Name: libwebpmux +Description: Library for manipulating the WebP graphics format container +Version: 1.1.0 +Requires: libwebp >= 0.2.0 +Cflags: -I${includedir} +Libs: -L${libdir} -lwebpmux +Libs.private: -lm diff -r 31104ca3b87b -r a4b847abc777 wip/libwebp/files/src/webp/config.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wip/libwebp/files/src/webp/config.h Sun Aug 30 03:50:26 2020 +0200 @@ -0,0 +1,150 @@ +/* src/webp/config.h. Generated from config.h.in by configure. */ +/* src/webp/config.h.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* Set to 1 if __builtin_bswap16 is available */ +/* #undef HAVE_BUILTIN_BSWAP16 */ + +/* Set to 1 if __builtin_bswap32 is available */ +/* #undef HAVE_BUILTIN_BSWAP32 */ + +/* Set to 1 if __builtin_bswap64 is available */ +/* #undef HAVE_BUILTIN_BSWAP64 */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_CPU_FEATURES_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLFCN_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_GLUT_GLUT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_GL_GLUT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_INTTYPES_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MEMORY_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_OPENGL_GLUT_H */ + +/* Have PTHREAD_PRIO_INHERIT. */ +/* #undef HAVE_PTHREAD_PRIO_INHERIT */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SHLWAPI_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STRINGS_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINCODEC_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINDOWS_H */ + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "libwebp" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "https://bugs.chromium.org/p/webp" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libwebp" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libwebp 1.1.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libwebp" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "http://developers.google.com/speed/webp" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "1.1.0" + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "1.1.0" + +/* Set to 1 if GIF library is installed */ +#define WEBP_HAVE_GIF 1 + +/* Set to 1 if OpenGL is supported */ +/* #undef WEBP_HAVE_GL */ + +/* Set to 1 if JPEG library is installed */ +#define WEBP_HAVE_JPEG 1 + +/* Set to 1 if NEON is supported */ +/* #undef WEBP_HAVE_NEON */ + +/* Set to 1 if runtime detection of NEON is enabled */ +/* #undef WEBP_HAVE_NEON_RTCD */ + +/* Set to 1 if PNG library is installed */ +#define WEBP_HAVE_PNG 1 + +/* Set to 1 if SDL library is installed */ +/* #undef WEBP_HAVE_SDL */ + +/* Set to 1 if SSE2 is supported */ +/* #undef WEBP_HAVE_SSE2 */ + +/* Set to 1 if SSE4.1 is supported */ +/* #undef WEBP_HAVE_SSE41 */ + +/* Set to 1 if TIFF library is installed */ +#define WEBP_HAVE_TIFF 1 + +/* Enable near lossless encoding */ +#define WEBP_NEAR_LOSSLESS 1 + +/* Undefine this to disable thread support. */ +/* #undef WEBP_USE_THREAD */ + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif diff -r 31104ca3b87b -r a4b847abc777 wip/libwebp/manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wip/libwebp/manifest Sun Aug 30 03:50:26 2020 +0200 @@ -0,0 +1,2 @@ +98a052268cc4d5ece27f76572a7f50293f439c17a98e67c4ea0c7ed6f50ef043 libwebp-1.1.0.tar.gz + diff -r 31104ca3b87b -r a4b847abc777 wip/libwebp/mkfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wip/libwebp/mkfile Sun Aug 30 03:50:26 2020 +0200 @@ -0,0 +1,15 @@ +' +DESCRIPTION='webp library for APE' +VERSION=1.1.0 +DEPS=ape-libs/libtiff ape-libs/giflib ape-libs/libpng + +WEBSOURCE=https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$VERSION.tar.gz +BUILDPATH=work/libwebp-$VERSION +BUILDCOMMAND=mk +INSTALLCOMMAND=mk install +CLEANCOMMAND=mk clean +UNINSTALLCOMMAND=mk nuke + +