summaryrefslogtreecommitdiff
path: root/print/xetex
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2009-04-11 21:35:19 +0000
committerminskim <minskim@pkgsrc.org>2009-04-11 21:35:19 +0000
commitc208b53c255e49eebcefafd2464af01d7493236d (patch)
treee2422d0ee12336e5b330bbda14c933d7b4c5a5db /print/xetex
parent2a967600b6aa2a160ee81c9483ffa02231b32b62 (diff)
downloadpkgsrc-c208b53c255e49eebcefafd2464af01d7493236d.tar.gz
Import xetex-0.999.6 as print/xetex.
XeTeX is a typesetting system based on a merger of Donald Knuth's TeX system with Unicode and modern font technologies.
Diffstat (limited to 'print/xetex')
-rw-r--r--print/xetex/DESCR2
-rw-r--r--print/xetex/Makefile76
-rw-r--r--print/xetex/PLIST2
-rw-r--r--print/xetex/distinfo14
-rw-r--r--print/xetex/patches/patch-aa19
-rw-r--r--print/xetex/patches/patch-ab28
-rw-r--r--print/xetex/patches/patch-ac9
-rw-r--r--print/xetex/patches/patch-ad9
-rw-r--r--print/xetex/patches/patch-ae9
-rw-r--r--print/xetex/patches/patch-af26
-rw-r--r--print/xetex/patches/patch-ag33
-rw-r--r--print/xetex/patches/patch-ah10
-rw-r--r--print/xetex/patches/patch-ak13
13 files changed, 250 insertions, 0 deletions
diff --git a/print/xetex/DESCR b/print/xetex/DESCR
new file mode 100644
index 00000000000..49902a133f5
--- /dev/null
+++ b/print/xetex/DESCR
@@ -0,0 +1,2 @@
+XeTeX is a typesetting system based on a merger of Donald Knuth's TeX
+system with Unicode and modern font technologies.
diff --git a/print/xetex/Makefile b/print/xetex/Makefile
new file mode 100644
index 00000000000..52e0bea9042
--- /dev/null
+++ b/print/xetex/Makefile
@@ -0,0 +1,76 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+DISTNAME= texlive-20080816-source
+PKGNAME= xetex-0.999.6
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/}
+EXTRACT_SUFX= .tar.lzma
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.tug.org/xetex/
+COMMENT= TeX system with Unicode and modern font technologies
+
+CONFLICTS+= web2c<=7.5.7
+
+EXTRACT_ELEMENTS= ${DISTNAME}/config \
+ ${DISTNAME}/libs/icu-xetex \
+ ${DISTNAME}/libs/md5 \
+ ${DISTNAME}/libs/slnunicode \
+ ${DISTNAME}/libs/xpdf ${DISTNAME}/libs/obsdcompat \
+ ${DISTNAME}/texk/make \
+ ${DISTNAME}/texk/config.guess \
+ ${DISTNAME}/texk/config.sub \
+ ${DISTNAME}/texk/install.sh \
+ ${DISTNAME}/texk/mkinstalldirs \
+ ${DISTNAME}/texk/web2c
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake lex perl yacc
+WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c
+
+CONFIGURE_ARGS+= --without-etex --without-omega --without-alepf \
+ --without-pdfetex --without-luatex
+CONFIGURE_ARGS+= --with-system-freetype2 \
+ --with-freetype2-include=${BUILDLINK_PREFIX.freetype2}/include \
+ --with-freetype2-libdir=${BUILDLINK_PREFIX.freetype2}/lib
+CONFIGURE_ARGS+= --with-fontconfig=${BUILDLINK_PREFIX.fontconfig}
+CONFIGURE_ARGS+= --with-system-pnglib \
+ --with-pnglib-include=${BUILDLINK_PREFIX.png}/include \
+ --with-pnglib-libdir=${BUILDLINK_PREFIX.png}/lib
+CONFIGURE_ARGS+= --with-system-zlib \
+ --with-zlib-include=${BUILDLINK_PREFIX.zlib}/include \
+ --with-zlib-libdir=${BUILDLINK_PREFIX.zlib}/lib
+CONFIGURE_ARGS+= --enable-static
+
+CONFIGURE_DIRS= ${WRKDIR}/${DISTNAME}/libs/icu-xetex \
+ ${WRKDIR}/${DISTNAME}/libs/xpdf \
+ ${WRKDIR}/${DISTNAME}/libs/obsdcompat \
+ ${WRKDIR}/${DISTNAME}/texk/web2c
+
+MAKE_ENV+= KPATHSEA_PREFIX=${BUILDLINK_PREFIX.kpathsea}
+MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q}
+MAKE_FLAGS+= TECKITFLAGS=-I${BUILDLINK_PREFIX.TECkit}/include/teckit \
+ LDTECKIT="-L${BUILDLINK_PREFIX.TECkit}/lib -lTECkit" \
+ TECKITDEP="" \
+ GRAPHITESRCDIR=${BUILDLINK_PREFIX.silgraphite} \
+ LDGRAPHITE="-L${BUILDLINK_PREFIX.silgraphite}/lib -lgraphite" \
+ GRAPHITEDEP=""
+
+INSTALLATION_DIRS+= bin
+
+.include "../../converters/TECkit/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/silgraphite/buildlink3.mk"
+.include "../../print/kpathsea/buildlink3.mk"
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xetex ${DESTDIR}${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/xetex/PLIST b/print/xetex/PLIST
new file mode 100644
index 00000000000..6a3899cd64e
--- /dev/null
+++ b/print/xetex/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+bin/xetex
diff --git a/print/xetex/distinfo b/print/xetex/distinfo
new file mode 100644
index 00000000000..1676a7b3b3f
--- /dev/null
+++ b/print/xetex/distinfo
@@ -0,0 +1,14 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+SHA1 (texlive-20080816-source.tar.lzma) = 730986c628bd658b5062face9e400f61203d6b8d
+RMD160 (texlive-20080816-source.tar.lzma) = 629784b111c0d4bc9fac9f9131f63203d6e1dd38
+Size (texlive-20080816-source.tar.lzma) = 23175835 bytes
+SHA1 (patch-aa) = d3a3c38638a699b5cb9b4e6da7b53f3ab57ba3f8
+SHA1 (patch-ab) = 06a46cdac3ce4731dda8940848a2c4493f703502
+SHA1 (patch-ac) = 7e604596d3c9c5095937b2bdd094371127f6f05f
+SHA1 (patch-ad) = b61ea68a06def0d23b3b79fb98edb68875181885
+SHA1 (patch-ae) = f700b735a9b0fdd5ae25a556798334f3d05739e1
+SHA1 (patch-af) = af78a42510c7b060340ab770e9065a90c7d06e5f
+SHA1 (patch-ag) = d04526f55500e13757acd9e2a320b2c6737edd3b
+SHA1 (patch-ah) = b518352ae6b2839b2790550b422f1c2860821350
+SHA1 (patch-ak) = 83f2a49f6ee2ceca164940a194e8d559553c7c2e
diff --git a/print/xetex/patches/patch-aa b/print/xetex/patches/patch-aa
new file mode 100644
index 00000000000..dad93fe6d39
--- /dev/null
+++ b/print/xetex/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- ../make/tkpathsea.mk.orig 2008-05-29 13:59:08.000000000 -0700
++++ ../make/tkpathsea.mk
+@@ -4,10 +4,9 @@ makeargs = $(MFLAGS) CC='$(CC)' CFLAGS='
+
+ # This is wrong: the library doesn't depend on kpsewhich.c or
+ # acconfig.h. But what to do?
+-$(kpathsea): $(kpathsea_srcdir)/*.c $(kpathsea_srcdir)/*.h \
+- $(top_srcdir)/../make/paths.mk
+- cd $(kpathsea_dir) && $(MAKE) $(makeargs)
++$(kpathsea):
++ true
+
+-$(kpathsea_dir)/paths.h: $(kpathsea_srcdir)/texmf.cnf
+- cd $(kpathsea_dir) && $(MAKE) $(makeargs)
++$(kpathsea_dir)/paths.h:
++ true
+ # End of tkpathsea.mk.
diff --git a/print/xetex/patches/patch-ab b/print/xetex/patches/patch-ab
new file mode 100644
index 00000000000..2a6c8ac593c
--- /dev/null
+++ b/print/xetex/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- ../make/common.mk.orig 2007-01-20 03:03:18.000000000 -0800
++++ ../make/common.mk
+@@ -17,7 +17,7 @@ LIBTOOL = $(SHELL) $(kpathsea_parent)/li
+ # You can change [X]CPPFLAGS, [X]CFLAGS, or [X]DEFS, but
+ # please don't change ALL_CPPFLAGS or ALL_CFLAGS.
+ # prog_cflags is set by subdirectories of web2c.
+-ALL_CPPFLAGS = $(DEFS) -I. -I$(srcdir) -I$(kpathsea_parent) \
++ALL_CPPFLAGS = $(DEFS) -I. -I$(srcdir) -I$(KPATHSEA_PREFIX)/include \
+ -I$(kpathsea_srcdir_parent) $(prog_cflags) $(CPPFLAGS)
+ ALL_CFLAGS = $(ALL_CPPFLAGS) $(CFLAGS)
+ ALL_CXXFLAGS = $(ALL_CPPFLAGS) $(CXXFLAGS)
+@@ -51,11 +51,11 @@ UNINSTALL_LIBTOOL_LIBS = $(LIBTOOL) --mo
+ UNINSTALL_LIBTOOL_PROG = $(LIBTOOL) --mode=uninstall $(RM)
+
+ # We use these for many things.
+-kpathsea_parent = ..
++kpathsea_parent = $(KPATHSEA_PREFIX)/include
+ kpathsea_dir = $(kpathsea_parent)/kpathsea
+ kpathsea_srcdir_parent = $(top_srcdir)/..
+-kpathsea_srcdir = $(kpathsea_srcdir_parent)/kpathsea
+-kpathsea = $(kpathsea_dir)/libkpathsea.la
++kpathsea_srcdir = $(KPATHSEA_PREFIX)/include/kpathsea
++kpathsea = $(KPATHSEA_PREFIX)/lib/libkpathsea.la
+
+ @MAINT@ifeq ($(CC), gcc)
+ @MAINT@XDEFS = -Wpointer-arith $(warn_more)
diff --git a/print/xetex/patches/patch-ac b/print/xetex/patches/patch-ac
new file mode 100644
index 00000000000..31d2651fdc6
--- /dev/null
+++ b/print/xetex/patches/patch-ac
@@ -0,0 +1,9 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- lib/Makefile.in.orig 2008-01-30 06:56:21.000000000 -0800
++++ lib/Makefile.in
+@@ -30,4 +30,3 @@ Makefile: Makefile.in ../config.status
+
+ kpse_include ../make/clean.mk
+ kpse_include ../make/rdepend.mk
+-kpse_include lib/depend.mk
diff --git a/print/xetex/patches/patch-ad b/print/xetex/patches/patch-ad
new file mode 100644
index 00000000000..bfbf18e6808
--- /dev/null
+++ b/print/xetex/patches/patch-ad
@@ -0,0 +1,9 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- web2c/Makefile.in.orig 2008-04-15 16:20:46.000000000 -0700
++++ web2c/Makefile.in
+@@ -71,4 +71,3 @@ clean::
+ rm -f y_tab.c y_tab.h y.out* yacc.* $(LEX_OUTPUT_ROOT).c
+
+ kpse_include ../make/rdepend.mk
+-kpse_include web2c/depend.mk
diff --git a/print/xetex/patches/patch-ae b/print/xetex/patches/patch-ae
new file mode 100644
index 00000000000..7f9e31195b3
--- /dev/null
+++ b/print/xetex/patches/patch-ae
@@ -0,0 +1,9 @@
+$NetBSD: patch-ae,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- window/Makefile.in.orig 2008-01-30 06:56:21.000000000 -0800
++++ window/Makefile.in
+@@ -35,4 +35,3 @@ distclean::
+ rm -f x11.c
+
+ kpse_include ../make/rdepend.mk
+-kpse_include window/depend.mk
diff --git a/print/xetex/patches/patch-af b/print/xetex/patches/patch-af
new file mode 100644
index 00000000000..37560e7681e
--- /dev/null
+++ b/print/xetex/patches/patch-af
@@ -0,0 +1,26 @@
+$NetBSD: patch-af,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- mpware/Makefile.in.orig 2008-01-30 06:56:21.000000000 -0800
++++ mpware/Makefile.in
+@@ -46,11 +46,11 @@ Makefile: Makefile.in ../config.status
+
+ install: install-exec install-data
+ install-exec: $(programs)
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) $(scriptdir)
+- $(INSTALL_PROGRAM) newer $(bindir)/newer
+- $(INSTALL_LIBTOOL_PROG) dmp $(bindir)
+- $(INSTALL_LIBTOOL_PROG) mpto $(bindir)
+- $(INSTALL_LIBTOOL_PROG) makempx $(bindir)
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(scriptdir)
++ $(INSTALL_PROGRAM) newer $(DESTDIR)$(bindir)/newer
++ $(INSTALL_LIBTOOL_PROG) dmp $(DESTDIR)$(bindir)
++ $(INSTALL_LIBTOOL_PROG) mpto $(DESTDIR)$(bindir)
++ $(INSTALL_LIBTOOL_PROG) makempx $(DESTDIR)$(bindir)
+ install-data:
+
+ kpse_include ../make/tkpathsea.mk
+@@ -60,4 +60,3 @@ mostlyclean::
+ rm -f testex1 testex2
+
+ kpse_include ../make/rdepend.mk
+-kpse_include mpware/depend.mk
diff --git a/print/xetex/patches/patch-ag b/print/xetex/patches/patch-ag
new file mode 100644
index 00000000000..67a6a0bdb72
--- /dev/null
+++ b/print/xetex/patches/patch-ag
@@ -0,0 +1,33 @@
+$NetBSD: patch-ag,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- ../make/man.mk.orig 2006-01-17 13:41:51.000000000 -0800
++++ ../make/man.mk
+@@ -29,7 +29,7 @@ txt: $(manfiles:.1=.txt)
+ # At present, all but VERSION should be unused.
+ sedscript:
+ cp /dev/null sedscript
+- for f in $(kpathsea_dir)/paths.h; do \
++ for f in $(KPATHSEA_PREFIX)/include/kpathsea/paths.h; do \
+ sed -n -e '/^#define/s/#define[ ][ ]*\([A-Z_a-z][A-Z_a-z]*\)[ ][ ]*\(.*\)/s%@\1@%\2%/p' \
+ $$f \
+ | sed -e 's/"//g' -e 's/[ ]*\/\*[^*]*\*\///g' >>sedscript;\
+@@ -51,16 +51,16 @@ sedscript:
+ echo 's%@LOCALMODES@%$(localmodes)%' >>sedscript
+
+ install-man: manfiles
+- $(top_srcdir)/../mkinstalldirs $(man1dir)
++ $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(man1dir)
+ for nameone in $(manfiles); do \
+ name=`basename $${nameone} .1`; \
+- $(INSTALL_DATA) $${name}.1 $(man1dir)/$${name}.$(manext); \
++ $(INSTALL_DATA) $${name}.1 $(DESTDIR)$(man1dir)/$${name}.$(manext); \
+ done
+
+ uninstall-man:
+ for nameone in $(manfiles); do \
+ name=`basename $${nameone} .1`; \
+- rm -f $(man1dir)/$${name}.$(manext); \
++ rm -f $(DESTDIR)$(man1dir)/$${name}.$(manext); \
+ done
+
+ install-data: install-man
diff --git a/print/xetex/patches/patch-ah b/print/xetex/patches/patch-ah
new file mode 100644
index 00000000000..8cc5e01eea7
--- /dev/null
+++ b/print/xetex/patches/patch-ah
@@ -0,0 +1,10 @@
+$NetBSD: patch-ah,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- pdftexdir/Makefile.in.orig 2008-07-17 10:58:14.000000000 -0700
++++ pdftexdir/Makefile.in
+@@ -67,5 +67,3 @@ depend:
+ XXCFLAGS=-MM XCFLAGS=-MM $(MAKE) -k $(OBJS) ttf2afm.o pdftosrc.o | \
+ grep -v "^$(CC)\|$(CXX)\|$(AR)\|make\" | \
+ sed 's: [^ ]*/\.\./libs/[^ ]*::g' > $(srcdir)/depend.mk
+-
+-kpse_include pdftexdir/depend.mk
diff --git a/print/xetex/patches/patch-ak b/print/xetex/patches/patch-ak
new file mode 100644
index 00000000000..743a95120d1
--- /dev/null
+++ b/print/xetex/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1.1.1 2009/04/11 21:35:19 minskim Exp $
+
+--- ../../libs/icu-xetex/Makefile.in.orig 2008-03-04 05:26:36.000000000 -0800
++++ ../../libs/icu-xetex/Makefile.in
+@@ -179,7 +179,7 @@ $(top_builddir)/config/Makefile.inc: $(s
+
+ $(top_builddir)/config/icu-config: $(top_builddir)/Makefile $(top_srcdir)/config/icu-config-top $(top_srcdir)/config/icu-config-bottom $(top_builddir)/config/Makefile.inc @platform_make_fragment@ $(top_srcdir)/config/make2sh.sed
+ -$(RMV) $@
+- $(INSTALL_SCRIPT) $(top_srcdir)/config/icu-config-top $@
++ cp $(top_srcdir)/config/icu-config-top $@
+ chmod u+w $@
+ @echo "# Following from @platform_make_fragment@" >> $@
+ sed -f $(top_srcdir)/config/make2sh.sed < $(top_builddir)/config/Makefile.inc | grep -v '#M#' | uniq >> $@