Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f1faa9d8
Commit
f1faa9d8
authored
Jul 04, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: add fontconfig
parent
940a60aa
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
254 additions
and
3 deletions
+254
-3
contrib/src/ass/rules.mak
contrib/src/ass/rules.mak
+1
-3
contrib/src/fontconfig/SHA512SUMS
contrib/src/fontconfig/SHA512SUMS
+1
-0
contrib/src/fontconfig/fontconfig-march.patch
contrib/src/fontconfig/fontconfig-march.patch
+48
-0
contrib/src/fontconfig/fontconfig-noxml2.patch
contrib/src/fontconfig/fontconfig-noxml2.patch
+110
-0
contrib/src/fontconfig/fontconfig-win32.patch
contrib/src/fontconfig/fontconfig-win32.patch
+43
-0
contrib/src/fontconfig/rules.mak
contrib/src/fontconfig/rules.mak
+51
-0
No files found.
contrib/src/ass/rules.mak
View file @
f1faa9d8
...
...
@@ -13,9 +13,7 @@ libass: libass-$(ASS_VERSION).tar.gz .sum-ass
$(UNPACK)
$(MOVE)
#TODO .fontconfig
.ass
:
libass .freetype2
.ass
:
libass .freetype2 .fontconfig
#
$(RECONF)
cd
$<
&&
$(HOSTVARS)
CFLAGS
=
"
$(CFLAGS)
-O3"
./configure
$(HOSTCONF)
--disable-png
--disable-enca
cd
$<
&&
$(MAKE)
install
...
...
contrib/src/fontconfig/SHA512SUMS
0 → 100644
View file @
f1faa9d8
a110e72cc631f1e374324a02f6ba9526b89a547cafe2ae27b9913938b19018843b2940084d62f0dfaf38a6919dea6974fb98422d3908026f6873d5fba17c55a0 fontconfig-2.8.0.tar.gz
contrib/src/fontconfig/fontconfig-march.patch
0 → 100644
View file @
f1faa9d8
diff -urNp fontconfig.orig/fc-arch/Makefile.am fontconfig/fc-arch/Makefile.am
--- fontconfig.orig/fc-arch/Makefile.am 2009-03-18 22:02:20.000000000 +0100
+++ fontconfig/fc-arch/Makefile.am 2010-01-11 17:58:51.000000000 +0100
@@ -22,6 +22,8 @@
# PERFORMANCE OF THIS SOFTWARE.
#
+CPPFLAGS =
+CFLAGS =
CC = @CC_FOR_BUILD@
EXEEXT = @EXEEXT_FOR_BUILD@
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
diff -urNp fontconfig.orig/fc-case/Makefile.am fontconfig/fc-case/Makefile.am
--- fontconfig.orig/fc-case/Makefile.am 2009-03-18 22:02:20.000000000 +0100
+++ fontconfig/fc-case/Makefile.am 2010-01-11 17:56:39.000000000 +0100
@@ -22,6 +22,8 @@
# PERFORMANCE OF THIS SOFTWARE.
#
+CPPFLAGS =
+CFLAGS =
CC = @CC_FOR_BUILD@
EXEEXT = @EXEEXT_FOR_BUILD@
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
diff -urNp fontconfig.orig/fc-glyphname/Makefile.am fontconfig/fc-glyphname/Makefile.am
--- fontconfig.orig/fc-glyphname/Makefile.am 2009-03-18 22:02:20.000000000 +0100
+++ fontconfig/fc-glyphname/Makefile.am 2010-01-11 17:57:29.000000000 +0100
@@ -22,6 +22,8 @@
# PERFORMANCE OF THIS SOFTWARE.
#
+CPPFLAGS =
+CFLAGS =
CC = @CC_FOR_BUILD@
EXEEXT = @EXEEXT_FOR_BUILD@
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
diff -urNp fontconfig.orig/fc-lang/Makefile.am fontconfig/fc-lang/Makefile.am
--- fontconfig.orig/fc-lang/Makefile.am 2009-06-24 19:52:10.000000000 +0200
+++ fontconfig/fc-lang/Makefile.am 2010-01-11 17:56:56.000000000 +0100
@@ -22,6 +22,8 @@
# PERFORMANCE OF THIS SOFTWARE.
#
+CPPFLAGS =
+CFLAGS =
CC = @CC_FOR_BUILD@
EXEEXT = @EXEEXT_FOR_BUILD@
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
contrib/src/fontconfig/fontconfig-noxml2.patch
0 → 100644
View file @
f1faa9d8
--- fontconfig/src/fcxml.c 2009-08-13 16:07:13.000000000 +0200
+++ fontconfig.new/src/fcxml.c 2009-08-13 16:05:41.000000000 +0200
@@ -23,6 +23,8 @@
*/
#include "fcint.h"
+
+#if 0
#include <fcntl.h>
#include <stdarg.h>
#include <dirent.h>
@@ -58,6 +60,8 @@
#undef STRICT
#endif
+#endif
+
static void
FcExprDestroy (FcExpr *e);
@@ -71,6 +75,7 @@
free (test);
}
+#if 0
static FcExpr *
FcExprCreateInteger (FcConfig *config, int i)
{
@@ -179,7 +184,7 @@
}
return e;
}
-
+#endif
static void
FcExprDestroy (FcExpr *e)
{
@@ -255,6 +260,7 @@
free (e);
}
+#if 0
typedef enum _FcElement {
FcElementNone,
FcElementFontconfig,
@@ -2373,6 +2379,7 @@
const FcChar8 *bs = *((FcChar8 **) b);
return FcStrCmp (as, bs);
}
+#endif
static FcBool
FcConfigParseAndLoadDir (FcConfig *config,
@@ -2380,6 +2387,9 @@
const FcChar8 *dir,
FcBool complain)
{
+ return FcFalse;
+}
+#if 0
DIR *d;
struct dirent *e;
FcBool ret = FcTrue;
@@ -2589,3 +2599,4 @@
#define __fcxml__
#include "fcaliastail.h"
#undef __fcxml__
+#endif
diff -ruN fontconfig/src/fcxml.c fontconfig.new/src/fcxml.c
--- fontconfig/src/fcxml.c 2009-08-13 16:08:49.000000000 +0200
+++ fontconfig.new/src/fcxml.c 2009-08-19 00:03:35.000000000 +0200
@@ -2466,13 +2466,18 @@
bail0:
return ret || !complain;
}
+#endif
+
FcBool
FcConfigParseAndLoad (FcConfig *config,
const FcChar8 *name,
FcBool complain)
{
+ return FcFalse;
+}
+#if 0
XML_Parser p;
FcChar8 *filename;
int fd;
--- fontconfig/src/fcinit.c 2010-04-27 15:31:41.000000000 +0200
+++ fontconfig.new/src/fcinit.c 2010-04-27 15:35:42.000000000 +0200
@@ -34,11 +34,16 @@
config = FcConfigCreate ();
if (!config)
goto bail0;
- if (!FcConfigAddDir (config, (FcChar8 *) FC_DEFAULT_FONTS))
+ char *path = malloc( MAX_PATH + 1 );
+ GetWindowsDirectory( path, MAX_PATH + 1 );
+ strcat( path, "\\fonts" );
+// printf( "Fonts dir: %s\n", path );
+ if (!FcConfigAddDir (config, (FcChar8 *) path))
goto bail1;
char dir[MAX_PATH+5];
SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, dir );
strncat( dir, "\\vlc", 4 );
+// printf( "Cache dir: %s\n", dir );
if (!FcConfigAddCacheDir (config, (FcChar8 *)dir))
goto bail1;
return config;
contrib/src/fontconfig/fontconfig-win32.patch
0 → 100644
View file @
f1faa9d8
diff -ruN fontconfig/src/fcint.h fontconfig.good/src/fcint.h
--- fontconfig/src/Makefile.in 2009-06-24 21:05:27.000000000 +0200
+++ fontconfig.good/src/Makefile.in 2009-07-03 00:13:38.000000000 +0200
@@ -664,7 +664,6 @@
# gcc import library install/uninstall
@OS_WIN32_TRUE@install-libtool-import-lib:
-@OS_WIN32_TRUE@ $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
@OS_WIN32_TRUE@ $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
@OS_WIN32_TRUE@uninstall-libtool-import-lib:
--- fontconfig/src/Makefile.am 2009-03-18 22:02:22.000000000 +0100
+++ fontconfig.good/src/Makefile.am 2009-07-03 00:12:50.000000000 +0200
@@ -30,7 +30,6 @@
# gcc import library install/uninstall
install-libtool-import-lib:
- $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
$(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
uninstall-libtool-import-lib:
--- fontconfig/src/fcinit.c 2009-06-06 00:59:27.000000000 +0200
+++ fontconfig.good/src/fcinit.c 2009-07-13 14:58:37.000000000 +0200
@@ -24,6 +24,7 @@
#include "fcint.h"
#include <stdlib.h>
+# include <shlobj.h>
static FcConfig *
FcInitFallbackConfig (void)
@@ -35,7 +36,10 @@
goto bail0;
if (!FcConfigAddDir (config, (FcChar8 *) FC_DEFAULT_FONTS))
goto bail1;
- if (!FcConfigAddCacheDir (config, (FcChar8 *) FC_CACHEDIR))
+ char dir[MAX_PATH+5];
+ SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, dir );
+ strncat( dir, "\\vlc", 4 );
+ if (!FcConfigAddCacheDir (config, (FcChar8 *)dir))
goto bail1;
return config;
contrib/src/fontconfig/rules.mak
0 → 100644
View file @
f1faa9d8
# fontconfig
FONTCONFIG_VERSION
:=
2.8.0
FONTCONFIG_URL
:=
http://fontconfig.org/release/fontconfig-
$(FONTCONFIG_VERSION)
.tar.gz
PKGS
+=
fontconfig
$(TARBALLS)/fontconfig-$(FONTCONFIG_VERSION).tar.gz
:
$(
call
download,
$(FONTCONFIG_URL)
)
.sum-fontconfig
:
fontconfig-$(FONTCONFIG_VERSION).tar.gz
fontconfig
:
fontconfig-$(FONTCONFIG_VERSION).tar.gz .sum-fontconfig
$(UNPACK)
$(APPLY)
$(SRC)
/fontconfig/fontconfig-march.patch
ifdef
HAVE_WIN32
$(APPLY)
$(SRC)
/fontconfig/fontconfig-win32.patch
$(APPLY)
$(SRC)
/fontconfig/fontconfig-noxml2.patch
endif
$(MOVE)
FONTCONFIG_BASE_CONF
=
--prefix
=
$(PREFIX)
\
--with-freetype-config
=
$(PREFIX)
/bin/freetype-config
\
--enable-libxml2
\
--disable-docs
FONTCONFIG_CONF-$(ENABLED)
=
$(HOSTCONF)
$(FONTCONFIG_BASE_CONF)
FONTCONFIG_CONF-$(HAVE_WIN32)
=
$(HOSTCONF)
--with-freetype-config
=
$(PREFIX)
/bin/freetype-config
--disable-docs
--with-arch
=
i686
FONTCONFIG_CONF-$(HAVE_MACOSX)
+=
$(HOSTCONF)
\
--with-cache-dir
=
~/Library/Caches/fontconfig
\
--with-confdir
=
/usr/X11/lib/X11/fonts
\
--with-default-fonts
=
/System/Library/Fonts
\
--with-add-fonts
=
/Library/Fonts,~/Library/Fonts
\
--with-arch
=
$(ARCH)
FONTCONFIG_ENV-$(ENABLED)
=
$(HOSTCC)
LIBXML2_CFLAGS
=
`
$(PREFIX)
/bin/xml2-config
--cflags
`
FONTCONFIG_ENV-$(HAVE_MACOSX)
=
$(HOSTCC)
LIBXML2_CFLAGS
=
`
xml2-config
--cflags
`
LIBXML2_LIBS
=
`
xml2-config
--libs
`
FONTCONFIG_ENV-$(HAVE_WIN32)
=
$(HOSTCC)
.fontconfig
:
fontconfig .freetype .libxml2
ifdef
HAVE_WIN32
$(RECONF)
endif
cd
$<
;
$
(
FONTCONFIG_ENV-1
)
./configure
$
(
FONTCONFIG_CONF-1
)
&&
make
ifndef
HAVE_MACOSX
cd
$<
;
make
install
else
cd
$<
;
make install-exec
&&
(
cd
fontconfig
;
make install-data
)
&&
cp
fontconfig.pc
$(PKG_CONFIG_LIBDIR)
&&
sed
-e
's%/usr/lib/libiconv.la%%'
-i
.orig
$(PREFIX)
/lib/libfontconfig.la
endif
$(INSTALL_NAME)
touch
$@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment