diff options
author | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2005-05-18 20:33:36 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2005-05-18 20:33:36 +0000 |
commit | 198d5780c3e319ae14bfdb6fc1b846de36ae5785 (patch) | |
tree | cfec289b8d85de612c0a20a85f5f8e26023820b7 | |
parent | 742d1149a10b083ef83cd8c01a20e4352d88fd4f (diff) | |
download | xorg-lib-libXp-198d5780c3e319ae14bfdb6fc1b846de36ae5785.tar.gz |
Add Xp build system
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | COPYING | 22 | ||||
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | INSTALL | 8 | ||||
-rw-r--r-- | Makefile.am | 31 | ||||
-rw-r--r-- | NEWS | 0 | ||||
-rw-r--r-- | README | 0 | ||||
-rwxr-xr-x | autogen.sh | 12 | ||||
-rw-r--r-- | configure.ac | 48 | ||||
-rw-r--r-- | man/Makefile.am | 37 | ||||
-rw-r--r-- | src/Makefile.am | 37 | ||||
-rw-r--r-- | xp.pc.in | 10 |
12 files changed, 215 insertions, 0 deletions
@@ -0,0 +1 @@ +Keith Packard, HP and XFree86. @@ -0,0 +1,22 @@ +$Id$ + +Copyright © 2001,2003 Keith Packard + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation, and that the name of Keith Packard not be used in +advertising or publicity pertaining to distribution of the software without +specific, written prior permission. Keith Packard makes no +representations about the suitability of this software for any purpose. It +is provided "as is" without express or implied warranty. + +KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..b661c06 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,9 @@ +2005-05-17 <ssp@aware-of-vacuity.boston.redhat.com> + + * configure.ac: Remove rest of half-removed if statement + + * ChangeLog: remove irrelevant entries + +2005-04-16 Josh Triplett <josh@freedesktop.org> + + * Makefile.am: Tell automake about the manpage. @@ -0,0 +1,8 @@ +Xp is built with the traditional configure script: + + $ ./configure --prefix=/usr/X11R6 + +This should generate valid Makefiles, then: + + $ make + $ make install diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..26b95ec --- /dev/null +++ b/Makefile.am @@ -0,0 +1,31 @@ +# +# $Id$ +# +# Copyright © 2003 Keith Packard, Noah Levitt +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of Keith Packard not be used in +# advertising or publicity pertaining to distribution of the software without +# specific, written prior permission. Keith Packard makes no +# representations about the suitability of this software for any purpose. It +# is provided "as is" without express or implied warranty. +# +# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +AM_CFLAGS = $(XPRINT_CFLAGS) + +SUBDIRS = src man + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = xp.pc + +EXTRA_DIST = xp.pc.in autogen.sh diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..904cd67 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..a4d53a5 --- /dev/null +++ b/configure.ac @@ -0,0 +1,48 @@ +dnl +dnl $Id$ +dnl +dnl Copyright © 2003 Keith Packard, Noah Levitt +dnl +dnl Permission to use, copy, modify, distribute, and sell this software and its +dnl documentation for any purpose is hereby granted without fee, provided that +dnl the above copyright notice appear in all copies and that both that +dnl copyright notice and this permission notice appear in supporting +dnl documentation, and that the name of Keith Packard not be used in +dnl advertising or publicity pertaining to distribution of the software without +dnl specific, written prior permission. Keith Packard makes no +dnl representations about the suitability of this software for any purpose. It +dnl is provided "as is" without express or implied warranty. +dnl +dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +dnl PERFORMANCE OF THIS SOFTWARE. +dnl +dnl Process this file with autoconf to create configure. + +AC_PREREQ([2.57]) + +AC_INIT(libXp, 7.0.0, [xorg@lists.x.org], libXp) +AM_INIT_AUTOMAKE([dist-bzip2]) +AM_MAINTAINER_MODE + +AM_CONFIG_HEADER(config.h) + +# Check for progs +AC_PROG_CC +AC_PROG_LIBTOOL + +# Check for X and print proto +PKG_CHECK_MODULES(XPRINT, x11 printproto) + +AC_SUBST(XP_CFLAGS) +AC_SUBST(XP_LIBS) + +AC_OUTPUT([Makefile + src/Makefile + man/Makefile + xp.pc]) + diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 0000000..e2274a2 --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,37 @@ +man_MANS = \ + libXp.3 \ + XpCancelDoc.3 \ + XpCancelJob.3 \ + XpCancelPage.3 \ + XpCreateContext.3 \ + XpDestroyContext.3 \ + XpEndDoc.3 \ + XpEndJob.3 \ + XpEndPage.3 \ + XpFreePrinterList.3 \ + XpGetAttributes.3 \ + XpGetContext.3 \ + XpGetDocumentData.3 \ + XpGetImageResolution.3 \ + XpGetLocaleHinter.3 \ + XpGetOneAttribute.3 \ + XpGetPageDimensions.3 \ + XpGetPdmStartParams.3 \ + XpGetPrinterList.3 \ + XpGetScreenOfContext.3 \ + XpInputSelected.3 \ + XpPutDocumentData.3 \ + XpQueryExtension.3 \ + XpQueryScreens.3 \ + XpQueryVersion.3 \ + XpRehashPrinterList.3 \ + XpSelectInput.3 \ + XpSetAttributes.3 \ + XpSetContext.3 \ + XpSetImageResolution.3 \ + XpSetLocaleHinter.3 \ + XpStartDoc.3 \ + XpStartJob.3 \ + XpStartPage.3 + +EXTRA_DIST=$(man_MANS) diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..d6b91a4 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,37 @@ +lib_LTLIBRARIES = libXp.la + +libXp_la_SOURCES = \ + XpAttr.c \ + XpContext.c \ + XpDoc.c \ + XpExtUtil.c \ + XpExtVer.c \ + XpGetData.c \ + XpImageRes.c \ + XpInput.c \ + XpJob.c \ + XpLocale.c \ + XpNotifyPdm.c \ + XpPage.c \ + XpPageDim.c \ + XpPrinter.c \ + XpPutData.c \ + XpScreens.c \ + \ + XpExtUtil.h + +libXp_la_LIBADD = @X_LIBS@ + +INCLUDES = -I$(top_srcdir)/include/X11/extensions + +# +# Library version info. Check the libtool docs for +# instructions on when and how to change this value +# +# bump when the ABI changes +XP_CURRENT=2 +# bump for non-ABI changes, reset to zero when CURRENT changes +XP_REVISION=0 +# bump when the ABI changes in backward-compatible fashion +XF_AGE=2 +libXp_la_LDFLAGS = -version-info ${XP_CURRENT}:${XP_REVISION}:${XP_AGE} -no-undefined diff --git a/xp.pc.in b/xp.pc.in new file mode 100644 index 0000000..a725825 --- /dev/null +++ b/xp.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Xp +Description: X Print Library +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir} @X_CFLAGS@ +Libs: -L${libdir} -lXp @X_LIBS@ |