Skip to content

Commit

Permalink
Updating libs (png, pcre, expat, tcl) to recent versions
Browse files Browse the repository at this point in the history
also rename libtcl.<ver>.{a,lib} to libtcl.{a,lib}
re-download your libs, etc

P.S. there are no OSX, Linux@x86_64 and FreeBSD versions of static libs.... somebody should compile it.
# EXPAT
./configure --enable-static --disable-shared --with-gnu-ld
make
# PCRE
./configure --enable-static --disable-shared --disable-cpp --disable-utf8 --disable-unicode-properties --with-gnu-ld
make
# PNG
./configure --enable-static --disable-shared --with-gnu-ld
make
# TCL
./configure --disable-shared --enable-static
make
# $T(R.I.P) =:-)
strip --strip-unneeded --remove-section=.comment *.a
  • Loading branch information
disconn3ct committed Feb 7, 2008
1 parent 0760019 commit 6306ebc
Show file tree
Hide file tree
Showing 15 changed files with 5,439 additions and 3,212 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -130,7 +130,7 @@ else
LDFLAGS = -ggdb -lm -lpthread
endif

COMMON_LIBS = libs/$(LIB_PREFIX)/minizip.a libs/$(LIB_PREFIX)/libpng.a libs/$(LIB_PREFIX)/libz.a libs/$(LIB_PREFIX)/libpcre.a libs/$(LIB_PREFIX)/libexpat.a libs/$(LIB_PREFIX)/libtcl8.4.a
COMMON_LIBS = libs/$(LIB_PREFIX)/minizip.a libs/$(LIB_PREFIX)/libpng.a libs/$(LIB_PREFIX)/libz.a libs/$(LIB_PREFIX)/libpcre.a libs/$(LIB_PREFIX)/libexpat.a libs/$(LIB_PREFIX)/libtcl.a
GL_LIBS = libs/$(LIB_PREFIX)/libjpeg.a

ifeq ($(OS),freebsd)
Expand Down
19 changes: 8 additions & 11 deletions embed_tcl.h
Expand Up @@ -20,22 +20,19 @@
* $Id: embed_tcl.h,v 1.4 2007-10-01 18:31:06 disconn3ct Exp $
*/

#ifndef EMBED_TCL_H
#define EMBED_TCL_H
#ifndef __EMBED_TCL_H__
#define __EMBED_TCL_H__

#define TCL_VERSION "8.4"

#if defined(_WIN32)
# define TCL_LIB_NAME "tcl84.dll"
#elif defined(__APPLE__)
# define TCL_LIB_NAME "libtcl.dylib"
#if defined (_WIN32)
# define TCL_LIB_NAME "tcl.dll"
#elif defined (__APPLE__)
# define TCL_LIB_NAME "libtcl.dylib"
#else
# define TCL_LIB_NAME "libtcl.so"
# define TCL_LIB_NAME "libtcl.so"
#endif

extern int in_tcl;


void TCL_InterpInit (void);
void TCL_InterpInitCommands (void);
void TCL_Shutdown (void);
Expand All @@ -49,4 +46,4 @@ void TCL_RegisterMacro (macro_command_t *macro);
void TCL_ExecuteAlias (cmd_alias_t *alias);
int TCL_MessageHook (const char *msg, unsigned trigger_type);

#endif /* EMBED_TCL_H */
#endif /* !__EMBED_TCL_H__ */
5 changes: 3 additions & 2 deletions libs/expat.h
Expand Up @@ -987,7 +987,8 @@ enum XML_FeatureEnum {
XML_FEATURE_MIN_SIZE,
XML_FEATURE_SIZEOF_XML_CHAR,
XML_FEATURE_SIZEOF_XML_LCHAR,
XML_FEATURE_NS
XML_FEATURE_NS,
XML_FEATURE_LARGE_SIZE
/* Additional features must be added to the end of this enum. */
};

Expand All @@ -1008,7 +1009,7 @@ XML_GetFeatureList(void);
*/
#define XML_MAJOR_VERSION 2
#define XML_MINOR_VERSION 0
#define XML_MICRO_VERSION 0
#define XML_MICRO_VERSION 1

