ports/141043: x11-toolkit/pango: fix fontconfig/freetype2/cairo handling
Dima Panov
fluffy at FreeBSD.org
Tue Dec 1 02:30:02 UTC 2009
>Number: 141043
>Category: ports
>Synopsis: x11-toolkit/pango: fix fontconfig/freetype2/cairo handling
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 01 02:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Dima Panov
>Release: FreeBSD 9.0-900002-CURRENT amd64
>Organization:
Fluffy.Khv.RU
>Environment:
System: FreeBSD 9.0-900002-CURRENT #0: Tue Nov 24 08:49:07 VLAT 2009
fluffy at Fluffy.Khv.RU:/usr/obj/usr/src/sys/Spot
>Description:
x11-toolkit/pango: fix fontconfig/freetype2/cairo handling:
by default, build of pango gives this log:
[...]
GEN PangoFT2-1.0.gir
GEN Pango-1.0.typelib
Package pangoft2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangoft2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangoft2' found
Package pangoft2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangoft2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangoft2' found
In file included from /tmp/usr/ports/x11-toolkits/pango/work/pango-1.26.1/pango/pango-ot.h:25,
from <stdin>:4:
../pango/pangofc-font.h:25:22: error: ft2build.h: No such file or directory
../pango/pangofc-font.h:26:10: error: #include expects "FILENAME" or <FILENAME>
../pango/pangofc-font.h:27:35: error: fontconfig/fontconfig.h: No such file or directory
In file included from ../pango/pango-font.h:25,
from ../pango/pangofc-font.h:28,
from /tmp/usr/ports/x11-toolkits/pango/work/pango-1.26.1/pango/pango-ot.h:25,
from <stdin>:4:
../pango/pango-coverage.h:25:18: error: glib.h: No such file or directory
In file included from ../pango/pango-font.h:26,
from ../pango/pangofc-font.h:28,
from /tmp/usr/ports/x11-toolkits/pango/work/pango-1.26.1/pango/pango-ot.h:25,
from <stdin>:4:
../pango/pango-types.h:26:25: error: glib-object.h: No such file or directory
[...]
This happens by absend apropriate CFLAGS with required include paths.
>How-To-Repeat:
>Fix:
--- pango.diff begins here ---
Index: x11-toolkits/pango/Makefile
===================================================================
RCS file: /home/ncvs/ports/x11-toolkits/pango/Makefile,v
retrieving revision 1.113
diff -u -r1.113 Makefile
--- x11-toolkits/pango/Makefile 28 Nov 2009 20:06:22 -0000 1.113
+++ x11-toolkits/pango/Makefile 1 Dec 2009 02:20:47 -0000
@@ -48,13 +48,25 @@
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --with-x=no
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
+ -I${LOCALBASE}/include/fontconfig \
+ -I${LOCALBASE}/include/cairo \
+ ${GLIB2_CFLAGS} -I${LOCALBASE}/include" \
+ CFLAGS="-I${LOCALBASE}/include/freetype2 \
+ -I${LOCALBASE}/include/fontconfig \
+ -I${LOCALBASE}/include/cairo \
${GLIB2_CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
PLIST_SUB+= X11="@comment "
.else
USE_XORG+= xft xrender
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
+ -I${LOCALBASE}/include/fontconfig \
+ -I${LOCALBASE}/include/cairo \
+ ${GLIB2_CFLAGS} -I${LOCALBASE}/include" \
+ CFLAGS="-I${LOCALBASE}/include/freetype2 \
+ -I${LOCALBASE}/include/fontconfig \
+ -I${LOCALBASE}/include/cairo \
${GLIB2_CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
PLIST_SUB+= X11=""
--- pango.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list