pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/freetype2 fake up a freetype2.pc file for con...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5160c49929e
branches:  trunk
changeset: 541648:b5160c49929e
user:      jnemeth <jnemeth%pkgsrc.org@localhost>
date:      Thu Apr 24 01:11:15 2008 +0000

description:
fake up a freetype2.pc file for configure scripts that want it

diffstat:

 graphics/freetype2/builtin.mk |  31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 217ee17bbb05 -r b5160c49929e graphics/freetype2/builtin.mk
--- a/graphics/freetype2/builtin.mk     Thu Apr 24 00:49:30 2008 +0000
+++ b/graphics/freetype2/builtin.mk     Thu Apr 24 01:11:15 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.9 2006/04/06 06:22:02 reed Exp $
+# $NetBSD: builtin.mk,v 1.10 2008/04/24 01:11:15 jnemeth Exp $
 
 BUILTIN_PKG:=  freetype2
 
@@ -81,6 +81,35 @@
 BUILDLINK_PREFIX.freetype2=    ${X11BASE}
 .    include "../../mk/x11.buildlink3.mk"
 .    include "../../mk/x11.builtin.mk"
+
+.    if !empty(USE_TOOLS:C/:.*//:Mpkg-config)
+do-configure-pre-hook: override-freetype2-pkgconfig
+
+BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig
+FREETYPE2_PKGCFGF=     freetype2.pc
+
+override-freetype2-pkgconfig: override-message-freetype2-pkgconfig
+override-message-freetype2-pkgconfig:
+       @${STEP_MSG} "Installing freetype2.pc."
+
+override-freetype2-pkgconfig:
+       ${_PKG_SILENT}${_PKG_DEBUG}set -e;              \
+       ${MKDIR} ${BLKDIR_PKGCFG};                      \
+       {                                               \
+       ${ECHO} "prefix=${X11BASE}";                            \
+       ${ECHO} "exec_prefix=\$${prefix}";              \
+       ${ECHO} "libdir=\$${exec_prefix}/lib";          \
+       ${ECHO} "includedir=\$${prefix}/include";       \
+       ${ECHO} "";                                     \
+       ${ECHO} "Name: Freetype 2";                             \
+       ${ECHO} "Description: A free, high-quality, and portable font engine."; \
+       ${ECHO} "Version: ${BUILTIN_VERSION.freetype2}";                \
+       ${ECHO} "Libs: -Wl,-R\$${libdir} -L\$${libdir} -lfreetype -lz"; \
+       ${ECHO} "Cflags: -I\$${includedir}/freetype2 -I\$${includedir}"; \
+       } >> ${BLKDIR_PKGCFG}/${FREETYPE2_PKGCFGF};
+
+.    endif # pkg-config
+
 .  endif
 
 .endif # CHECK_BUILTIN.freetype2



Home | Main Index | Thread Index | Old Index