summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdv2pdf
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-19 13:59:30 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-19 13:59:30 +0000
commit0b7b2c69ec83497d9accab064da0f4ad07662d42 (patch)
treee8f22a2acecbf3035850f56beb1c8161c53cdf2d /Build/source/texk/xdv2pdf
parentee507bbd1fc483c58acb33cca25509a4dd81df9b (diff)
prepare for new build system
git-svn-id: svn://tug.org/texlive/trunk@12429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdv2pdf')
-rw-r--r--Build/source/texk/xdv2pdf/Makefile.in.orig80
-rw-r--r--Build/source/texk/xdv2pdf/ac/withenable.ac3
-rw-r--r--Build/source/texk/xdv2pdf/configure.in.orig66
3 files changed, 149 insertions, 0 deletions
diff --git a/Build/source/texk/xdv2pdf/Makefile.in.orig b/Build/source/texk/xdv2pdf/Makefile.in.orig
new file mode 100644
index 00000000000..1b1183e6562
--- /dev/null
+++ b/Build/source/texk/xdv2pdf/Makefile.in.orig
@@ -0,0 +1,80 @@
+# @configure_input@
+
+kpse_include ../make/paths.mk
+kpse_include ../make/common.mk
+kpse_include ../make/programs.mk
+
+CXX = c++
+OBJC = cc
+CXXLD = $(CXX)
+cxx_link_command = $(CXXLD) -o $@ $(LDFLAGS)
+kpathsea_cxx_link = $(LIBTOOL) --mode=link $(cxx_link_command)
+
+ALL_CXXFLAGS = @CXXFLAGS@ @DEFS@ $(XXCFLAGS) -I. -I$(srcdir)
+ALL_OBJCFLAGS = @DEFS@ $(XXOBJCFLAGS) -I. -I$(srcdir)
+
+.SUFFIXES: .cpp .o .m
+.cpp.o:
+ $(CXX) $(ALL_CXXFLAGS) -c $<
+.m.o:
+ $(OBJC) $(ALL_OBJCFLAGS) -c $<
+
+FRAMEWORKS = \
+ -framework Carbon \
+ -framework QuickTime
+
+FRAMEWORKS_t1w = -framework Cocoa
+LIBS_t1w = # -lm
+
+program = xdv2pdf
+t1wrap = T1Wrap
+programs = $(program) $(t1wrap)
+default all: $(programs)
+
+objects=xdv2pdf_main.o xdv2pdf.o xdv2pdf_specials.o
+
+objects_t1w=T1Wrap.o SimplePSInterpreter.o
+
+$(objects): Makefile
+$(objects_t1m): Makefile
+
+$(program): $(objects) $(kpathsea) $(ALL_LIBS_DEP)
+ $(kpathsea_cxx_link) $(objects) $(FRAMEWORKS) $(LOADLIBES)
+
+$(t1wrap): $(objects_t1w)
+ $(kpathsea_cxx_link) $(objects_t1w) $(FRAMEWORKS_t1w) $(LOADLIBES)
+
+T1Wrap.o: $(srcdir)/T1Wrap.m
+ $(OBJC) $(ALL_OBJCFLAGS) -c $<
+
+SimplePSInterpreter.o: $(srcdir)/SimplePSInterpreter.m
+ $(OBJC) $(ALL_OBJCFLAGS) -c $<
+
+kpse_include ../make/tkpathsea.mk
+
+install: install-exec install-data
+uninstall: uninstall-exec uninstall-data
+
+distclean::
+ $(RM) c-auto.h
+
+install-exec:
+ $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
+ $(INSTALL_LIBTOOL_PROG) $(program) $(bindir)
+ $(INSTALL) $(t1wrap) $(bindir)
+
+uninstall-exec:
+ cd $(bindir); rm -f $(programs)
+
+install-data:
+ $(SHELL) $(top_srcdir)/../mkinstalldirs $(man1dir)
+
+uninstall-data:
+
+kpse_include ../make/config.mk
+
+info dvi check:
+
+kpse_include ../make/clean.mk
+kpse_include ../make/rdepend.mk
+kpse_include depend.mk
diff --git a/Build/source/texk/xdv2pdf/ac/withenable.ac b/Build/source/texk/xdv2pdf/ac/withenable.ac
new file mode 100644
index 00000000000..5cf14d7e517
--- /dev/null
+++ b/Build/source/texk/xdv2pdf/ac/withenable.ac
@@ -0,0 +1,3 @@
+## texk/xdv2pdf/ac/withenable.ac
+## configure options and TL libraries required for xdv2pdf
+KPSE_WITH_PROG([xdv2pdf], [kpathsea])
diff --git a/Build/source/texk/xdv2pdf/configure.in.orig b/Build/source/texk/xdv2pdf/configure.in.orig
new file mode 100644
index 00000000000..5e89a2cd668
--- /dev/null
+++ b/Build/source/texk/xdv2pdf/configure.in.orig
@@ -0,0 +1,66 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(xdv2pdf.cpp)
+
+define([_version_],"0.998")
+
+VERSION=_version_
+AC_SUBST(VERSION)
+AC_DEFINE(VERSION, _version_, [package version])
+AC_DEFINE(PACKAGE, "xdv2pdf", [package name])
+
+AC_CONFIG_HEADERS([c-auto.h:c-auto.in], [date >stamp-auto])
+
+dnl Disable maintainer portions of included makefile fragments
+MAINT='#'
+AC_SUBST(MAINT)
+
+dnl First, check if we're configuring on Mac OS X -- can't build elsewhere
+
+sinclude(../web2c/xetexdir/tests.ac)
+
+AC_HAS_CARBON
+if test "x$has_carbon" = xno; then
+ with_xdv2pdf=no
+ exit
+fi
+
+AC_HAS_QUICKTIME
+if test "x$has_quicktime" = xno; then
+ with_xdv2pdf=no
+ exit
+fi
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_CXX
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
+AC_DEFINE([KPATHSEA], 1, [define if you have kpathsea])
+AC_DEFINE([HAVE_KPATHSEA], 1, [define if you have kpathsea])
+AC_DEFINE([HAVE_KPSE_FORMATS], 1, [define if kpathsea supports type1 and vf formats])
+
+TTF_OPT=''
+AC_SUBST(TTF_OPT)
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS(unistd.h)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_SIZE_T
+AC_STRUCT_TM
+
+AC_C_BIGENDIAN
+
+dnl Checks for library functions.
+AC_FUNC_MEMCMP
+AC_CHECK_FUNCS(strspn system)
+AC_CHECK_LIB(m, main)
+
+KPSE_CONFIG_FILES([Makefile])
+
+AC_OUTPUT