#ifdef __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions libs/expat_external.h
Expand Up @@ -34,9 +34,9 @@
system headers may assume the cdecl convention.
*/
#ifndef XMLCALL
#if defined(XML_USE_MSC_EXTENSIONS)
#if defined(_MSC_VER)
#define XMLCALL __cdecl
#elif defined(__GNUC__) && defined(__i386)
#elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER)
#define XMLCALL __attribute__((cdecl))
#else
/* For any platform which uses this definition and supports more than
Expand Down
2 changes: 1 addition & 1 deletion libs/freebsd-x86/download.sh
Expand Up @@ -3,6 +3,6 @@ wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/fre
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/freebsd-x86/libjpeg.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/freebsd-x86/libpcre.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/freebsd-x86/libpng.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/freebsd-x86/libtcl8.4.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/freebsd-x86/libtcl.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/freebsd-x86/libz.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/freebsd-x86/minizip.a
2 changes: 1 addition & 1 deletion libs/linux-x86/download.sh
Expand Up @@ -3,7 +3,7 @@ wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/lin
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/libjpeg.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/libpcre.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/libpng.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/libtcl8.4.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/libtcl.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/libz.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/minizip.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86/asmlibe.a
2 changes: 1 addition & 1 deletion libs/linux-x86_64/download.sh
Expand Up @@ -3,6 +3,6 @@ wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/lin
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86_64/libjpeg.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86_64/libpcre.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86_64/libpng.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86_64/libtcl8.4.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86_64/libtcl.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86_64/libz.a
wget http://ezquake.svn.sourceforge.net/viewvc/*checkout*/ezquake/trunk/libs/linux-x86_64/minizip.a
131 changes: 70 additions & 61 deletions libs/pcre.h
Expand Up @@ -5,7 +5,7 @@
/* This is the public header file for the PCRE library, to be #included by
applications that call the PCRE functions.
Copyright (c) 1997-2006 University of Cambridge
Copyright (c) 1997-2008 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -45,44 +45,46 @@ POSSIBILITY OF SUCH DAMAGE.

/* The current PCRE version information. */

/* NOTES FOR FUTURE MAINTAINERS: Do not use numbers with leading zeros, because
they may be treated as octal constants. The PCRE_PRERELEASE feature is for
identifying release candidates. It might be defined as -RC2, for example. In
real releases, it should be defined empty. Do not change the alignment of these
statments. The code in ./configure greps out the version numbers by using "cut"
to get values from column 29 onwards. These are substituted into pcre-config
and libpcre.pc. The values are not put into configure.ac and substituted here
(which would simplify this issue) because that makes life harder for those who
cannot run ./configure. As it now stands, this file need not be edited in that
circumstance. */

#define PCRE_MAJOR 7
#define PCRE_MINOR 0
#define PCRE_PRERELEASE
#define PCRE_DATE 18-Dec-2006

/* Win32 uses DLL by default; it needs special stuff for exported functions
when building PCRE. */

#ifdef _WIN32
# ifdef PCRE_DEFINITION
# ifdef DLL_EXPORT
# define PCRE_DATA_SCOPE __declspec(dllexport)
#define PCRE_MINOR 6
#define PCRE_PRERELEASE
#define PCRE_DATE 2008-01-28

/* When an application links to a PCRE DLL in Windows, the symbols that are
imported have to be identified as such. When building PCRE, the appropriate
export setting is defined in pcre_internal.h, which includes this file. So we
don't change existing definitions of PCRE_EXP_DECL and PCRECPP_EXP_DECL. */

#if defined(_WIN32) && !defined(PCRE_STATIC)
# ifndef PCRE_EXP_DECL
# define PCRE_EXP_DECL extern __declspec(dllimport)
# endif
# ifdef __cplusplus
# ifndef PCRECPP_EXP_DECL
# define PCRECPP_EXP_DECL extern __declspec(dllimport)
# endif
# else
# ifndef PCRE_STATIC
# define PCRE_DATA_SCOPE extern __declspec(dllimport)
# ifndef PCRECPP_EXP_DEFN
# define PCRECPP_EXP_DEFN __declspec(dllimport)
# endif
# endif
#endif

/* Otherwise, we use the standard "extern". */
/* By default, we use the standard "extern" declarations. */

