summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-10-08 09:59:30 +0000
committerjlam <jlam@pkgsrc.org>2002-10-08 09:59:30 +0000
commit26ef830f987aa54a958535f8270960bb7f81372f (patch)
treeb021b1be4afd45e1f71b692f3603ee72a80c1447 /graphics
parenta4d131141452a6935c64d5b451fbab7bd441c5f0 (diff)
downloadpkgsrc-26ef830f987aa54a958535f8270960bb7f81372f.tar.gz
Unused.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/freetype2/buildlink-freetype-config.in37
-rw-r--r--graphics/freetype2/buildlink.mk95
2 files changed, 0 insertions, 132 deletions
diff --git a/graphics/freetype2/buildlink-freetype-config.in b/graphics/freetype2/buildlink-freetype-config.in
deleted file mode 100644
index a65baa2d715..00000000000
--- a/graphics/freetype2/buildlink-freetype-config.in
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: buildlink-freetype-config.in,v 1.1 2001/07/13 08:18:29 jlam Exp $
-#
-# If FreeType2 is distributed as part of XFree86, then it's missing a
-# freetype-config script that emits the preprocessor and linker flags
-# necessary to find the FreeType2 headers and libraries. This script
-# provides that functionality within the buildlink framework and is used
-# by freetype2/buildlink.mk.
-
-while [ $# -gt 0 ]
-do
- case "$1" in
- -*=*) optarg=`echo "$1" | @SED@ 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- case $1 in
- --prefix=*|--prefix|--exec-prefix=*|--exec-prefix)
- echo @X11BASE@
- ;;
- --version)
- freetype_h=@X11BASE@/include/freetype2/freetype/freetype.h
- major=`@AWK@ '/.*#define.*FREETYPE_MAJOR/ { print $3 }' ${freetype_h}`
- minor=`@AWK@ '/.*#define.*FREETYPE_MINOR/ { print $3 }' ${freetype_h}`
- echo ${major}.${minor}
- exit 0
- ;;
- --cflags)
- echo -I@BUILDLINK_DIR@/include/freetype2 ${includes}
- ;;
- --libs)
- echo -L@BUILDLINK_DIR@/lib -lfreetype
- ;;
- esac
- shift
-done
diff --git a/graphics/freetype2/buildlink.mk b/graphics/freetype2/buildlink.mk
deleted file mode 100644
index 533fd359c74..00000000000
--- a/graphics/freetype2/buildlink.mk
+++ /dev/null
@@ -1,95 +0,0 @@
-# $NetBSD: buildlink.mk,v 1.17 2002/08/25 18:39:00 jlam Exp $
-#
-# This Makefile fragment is included by packages that use freetype2.
-#
-# To use this Makefile fragment, simply:
-#
-# (1) Optionally define BUILDLINK_DEPENDS.freetype2 to the dependency pattern
-# for the version of freetype2 desired.
-# (2) Include this Makefile fragment in the package Makefile,
-# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
-# search path, and
-# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
-# path.
-
-.if !defined(FREETYPE2_BUILDLINK_MK)
-FREETYPE2_BUILDLINK_MK= # defined
-
-.include "../../mk/bsd.buildlink.mk"
-
-BUILDLINK_DEPENDS.freetype2?= freetype2>=2.0.1
-
-# Check if we got FreeType2 distributed with XFree86 4.x or if we need to
-# depend on the freetype2 package.
-#
-_REQUIRE_BUILTIN_FREETYPE2?= NO
-.if exists(${X11BASE}/include/freetype2/freetype/freetype.h)
-_IS_BUILTIN_FREETYPE2!= ${EGREP} -c BuildFreetype2Library ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
-.else
-_IS_BUILTIN_FREETYPE2= 0
-.endif
-.if (${_IS_BUILTIN_FREETYPE2} == "0") && (${_REQUIRE_BUILTIN_FREETYPE2} == "NO")
-_NEED_FREETYPE2= YES
-.else
-_NEED_FREETYPE2= NO
-.endif
-
-.if ${_NEED_FREETYPE2} == "YES"
-DEPENDS+= ${BUILDLINK_DEPENDS.freetype2}:../../graphics/freetype2
-EVAL_PREFIX+= BUILDLINK_PREFIX.freetype2=freetype2
-BUILDLINK_PREFIX.freetype2_DEFAULT= ${LOCALBASE}
-.else
-BUILDLINK_PREFIX.freetype2= ${X11BASE}
-.endif
-
-BUILDLINK_FILES.freetype2= include/ft2build.h
-BUILDLINK_FILES.freetype2+= include/freetype2/ft2build.h
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/*
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/cache/*
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/config/*
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/internal/*
-BUILDLINK_FILES.freetype2+= lib/libfreetype.*
-
-REPLACE_BUILDLINK_SED+= \
- -e "s|-I${BUILDLINK_DIR}/\(include/freetype2\)|-I${BUILDLINK_PREFIX.freetype2}/\1|g"
-BUILDLINK_CONFIG_WRAPPER_SED+= \
- -e "s|-I${BUILDLINK_PREFIX.freetype2}/\(include/freetype2\)|-I${BUILDLINK_DIR}/\1|g"
-
-BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.freetype2}
-BUILDLINK_TARGETS.freetype2= freetype2-buildlink
-BUILDLINK_TARGETS.freetype2+= freetype2-buildlink-config-wrapper
-BUILDLINK_TARGETS.freetype2+= freetype2-buildlink-config
-
-BUILDLINK_CONFIG.freetype2= \
- ${BUILDLINK_PREFIX.freetype2}/bin/freetype-config
-BUILDLINK_CONFIG_WRAPPER.freetype2= \
- ${BUILDLINK_DIR}/bin/freetype-config
-
-REPLACE_BUILDLINK_SED+= \
- -e "s|${BUILDLINK_CONFIG_WRAPPER.freetype2}|${BUILDLINK_CONFIG.freetype2}|g"
-
-.if defined(USE_CONFIG_WRAPPER)
-FREETYPE_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.freetype2}
-CONFIGURE_ENV+= FREETYPE_CONFIG="${FREETYPE_CONFIG}"
-MAKE_ENV+= FREETYPE_CONFIG="${FREETYPE_CONFIG}"
-.endif
-
-pre-configure: ${BUILDLINK_TARGETS.freetype2}
-freetype2-buildlink: _BUILDLINK_USE
-freetype2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
-
-freetype2-buildlink-config:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -f ${BUILDLINK_CONFIG_WRAPPER.freetype2} ]; then \
- ${ECHO_BUILDLINK_MSG} "Creating config script ${BUILDLINK_CONFIG_WRAPPER.freetype2}."; \
- ${MKDIR} ${BUILDLINK_CONFIG_WRAPPER.freetype2:H}; \
- ${SED} -e "s|@AWK@|${AWK}|g" \
- -e "s|@SED@|${SED}|g" \
- -e "s|@X11BASE@|${X11BASE}|g" \
- -e "s|@BUILDLINK_DIR@|${BUILDLINK_DIR}|g" \
- ${.CURDIR}/../../graphics/freetype2/buildlink-freetype-config.in \
- > ${BUILDLINK_CONFIG_WRAPPER.freetype2}; \
- ${CHMOD} +x ${BUILDLINK_CONFIG_WRAPPER.freetype2}; \
- fi
-
-.endif # FREETYPE2_BUILDLINK_MK