# 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 + +