#ifndef PCRE_DATA_SCOPE
#ifndef PCRE_EXP_DECL
# ifdef __cplusplus
# define PCRE_DATA_SCOPE extern "C"
# define PCRE_EXP_DECL extern "C"
# else
# define PCRE_DATA_SCOPE extern
# define PCRE_EXP_DECL extern
# endif
#endif

#ifdef __cplusplus
# ifndef PCRECPP_EXP_DECL
# define PCRECPP_EXP_DECL extern
# endif
# ifndef PCRECPP_EXP_DEFN
# define PCRECPP_EXP_DEFN
# endif
#endif

Expand Down Expand Up @@ -123,6 +125,9 @@ extern "C" {
#define PCRE_NEWLINE_LF 0x00200000
#define PCRE_NEWLINE_CRLF 0x00300000
#define PCRE_NEWLINE_ANY 0x00400000
#define PCRE_NEWLINE_ANYCRLF 0x00500000
#define PCRE_BSR_ANYCRLF 0x00800000
#define PCRE_BSR_UNICODE 0x01000000

/* Exec-time and get/set-time error codes */

Expand All @@ -148,7 +153,7 @@ extern "C" {
#define PCRE_ERROR_DFA_WSSIZE (-19)
#define PCRE_ERROR_DFA_RECURSE (-20)
#define PCRE_ERROR_RECURSIONLIMIT (-21)
#define PCRE_ERROR_NULLWSLIMIT (-22)
#define PCRE_ERROR_NULLWSLIMIT (-22) /* No longer actually used */
#define PCRE_ERROR_BADNEWLINE (-23)

/* Request types for pcre_fullinfo() */
Expand All @@ -166,6 +171,9 @@ extern "C" {
#define PCRE_INFO_NAMETABLE 9
#define PCRE_INFO_STUDYSIZE 10
#define PCRE_INFO_DEFAULT_TABLES 11
#define PCRE_INFO_OKPARTIAL 12
#define PCRE_INFO_JCHANGED 13
#define PCRE_INFO_HASCRORLF 14

/* Request types for pcre_config(). Do not re-arrange, in order to remain
compatible. */
Expand All @@ -178,6 +186,7 @@ compatible. */
#define PCRE_CONFIG_STACKRECURSE 5
#define PCRE_CONFIG_UNICODE_PROPERTIES 6
#define PCRE_CONFIG_MATCH_LIMIT_RECURSION 7
#define PCRE_CONFIG_BSR 8

/* Bit flags for the pcre_extra structure. Do not re-arrange or redefine
these bits, just add new ones on the end, in order to remain compatible. */
Expand Down Expand Up @@ -244,52 +253,52 @@ that is triggered by the (?) regex item. For Virtual Pascal, these definitions
have to take another form. */

#ifndef VPCOMPAT
PCRE_DATA_SCOPE void *(*pcre_malloc)(size_t);
PCRE_DATA_SCOPE void (*pcre_free)(void *);
PCRE_DATA_SCOPE void *(*pcre_stack_malloc)(size_t);
PCRE_DATA_SCOPE void (*pcre_stack_free)(void *);
PCRE_DATA_SCOPE int (*pcre_callout)(pcre_callout_block *);
PCRE_EXP_DECL void *(*pcre_malloc)(size_t);
PCRE_EXP_DECL void (*pcre_free)(void *);
PCRE_EXP_DECL void *(*pcre_stack_malloc)(size_t);
PCRE_EXP_DECL void (*pcre_stack_free)(void *);
PCRE_EXP_DECL int (*pcre_callout)(pcre_callout_block *);
#else /* VPCOMPAT */
PCRE_DATA_SCOPE void *pcre_malloc(size_t);
PCRE_DATA_SCOPE void pcre_free(void *);
PCRE_DATA_SCOPE void *pcre_stack_malloc(size_t);
PCRE_DATA_SCOPE void pcre_stack_free(void *);
PCRE_DATA_SCOPE int pcre_callout(pcre_callout_block *);
PCRE_EXP_DECL void *pcre_malloc(size_t);
PCRE_EXP_DECL void pcre_free(void *);
PCRE_EXP_DECL void *pcre_stack_malloc(size_t);
PCRE_EXP_DECL void pcre_stack_free(void *);
PCRE_EXP_DECL int pcre_callout(pcre_callout_block *);
#endif /* VPCOMPAT */

/* Exported PCRE functions */

PCRE_DATA_SCOPE pcre *pcre_compile(const char *, int, const char **, int *,
PCRE_EXP_DECL pcre *pcre_compile(const char *, int, const char **, int *,
const unsigned char *);
PCRE_DATA_SCOPE pcre *pcre_compile2(const char *, int, int *, const char **,
PCRE_EXP_DECL pcre *pcre_compile2(const char *, int, int *, const char **,
int *, const unsigned char *);
PCRE_DATA_SCOPE int pcre_config(int, void *);
PCRE_DATA_SCOPE int pcre_copy_named_substring(const pcre *, const char *,
PCRE_EXP_DECL int pcre_config(int, void *);
PCRE_EXP_DECL int pcre_copy_named_substring(const pcre *, const char *,
int *, int, const char *, char *, int);
PCRE_DATA_SCOPE int pcre_copy_substring(const char *, int *, int, int, char *,
PCRE_EXP_DECL int pcre_copy_substring(const char *, int *, int, int, char *,
int);
PCRE_DATA_SCOPE int pcre_dfa_exec(const pcre *, const pcre_extra *,
PCRE_EXP_DECL int pcre_dfa_exec(const pcre *, const pcre_extra *,
const char *, int, int, int, int *, int , int *, int);
PCRE_DATA_SCOPE int pcre_exec(const pcre *, const pcre_extra *, PCRE_SPTR,
PCRE_EXP_DECL int pcre_exec(const pcre *, const pcre_extra *, PCRE_SPTR,
int, int, int, int *, int);
PCRE_DATA_SCOPE void pcre_free_substring(const char *);
PCRE_DATA_SCOPE void pcre_free_substring_list(const char **);
PCRE_DATA_SCOPE int pcre_fullinfo(const pcre *, const pcre_extra *, int,
PCRE_EXP_DECL void pcre_free_substring(const char *);
PCRE_EXP_DECL void pcre_free_substring_list(const char **);
PCRE_EXP_DECL int pcre_fullinfo(const pcre *, const pcre_extra *, int,
void *);
PCRE_DATA_SCOPE int pcre_get_named_substring(const pcre *, const char *,
PCRE_EXP_DECL int pcre_get_named_substring(const pcre *, const char *,
int *, int, const char *, const char **);
PCRE_DATA_SCOPE int pcre_get_stringnumber(const pcre *, const char *);
PCRE_DATA_SCOPE int pcre_get_stringtable_entries(const pcre *, const char *,
PCRE_EXP_DECL int pcre_get_stringnumber(const pcre *, const char *);
PCRE_EXP_DECL int pcre_get_stringtable_entries(const pcre *, const char *,
char **, char **);
PCRE_DATA_SCOPE int pcre_get_substring(const char *, int *, int, int,
PCRE_EXP_DECL int pcre_get_substring(const char *, int *, int, int,
const char **);
PCRE_DATA_SCOPE int pcre_get_substring_list(const char *, int *, int,
PCRE_EXP_DECL int pcre_get_substring_list(const char *, int *, int,
const char ***);
PCRE_DATA_SCOPE int pcre_info(const pcre *, int *, int *);
PCRE_DATA_SCOPE const unsigned char *pcre_maketables(void);
PCRE_DATA_SCOPE int pcre_refcount(pcre *, int);
PCRE_DATA_SCOPE pcre_extra *pcre_study(const pcre *, int, const char **);
PCRE_DATA_SCOPE const char *pcre_version(void);
PCRE_EXP_DECL int pcre_info(const pcre *, int *, int *);
PCRE_EXP_DECL const unsigned char *pcre_maketables(void);
PCRE_EXP_DECL int pcre_refcount(pcre *, int);
PCRE_EXP_DECL pcre_extra *pcre_study(const pcre *, int, const char **);
PCRE_EXP_DECL const char *pcre_version(void);

#ifdef __cplusplus
} /* extern "C" */
Expand Down

0 comments on commit 6306ebc

Please sign in to comment.