[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/plugins/pango Makefile.am,NONE,1.1.2.1 bootst
From: |
Teunis Peters <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/plugins/pango Makefile.am,NONE,1.1.2.1 bootstrap,NONE,1.1.2.1 configure.in,NONE,1.1.2.1 pango.cpp,NONE,1.1.2.1 |
Date: |
Wed, 06 Nov 2002 17:18:48 -0500 |
Update of /cvsroot/paragui/paragui/plugins/pango
In directory subversions:/tmp/cvs-serv725/plugins/pango
Added Files:
Tag: devel-opengl
Makefile.am bootstrap configure.in pango.cpp
Log Message:
pango plugin add
also -I/usr/include/paragui2 added to paragui2.pc...
--- NEW FILE ---
# pango plugin
# ------------
bin_PROGRAMS = pangoplugin
INCLUDES = -I$(top_srcdir) $(PLUGIN_CFLAGS)
pangoplugin_SOURCES = pango.cpp
# pangoplugin_INCLUDES = $(CFLAGS) -I$(top_srcdir)
# pangoplugin_LDADD = @PLUGIN_LDFLAGS@ $(top_srcdir)/libphysfs.la
# pangoplugin_INCLUDES = @PLUGIN_CFLAGS@ -I$(top_srcdir)
# pangoplugin_LDADD = @PLUGIN_LDFLAGS@ $(top_srcdir)/libphysfs.la
--- NEW FILE ---
#!/bin/sh
cd `dirname $0`
set -e
echo "Initial preparation...this can take awhile, so sit tight..."
perl -w -e 'use File::Copy; exit 0 if (-f "Makefile.am"); my $x = `automake
--version |head -n 1`; chomp($x); $x = 0.0 if ($x !~
s/\A.*?(\d+\.\d+).*\Z/$1/); if ($x < 1.5) { copy("./Makefile.am.oldautomake",
"./Makefile.am"); } else { copy("./Makefile.am.newautomake", "./Makefile.am");
}'
aclocal
libtoolize --automake --copy --force
autoheader
automake --foreign --add-missing --copy
autoconf
echo "You are now ready to run ./configure ..."
--- NEW FILE ---
# Process this file with autoconf to produce a configure script.
AC_INIT(pango.cpp)
dnl ---------------------------------------------------------------------
dnl System/version info
dnl ---------------------------------------------------------------------
# Making releases:
# MICRO_VERSION += 1;
# INTERFACE_AGE += 1;
# BINARY_AGE += 1;
# if any functions have been added, set INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set BINARY_AGE and INTERFACE_AGE to 0.
MAJOR_VERSION=0
MINOR_VERSION=0
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
PANGO_REQUIRED_VERSION=1.0.1
PARAGUI_REQUIRED_VERSION=1.1.0
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(MICRO_VERSION)
AC_SUBST(INTERFACE_AGE)
AC_SUBST(BINARY_AGE)
AC_SUBST(VERSION)
# libtool versioning
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
LT_REVISION=$INTERFACE_AGE
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
dnl Detect the canonical host and target build environment
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
dnl Setup for automake
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(pango, $VERSION)
dnl ---------------------------------------------------------------------
dnl Compilers and other tools
dnl ---------------------------------------------------------------------
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_LIBTOOL_WIN32_DLL
LIBTOOL="libtool"
AM_PROG_LIBTOOL
AC_CHECK_PROG(we_have_sed, sed, yes, no)
dnl ---------------------------------------------------------------------
dnl Checks for libraries.
dnl ---------------------------------------------------------------------
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
dnl AC_C_CONST
dnl AC_TYPE_SIZE_T
# Checks for library functions.
# This is only in the bleeding edge autoconf distro...
#AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([memset strrchr])
AC_CHECK_SIZEOF(int, 4)
CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -no-undefined"
# T's work on fonts...
# do I need this? ATK_REQUIRED_VERSION=1.0.1
# PKG_CHECK_MODULES(BASE_DEPENDENCIES, atk >= $ATK_REQUIRED_VERSION pango >=
$PANGO_REQUIRED_VERSION)
PKG_CHECK_MODULES(BASE_DEPENDENCIES, paragui2 >= $PARAGUI_REQUIRED_VERSION
pango >= $PANGO_REQUIRED_VERSION)
# for windows: PANGO_PACKAGES=pangowin32
# for X: PANGO_PACKAGES="pangoxft pangox"
# for linux/fb: PANGO_PACKAGES=pangoft2
# generic: PANGO_PACKAGES=pango
dnl I'm going with pangowin32 | pangoft2 and ignoring pango*x
dnl figure out arch/DLOPEN/OpenGL
dnl AC_MSG_CHECKING(System Architecture)
case "$target" in
*-*-linux*)
ARCH=linux
PANGO_PACKAGES=pangoft2
;;
*-*-bsdi*)
ARCH=bsdi
PANGO_PACKAGES=pangoft2
;;
*-*-freebsd*)
ARCH=freebsd
PANGO_PACKAGES=pangoft2
;;
*-*-netbsd*)
ARCH=netbsd
PANGO_PACKAGES=pangoft2
;;
*-*-openbsd*)
ARCH=openbsd
PANGO_PACKAGES=pangoft2
# OpenBSD does not define "unix"
CFLAGS="$CFLAGS -Dunix"
;;
*-*-sysv5*)
ARCH=sysv5
PANGO_PACKAGES=pangoft2
;;
*-*-solaris*)
ARCH=solaris
PANGO_PACKAGES=pangoft2
CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86
;;
*-*-irix*)
ARCH=irix
PANGO_PACKAGES=pangoft2
;;
*-*-hpux*)
ARCH=hpux
PANGO_PACKAGES=pangoft2
;;
*-*-aix*)
ARCH=aix
PANGO_PACKAGES=pangoft2
;;
*-*-osf*)
ARCH=osf
PANGO_PACKAGES=pangoft2
;;
*-*-qnx*)
ARCH=qnx
PANGO_PACKAGES=pangoft2
;;
*-*-cygwin* | *-*-mingw32*)
ARCH=win32
if test "$build" != "$target"; then # cross-compiling
# Default cross-compile location
ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
else
# Look for the location of the tools and install there
if [ "$BUILD_PREFIX" != "" ]; then
ac_default_prefix=$BUILD_PREFIX
fi
fi
PANGO_PACKAGES=pangowin32
# The Win32 platform requires special setup
case "$target" in
*-*-cygwin*)
CFLAGS="$CFLAGS -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin"
LIBS="$LIBS -mno-cygwin"
;;
*-*-mingw32*)
;;
esac
;;
*-*-beos*)
ARCH=beos
ac_default_prefix=/boot/develop/tools/gnupro
PANGO_PACKAGES=pangoft2
;;
*-*-macos*)
# This would be used if cross-compiling to MacOS 9. No way to
# use it at present, but Apple is working on a X-to-9 compiler
# for which this case would be handy.
ARCH=macos
PANGO_PACKAGES=pangoft2
;;
*-*-darwin* )
# Strictly speaking, we want "Mac OS X", not "Darwin", which is
# just the OS X kernel sans upper layers like Carbon and Cocoa.
# But config.guess comes back with "darwin", so go with the flow.
ARCH=macosx
PANGO_PACKAGES=pangoft2
;;
esac
AC_SUBST(ARCH)
AC_MSG_CHECKING(Pango flags)
if $PKG_CONFIG --exists $PANGO_PACKAGES ; then
PANGO_CFLAGS=`$PKG_CONFIG --cflags $PANGO_PACKAGES`
PANGO_LIBS=`$PKG_CONFIG --libs $PANGO_PACKAGES`
AC_MSG_RESULT($PANGO_CFLAGS $PANGO_LIBS)
else
AC_MSG_ERROR([
*** Pango not found. Pango is required to build pango plugin
*** for ParaGUI.
*** See http://www.pango.org for Pango information.
*** For the framebuffer target, you will need to build
*** Pango with freetype support.
])
fi
if $PKG_CONFIG --uninstalled $PANGO_PACKAGES; then
:
else
AC_CHECK_LIB(pango-1.0, pango_context_new, :, AC_MSG_ERROR([
*** Can't link to Pango. Pango is required to build pango plugin
*** for ParaGUI. For more information see http://www.pango.org]), $PANGO_LIBS)
fi
PANGOPLUGIN_PACKAGES="$PANGO_PACKAGES paragui2"
dnl PLUGIN_
PLUGIN_CFLAGS="$CFLAGS `$PKG_CONFIG --cflags $PANGOPLUGIN_PACKAGES`"
LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs $PANGOPLUGIN_PACKAGES`"
AC_SUBST(PLUGIN_CFLAGS)
dnl AC_SUBST(PLUGIN_LDFLAGS)
AC_OUTPUT([
Makefile
])
dnl end of configure.in ...
--- NEW FILE ---
/* pango.cpp
* ---------
* start of pango plugin for paragui
*/
#include "paragui.h"
int main(int argc, char* argv[]) {
return 0;
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/plugins/pango Makefile.am,NONE,1.1.2.1 bootstrap,NONE,1.1.2.1 configure.in,NONE,1.1.2.1 pango.cpp,NONE,1.1.2.1,
Teunis Peters <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui autogen.sh,1.2.2.2,1.2.2.3 configure.in,1.8.2.9,1.8.2.10 paragui2.pc.in,1.1.2.1,1.1.2.2
- Next by Date:
[paragui-cvs] CVS: paragui configure.in,1.8.2.10,1.8.2.11
- Previous by thread:
[paragui-cvs] CVS: paragui autogen.sh,1.2.2.2,1.2.2.3 configure.in,1.8.2.9,1.8.2.10 paragui2.pc.in,1.1.2.1,1.1.2.2
- Next by thread:
[paragui-cvs] CVS: paragui configure.in,1.8.2.10,1.8.2.11
- Index(es):