mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Initial recipe for fontconfig, may need further testing
This commit is contained in:
101
media-libs/fontconfig/fontconfig-2.11.0.recipe
Normal file
101
media-libs/fontconfig/fontconfig-2.11.0.recipe
Normal file
@@ -0,0 +1,101 @@
|
||||
SUMMARY="Fontconfig is a library for font customization and configuration."
|
||||
DESCRIPTION="Fontconfig is a library for font customization and configuration."
|
||||
HOMEPAGE="http://www.freedesktop.org/wiki/Software/fontconfig"
|
||||
SRC_URI="http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.0.tar.bz2"
|
||||
CHECKSUM_MD5="000bd4baf7aefa828e03414d0c8c7dc5"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2000-2005, 2006-2007 Keith Packard
|
||||
2005 Patrick Lam
|
||||
2009 Roozbeh Pournader
|
||||
2008-2009 Red Hat, Inc.
|
||||
2008 Danilo Segan
|
||||
2012 Google, Inc."
|
||||
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
fontconfig$secondaryArchSuffix = $portVersion compat >= 2
|
||||
cmd:fc_cache
|
||||
cmd:fc_cat
|
||||
cmd:fc_list
|
||||
cmd:fc_match
|
||||
cmd:fc_pattern
|
||||
cmd:fc_query
|
||||
cmd:fc_scan
|
||||
cmd:fc_validate
|
||||
lib:libfontconfig$secondaryArchSuffix = 1.8.0 compat >= 1
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:libtool
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
"
|
||||
|
||||
PATCHES="fontconfig-2.11.0.patch"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/fonts/conf.d directory
|
||||
settings/fonts/fonts.conf auto-merge
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p `finddir B_USER_CACHE_DIRECTORY`
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake
|
||||
FONTS_DIR=`finddir B_SYSTEM_FONTS_DIRECTORY`
|
||||
FONTS_DIR3=`finddir B_BEOS_FONTS_DIRECTORY`
|
||||
FONTS_DIR3=`finddir B_USER_FONTS_DIRECTORY`
|
||||
CACHE_DIR=`finddir B_USER_CACHE_DIRECTORY`
|
||||
runConfigure ./configure \
|
||||
--enable-libxml2 \
|
||||
--with-default-fonts=${FONTS_DIR} \
|
||||
--with-add-fonts=${FONTS_DIR2},${FONTS_DIR3} \
|
||||
--with-cache-dir=${CACHE_DIR}
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libfontconfig
|
||||
|
||||
#devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
libfontconfig${secondaryArchSuffix}_devel = $portVersion compat >= 2.1
|
||||
devel:libfontconfig$secondaryArchSuffix = 1.8.0 compat >= 1
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
libfontconfig$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
22
media-libs/fontconfig/patches/fontconfig-2.11.0.patch
Normal file
22
media-libs/fontconfig/patches/fontconfig-2.11.0.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/test/Makefile.am b/test/Makefile.am
|
||||
index 52c63dc..f270b50 100644
|
||||
--- a/test/Makefile.am
|
||||
+++ b/test/Makefile.am
|
||||
@@ -16,7 +16,7 @@ TESTDATA=4x6.pcf 8x16.pcf out.expected fonts.conf.in
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
|
||||
|
||||
-check_PROGRAMS = test-migration
|
||||
+check_PROGRAMS =
|
||||
if HAVE_PTHREAD
|
||||
check_PROGRAMS += test-pthread
|
||||
test_pthread_LDADD = $(top_builddir)/src/libfontconfig.la
|
||||
@@ -26,7 +26,8 @@ test_pthread_LDADD = $(top_builddir)/src/libfontconfig.la
|
||||
endif
|
||||
noinst_PROGRAMS = $(check_PROGRAMS)
|
||||
|
||||
+check_PROGRAMS +=
|
||||
test_migration_LDADD = $(top_builddir)/src/libfontconfig.la
|
||||
|
||||
EXTRA_DIST=$(check_SCRIPTS) $(TESTDATA)
|
||||
|
||||
Reference in New Issue
Block a user