summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2009-02-01 06:05:58 +0000
committerminskim <minskim@pkgsrc.org>2009-02-01 06:05:58 +0000
commite06337047aefffaae66e4588edc17fd9abcf777e (patch)
tree9e06ebf12002a159e264e48996ef3c5c6e55973d
parent142729f946fe72d99c0c9e456026cf7ff77fc993 (diff)
downloadpkgsrc-e06337047aefffaae66e4588edc17fd9abcf777e.tar.gz
Import web2c-7.5.7 as print/web2c.
Web2C is an implementation of TeX and friends which translates the original WEB sources written by Donald Knuth into C, so they can be readily compiled on modern systems.
-rw-r--r--print/web2c/DESCR3
-rw-r--r--print/web2c/Makefile92
-rw-r--r--print/web2c/PLIST92
-rw-r--r--print/web2c/distinfo25
-rw-r--r--print/web2c/patches/patch-aa19
-rw-r--r--print/web2c/patches/patch-ab28
-rw-r--r--print/web2c/patches/patch-ac9
-rw-r--r--print/web2c/patches/patch-ad9
-rw-r--r--print/web2c/patches/patch-ae9
-rw-r--r--print/web2c/patches/patch-af26
-rw-r--r--print/web2c/patches/patch-ag33
-rw-r--r--print/web2c/patches/patch-ah10
-rw-r--r--print/web2c/patches/patch-ai20
-rw-r--r--print/web2c/patches/patch-aj22
-rw-r--r--print/web2c/patches/patch-ak13
-rw-r--r--print/web2c/patches/patch-al13
-rw-r--r--print/web2c/patches/patch-am32
-rw-r--r--print/web2c/patches/patch-an20
-rw-r--r--print/web2c/patches/patch-ao72
-rw-r--r--print/web2c/patches/patch-ap74
-rw-r--r--print/web2c/patches/patch-aq15
-rw-r--r--print/web2c/patches/patch-ar15
-rw-r--r--print/web2c/patches/patch-as14
-rw-r--r--print/web2c/patches/patch-at15
24 files changed, 680 insertions, 0 deletions
diff --git a/print/web2c/DESCR b/print/web2c/DESCR
new file mode 100644
index 00000000000..4877bc1c4dd
--- /dev/null
+++ b/print/web2c/DESCR
@@ -0,0 +1,3 @@
+Web2C is an implementation of TeX and friends which translates the
+original WEB sources written by Donald Knuth into C, so they can be
+readily compiled on modern systems.
diff --git a/print/web2c/Makefile b/print/web2c/Makefile
new file mode 100644
index 00000000000..943a4623fec
--- /dev/null
+++ b/print/web2c/Makefile
@@ -0,0 +1,92 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+
+DISTNAME= texlive-20080816-source
+PKGNAME= web2c-7.5.7
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/}
+EXTRACT_SUFX= .tar.lzma
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.tug.org/kpathsea/
+COMMENT= TeX implementation translating WEB to C
+
+CONFLICTS+= teTeX-bin-[0-9]*
+
+EXTRACT_ELEMENTS= ${DISTNAME}/config \
+ ${DISTNAME}/libs/icu-xetex \
+ ${DISTNAME}/libs/lua51 \
+ ${DISTNAME}/libs/luafilesystem \
+ ${DISTNAME}/libs/luafontforge \
+ ${DISTNAME}/libs/luamd5 \
+ ${DISTNAME}/libs/luapeg \
+ ${DISTNAME}/libs/luazip \
+ ${DISTNAME}/libs/luazlib \
+ ${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
+INFO_FILES= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake lex perl yacc
+WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c
+
+CONFIGURE_ARGS+= --with-mf-nowin
+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
+INSTALL_DIRS= ${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="" \
+ ZZIPLIBSRCDIR="" \
+ ZZIPLIBDEP=${BUILDLINK_PREFIX.zziplib}/lib/libzzip.la
+
+FILES_SUBST+= KPSEWHICH=${BUILDLINK_PREFIX.kpathsea}/bin/kpsewhich \
+ MKTEXLSR=${BUILDLINK_PREFIX.kpathsea}/bin/mktexlsr
+
+.include "../../archivers/zziplib/buildlink3.mk"
+.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"
+
+post-install:
+ ${LN} -sf cweb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ctangle.1
+ ${LN} -sf cweb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/cweave.1
+ ${LN} -sf mf.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mf-nowin.1
+ ${LN} -sf dvicopy.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/odvicopy.1
+ ${LN} -sf dvitype.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/odvitype.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/web2c/PLIST b/print/web2c/PLIST
new file mode 100644
index 00000000000..b515a52fc75
--- /dev/null
+++ b/print/web2c/PLIST
@@ -0,0 +1,92 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+bin/aleph
+bin/bibtex
+bin/ctangle
+bin/ctie
+bin/cweave
+bin/dmp
+bin/dvicopy
+bin/dvitomp
+bin/dvitype
+bin/gftodvi
+bin/gftopk
+bin/gftype
+bin/luatex
+bin/makempx
+bin/mf
+bin/mf-nowin
+bin/mft
+bin/mkocp
+bin/mkofm
+bin/mpost
+bin/mpto
+bin/newer
+bin/odvicopy
+bin/odvitype
+bin/ofm2opl
+bin/omega
+bin/omfonts
+bin/opl2ofm
+bin/otangle
+bin/otp2ocp
+bin/outocp
+bin/ovf2ovp
+bin/ovp2ovf
+bin/patgen
+bin/pdftex
+bin/pdftosrc
+bin/pktogf
+bin/pktype
+bin/pltotf
+bin/pooltype
+bin/synctex
+bin/tangle
+bin/tex
+bin/texlua
+bin/texluac
+bin/tftopl
+bin/tie
+bin/ttf2afm
+bin/vftovp
+bin/vptovf
+bin/weave
+bin/xetex
+info/web2c.info
+man/man1/bibtex.1
+man/man1/ctangle.1
+man/man1/ctie.1
+man/man1/cweave.1
+man/man1/cweb.1
+man/man1/dmp.1
+man/man1/dvicopy.1
+man/man1/dvitomp.1
+man/man1/dvitype.1
+man/man1/gftodvi.1
+man/man1/gftopk.1
+man/man1/gftype.1
+man/man1/makempx.1
+man/man1/mf-nowin.1
+man/man1/mf.1
+man/man1/mft.1
+man/man1/mpost.1
+man/man1/mpto.1
+man/man1/newer.1
+man/man1/odvicopy.1
+man/man1/odvitype.1
+man/man1/omega.1
+man/man1/patgen.1
+man/man1/pdftex.1
+man/man1/pdftosrc.1
+man/man1/pktogf.1
+man/man1/pktype.1
+man/man1/pltotf.1
+man/man1/pooltype.1
+man/man1/synctex.1
+man/man1/tangle.1
+man/man1/tex.1
+man/man1/tftopl.1
+man/man1/tie.1
+man/man1/vftovp.1
+man/man1/vptovf.1
+man/man1/weave.1
+man/man5/synctex.5
diff --git a/print/web2c/distinfo b/print/web2c/distinfo
new file mode 100644
index 00000000000..0e0158e191e
--- /dev/null
+++ b/print/web2c/distinfo
@@ -0,0 +1,25 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/02/01 06:05:58 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-ai) = 85d011bd5023ea6ef984836d49d7b8d439ce725a
+SHA1 (patch-aj) = 986cae97bbe29164ab0e5ab2b0f9dc9d7c6f8e10
+SHA1 (patch-ak) = 83f2a49f6ee2ceca164940a194e8d559553c7c2e
+SHA1 (patch-al) = b8fc7bad60bffac60a48dccc63af2b9b736b84f0
+SHA1 (patch-am) = fbca2d97fe693b6d964f596e79908680a6e03965
+SHA1 (patch-an) = e2cb5013c035fd9d3ec288af37b7c4f40c6648eb
+SHA1 (patch-ao) = 714bb6752f9f6d7647ecfa53f78305603fb0f9e9
+SHA1 (patch-ap) = afea107d16a936a834b10c526dc5cadd5a5d97bb
+SHA1 (patch-aq) = 6be32b638b283924b5ff70ebd9e653f821bea3a0
+SHA1 (patch-ar) = 58dcc0263b7347d7dfbf10370bcad3ed46849414
+SHA1 (patch-as) = b676605ce6f599d75ef9076316f60a5679656a16
+SHA1 (patch-at) = 590c83e0decf5603a75970e33d8028d794d920d2
diff --git a/print/web2c/patches/patch-aa b/print/web2c/patches/patch-aa
new file mode 100644
index 00000000000..7dfbbfa32e8
--- /dev/null
+++ b/print/web2c/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-ab b/print/web2c/patches/patch-ab
new file mode 100644
index 00000000000..69b0f297db7
--- /dev/null
+++ b/print/web2c/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-ac b/print/web2c/patches/patch-ac
new file mode 100644
index 00000000000..4d36a32ddd2
--- /dev/null
+++ b/print/web2c/patches/patch-ac
@@ -0,0 +1,9 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-ad b/print/web2c/patches/patch-ad
new file mode 100644
index 00000000000..5f1e90f832c
--- /dev/null
+++ b/print/web2c/patches/patch-ad
@@ -0,0 +1,9 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-ae b/print/web2c/patches/patch-ae
new file mode 100644
index 00000000000..12275fbfc9e
--- /dev/null
+++ b/print/web2c/patches/patch-ae
@@ -0,0 +1,9 @@
+$NetBSD: patch-ae,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-af b/print/web2c/patches/patch-af
new file mode 100644
index 00000000000..91934b335a6
--- /dev/null
+++ b/print/web2c/patches/patch-af
@@ -0,0 +1,26 @@
+$NetBSD: patch-af,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-ag b/print/web2c/patches/patch-ag
new file mode 100644
index 00000000000..85106a99416
--- /dev/null
+++ b/print/web2c/patches/patch-ag
@@ -0,0 +1,33 @@
+$NetBSD: patch-ag,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-ah b/print/web2c/patches/patch-ah
new file mode 100644
index 00000000000..07fda24af60
--- /dev/null
+++ b/print/web2c/patches/patch-ah
@@ -0,0 +1,10 @@
+$NetBSD: patch-ah,v 1.1.1.1 2009/02/01 06:05:58 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/web2c/patches/patch-ai b/print/web2c/patches/patch-ai
new file mode 100644
index 00000000000..42266bba43b
--- /dev/null
+++ b/print/web2c/patches/patch-ai
@@ -0,0 +1,20 @@
+$NetBSD: patch-ai,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+
+--- omegafonts/Makefile.in.orig 2008-03-01 15:49:05.000000000 -0800
++++ omegafonts/Makefile.in
+@@ -53,12 +53,12 @@ install: install-exec
+ install-exec:: install-links
+
+ install-programs: $(programs)
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
+- for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
++ for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(DESTDIR)$(bindir); done
+
+ install-links: install-programs
+ for f in ""$(linked_programs); do \
+- cd $(bindir) && (rm -f $$f; $(LN) omfonts $$f); done
++ cd $(DESTDIR)$(bindir) && (rm -f $$f; $(LN) omfonts $$f); done
+
+ Makefile: Makefile.in ../config.status
+ cd .. && $(SHELL) config.status
diff --git a/print/web2c/patches/patch-aj b/print/web2c/patches/patch-aj
new file mode 100644
index 00000000000..4211c3a9afb
--- /dev/null
+++ b/print/web2c/patches/patch-aj
@@ -0,0 +1,22 @@
+$NetBSD: patch-aj,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+
+--- otps/Makefile.in.orig 2008-01-30 06:56:21.000000000 -0800
++++ otps/Makefile.in
+@@ -36,9 +36,9 @@ outocp: outocp.o
+ $(programs): $(proglib) $(kpathsea)
+
+ install-programs: $(programs)
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
+- for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
+- for p in $(scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p $(scriptdir); done
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
++ for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(DESTDIR)$(bindir); done
++ for p in $(scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(scriptdir); done
+
+ Makefile: Makefile.in ../config.status
+ cd .. && $(SHELL) config.status
+@@ -50,4 +50,3 @@ clean::
+ rm -f y_tab.c y_tab.h y.out* yacc.* $(LEX_OUTPUT_ROOT).c
+
+ kpse_include ../make/rdepend.mk
+-kpse_include otps/depend.mk
diff --git a/print/web2c/patches/patch-ak b/print/web2c/patches/patch-ak
new file mode 100644
index 00000000000..07a50b57d67
--- /dev/null
+++ b/print/web2c/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1.1.1 2009/02/01 06:05:58 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 >> $@
diff --git a/print/web2c/patches/patch-al b/print/web2c/patches/patch-al
new file mode 100644
index 00000000000..c8c9d104c47
--- /dev/null
+++ b/print/web2c/patches/patch-al
@@ -0,0 +1,13 @@
+$NetBSD: patch-al,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+
+--- luatexdir/image/image.h.orig 2008-04-28 01:45:24.000000000 -0700
++++ luatexdir/image/image.h
+@@ -22,7 +22,7 @@ $Id: image.h 1125 2008-03-25 19:36:52Z h
+ #ifndef IMAGE_H
+ # define IMAGE_H
+
+-# include <../libpng/png.h>
++# include <png.h>
+
+ # define JPG_UINT16 unsigned int
+ # define JPG_UINT32 unsigned long
diff --git a/print/web2c/patches/patch-am b/print/web2c/patches/patch-am
new file mode 100644
index 00000000000..184f6485404
--- /dev/null
+++ b/print/web2c/patches/patch-am
@@ -0,0 +1,32 @@
+$NetBSD: patch-am,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+
+--- man/Makefile.in.orig 2008-01-30 06:56:21.000000000 -0800
++++ man/Makefile.in
+@@ -32,19 +32,15 @@ localmodes = modes
+ # The programs are listed in alphabetical order.
+ #
+ manfiles= \
+- amstex.1 \
+ bibtex.1 \
+ cweb.1 \
+ dmp.1 \
+ dvicopy.1 \
+ dvitomp.1 \
+ dvitype.1 \
+- eplain.1 \
+- etex.1 \
+ gftodvi.1 \
+ gftopk.1 \
+ gftype.1 \
+- latex.1 \
+ makempx.1 \
+ mf.1 \
+ mft.1 \
+@@ -53,7 +49,6 @@ manfiles= \
+ newer.1 \
+ omega.1 \
+ patgen.1 \
+- pdfetex.1 \
+ pdftex.1 \
+ pdftosrc.1 \
+ pktogf.1 \
diff --git a/print/web2c/patches/patch-an b/print/web2c/patches/patch-an
new file mode 100644
index 00000000000..e668020f9bc
--- /dev/null
+++ b/print/web2c/patches/patch-an
@@ -0,0 +1,20 @@
+$NetBSD: patch-an,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+
+--- doc/Makefile.in.orig 2008-04-29 15:40:29.000000000 -0700
++++ doc/Makefile.in
+@@ -49,12 +49,12 @@ Makefile: Makefile.in ../config.status
+ install: install-exec install-data
+ install-exec:
+ install-data: web2c.info
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(infodir)
+- $(INSTALL_DATA) $(srcdir)/web2c.i* $(infodir)/
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
++ $(INSTALL_DATA) $(srcdir)/web2c.i* $(DESTDIR)$(infodir)/
+ #
+ $(POST_INSTALL)
+ if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+- install-info --info-dir=$(infodir) $(infodir)/web2c.info; \
++ install-info --info-dir=$(infodir) $(DESTDIR)$(infodir)/web2c.info; \
+ else true; fi
+
+ check: all
diff --git a/print/web2c/patches/patch-ao b/print/web2c/patches/patch-ao
new file mode 100644
index 00000000000..3cf95b6966f
--- /dev/null
+++ b/print/web2c/patches/patch-ao
@@ -0,0 +1,72 @@
+$NetBSD: patch-ao,v 1.1.1.1 2009/02/01 06:05:58 minskim Exp $
+
+--- Makefile.in.orig 2008-08-12 16:46:59.000000000 -0700
++++ Makefile.in
+@@ -816,29 +816,29 @@ install: install-exec install-data
+ install-exec:: install-programs
+
+ # Installation directories.
+-$(bindir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
+-$(texpooldir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(texpooldir)
+-$(mfpooldir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(mfpooldir)
+-$(mppooldir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(mppooldir)
+-$(fmtdir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(fmtdir)
+-$(basedir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(basedir)
+-$(memdir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(memdir)
+-$(web2cdir)::
+- $(SHELL) $(top_srcdir)/../mkinstalldirs $(web2cdir)
++$(DESTDIR)$(bindir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
++$(DESTDIR)$(texpooldir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(texpooldir)
++$(DESTDIR)$(mfpooldir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(mfpooldir)
++$(DESTDIR)$(mppooldir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(mppooldir)
++$(DESTDIR)$(fmtdir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(fmtdir)
++$(DESTDIR)$(basedir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(basedir)
++$(DESTDIR)$(memdir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(memdir)
++$(DESTDIR)$(web2cdir)::
++ $(SHELL) $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(web2cdir)
+
+ # Installing the binaries. Each of the *dir/*.mk files (except etex)
+ # add to this target via a dependency-only rule, to install their
+ # respective engines.
+-install-programs: $(programs) $(basic_engines) $(bindir)
++install-programs: $(programs) $(basic_engines) $(DESTDIR)$(bindir)
+ for p in $(programs) $(basic_engines); do \
+- $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
++ $(INSTALL_LIBTOOL_PROG) $$p $(DESTDIR)$(bindir); done
+
+ # We do not attempt to install any of the per-format symlinks, leaving
+ # that to a separate run of texlinks.
+@@ -874,13 +874,14 @@ install-mpost-mems: mems $(memdir)
+ (cd $(bindir) && (rm -f $$base; $(LN) mpost $$base)); done
+
+ # Auxiliary files.
+-install-data:: $(web2cdir)
++install-data:: $(DESTDIR)$(web2cdir)
+ cd doc && $(MAKE) $(install_makeargs) install-data
+ cd man && $(MAKE) $(install_makeargs) install-data
+- $(INSTALL_DATA) $(srcdir)/tiedir/tie.1 $(man1dir)/tie.$(manext)
+- $(INSTALL_DATA) $(srcdir)/ctiedir/ctie.1 $(man1dir)/ctie.$(manext)
+- $(INSTALL_DATA) $(srcdir)/synctexdir/man1/synctex.1 $(man1dir)/synctex.$(manext)
+- $(INSTALL_DATA) $(srcdir)/synctexdir/man5/synctex.5 $(man5dir)/synctex.5
++ $(INSTALL_DATA) $(srcdir)/tiedir/tie.1 $(DESTDIR)$(man1dir)/tie.$(manext)
++ $(INSTALL_DATA) $(srcdir)/ctiedir/ctie.1 $(DESTDIR)$(man1dir)/ctie.$(manext)
++ $(INSTALL_DATA) $(srcdir)/synctexdir/man1/synctex.1 $(DESTDIR)$(man1dir)/synctex.$(manext)
++ $(top_srcdir)/../mkinstalldirs $(DESTDIR)$(man5dir)
++ $(INSTALL_DATA) $(srcdir)/synctexdir/man5/synctex.5 $(DESTDIR)$(man5dir)/synctex.5
+
+ # Dummy target.
+ uninstall uninstall-exec uninstall-data:
diff --git a/print/web2c/patches/patch-ap b/print/web2c/patches/patch-ap
new file mode 100644
index 00000000000..9dde469b256
--- /dev/null
+++ b/print/web2c/patches/patch-ap
@@ -0,0 +1,74 @@
+$NetBSD: patch-ap,v 1.1.1.1 2009/02/01 06:05:59 minskim Exp $
+
+--- luatexdir/luatexlib.mk.orig 2008-05-31 16:09:36.000000000 -0700
++++ luatexdir/luatexlib.mk
+@@ -42,14 +42,14 @@ endif
+
+
+ $(LIBLUADEP):
+- mkdir -p $(LIBLUADIR) && cd $(LIBLUADIR) && cp -f $(LIBLUASRCDIR)/* . && $(MAKE) $(luatarget)
++ cd $(LIBLUADIR) && $(MAKE) $(luatarget)
+
+ # slnunicode
+ SLNUNICODEDIR=../../libs/slnunicode
+ SLNUNICODESRCDIR=$(srcdir)/$(SLNUNICODEDIR)
+ SLNUNICODEDEP=$(SLNUNICODEDIR)/slnunico.o
+ $(SLNUNICODEDEP): $(SLNUNICODEDIR)/slnunico.c $(SLNUNICODEDIR)/slnudata.c
+- mkdir -p $(SLNUNICODEDIR) && cd $(SLNUNICODEDIR) && cp -f $(SLNUNICODESRCDIR)/* . && $(CC) $(CFLAGS) -I$(LIBLUADIR) -o slnunico.o -c slnunico.c
++ mkdir -p $(SLNUNICODEDIR) && cd $(SLNUNICODEDIR) && $(CC) $(CFLAGS) -I$(LIBLUADIR) -o slnunico.o -c slnunico.c
+
+ # zziplib
+
+@@ -88,7 +88,7 @@ LUAZIPDEP=$(LUAZIPDIR)/src/luazip.o
+ LUAZIPINC=-I../../lua51 -I../$(ZZIPLIBSRCDIR) -I../$(ZZIPLIBDIR)
+
+ $(LUAZIPDEP): $(LUAZIPDIR)/src/luazip.c
+- mkdir -p $(LUAZIPDIR) && cd $(LUAZIPDIR) && cp -R $(LUAZIPSRCDIR)/* . && \
++ mkdir -p $(LUAZIPDIR) && cd $(LUAZIPDIR) && \
+ cd src && $(CC) $(CFLAGS) $(LUAZIPINC) -g -o luazip.o -c luazip.c
+
+ # luafilesystem
+@@ -99,15 +99,14 @@ LUAFSDEP=$(LUAFSDIR)/src/lfs.o
+ LUAFSINC=-I../../lua51
+
+ $(LUAFSDEP): $(LUAFSDIR)/src/lfs.c $(LUAFSDIR)/src/lfs.h
+- mkdir -p $(LUAFSDIR) && cd $(LUAFSDIR) && cp -R $(LUAFSSRCDIR)/* . && \
+- cd src && $(CC) $(CFLAGS) $(LUAFSINC) -g -o lfs.o -c lfs.c
++ cd $(LUAFSDIR)/src && $(CC) $(CFLAGS) $(LUAFSINC) -g -o lfs.o -c lfs.c
+
+ # luapeg
+ LUAPEGDIR=../../libs/luapeg
+ LUAPEGSRCDIR=$(srcdir)/$(LUAPEGDIR)
+ LUAPEGDEP=$(LUAPEGDIR)/lpeg.o
+ $(LUAPEGDEP): $(LUAPEGDIR)/lpeg.c
+- mkdir -p $(LUAPEGDIR) && cd $(LUAPEGDIR) && cp -f $(LUAPEGSRCDIR)/* . && $(CC) $(CFLAGS) -I$(LIBLUADIR) -g -o lpeg.o -c lpeg.c
++ mkdir -p $(LUAPEGDIR) && cd $(LUAPEGDIR) && $(CC) $(CFLAGS) -I$(LIBLUADIR) -g -o lpeg.o -c lpeg.c
+
+
+ # luamd5
+@@ -115,13 +114,13 @@ LUAMDVDIR=../../libs/luamd5
+ LUAMDVSRCDIR=$(srcdir)/$(LUAMDVDIR)
+ LUAMDVDEP=$(LUAMDVDIR)/md5lib.o $(LUAMDVDIR)/md5.o
+ $(LUAMDVDEP): $(LUAMDVDIR)/md5lib.c $(LUAMDVDIR)/md5.h $(LUAMDVDIR)/md5.c
+- mkdir -p $(LUAMDVDIR) && cd $(LUAMDVDIR) && cp -f $(LUAMDVSRCDIR)/* . && $(CC) $(CFLAGS) -I$(LIBLUADIR) -g -o md5.o -c md5.c && $(CC) $(CFLAGS) -I$(LIBLUADIR) -g -o md5lib.o -c md5lib.c
++ cd $(LUAMDVDIR) && $(CC) $(CFLAGS) -I$(LIBLUADIR) -g -o md5.o -c md5.c && $(CC) $(CFLAGS) -I$(LIBLUADIR) -g -o md5lib.o -c md5lib.c
+
+ .PHONY: always
+
+ # luaff
+-LUAFFDIR=../../libs/luafontforge
+-LUAFFSRCDIR=$(srcdir)/$(LUAFFDIR)
++LUAFFDIR=../../libs/luafontforge/src
++LUAFFSRCDIR=$(srcdir)/../../libs/luafontforge
+ LUAFFDEP=$(LUAFFDIR)/libff.a
+ $(LUAFFDEP): always
+ mkdir -p $(LUAFFDIR) && cp -f $(LUAFFSRCDIR)/Makefile $(LUAFFDIR)
+@@ -136,7 +135,7 @@ LUAZLIBSRCDIR=$(srcdir)/$(LUAZLIBDIR)
+ LUAZLIBDEP=$(LUAZLIBDIR)/lgzip.o $(LUAZLIBDIR)/lzlib.o
+ LUAZLIBINC=-I$(ZLIBSRCDIR) -I$(LIBLUASRCDIR)
+ $(LUAZLIBDEP): $(LUAZLIBDIR)/lgzip.c $(LUAZLIBDIR)/lzlib.c
+- mkdir -p $(LUAZLIBDIR) && cd $(LUAZLIBDIR) && cp -f $(LUAZLIBSRCDIR)/* . && $(CC) $(CFLAGS) $(LUAZLIBINC) -g -o lgzip.o -c lgzip.c && $(CC) $(CFLAGS) $(LUAZLIBINC) -g -o lzlib.o -c lzlib.c
++ mkdir -p $(LUAZLIBDIR) && cd $(LUAZLIBDIR) && $(CC) $(CFLAGS) $(LUAZLIBINC) -g -o lgzip.o -c lgzip.c && $(CC) $(CFLAGS) $(LUAZLIBINC) -g -o lzlib.o -c lzlib.c
+
+
+ # Convenience variables.
diff --git a/print/web2c/patches/patch-aq b/print/web2c/patches/patch-aq
new file mode 100644
index 00000000000..00317bf3f2b
--- /dev/null
+++ b/print/web2c/patches/patch-aq
@@ -0,0 +1,15 @@
+$NetBSD: patch-aq,v 1.1.1.1 2009/02/01 06:05:59 minskim Exp $
+
+--- omegadir/omega.mk.orig 2008-07-03 15:16:18.000000000 -0700
++++ omegadir/omega.mk
+@@ -212,8 +212,8 @@ omegafonts/omfonts:
+ # Installation.
+ install-omega: install-omega-exec
+ install-programs: @OMEGA@ install-omega-exec
+-install-omega-exec: $(omega_programs) $(bindir) install-omega-links
+- for p in omega; do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
++install-omega-exec: $(omega_programs) $(DESTDIR)$(bindir) install-omega-links
++ for p in omega; do $(INSTALL_LIBTOOL_PROG) $$p $(DESTDIR)$(bindir); done
+ cd otps && $(MAKE) $(install_makeargs) install-programs
+ cd omegafonts && $(MAKE) $(install_makeargs) install-programs
+
diff --git a/print/web2c/patches/patch-ar b/print/web2c/patches/patch-ar
new file mode 100644
index 00000000000..4c6017762a7
--- /dev/null
+++ b/print/web2c/patches/patch-ar
@@ -0,0 +1,15 @@
+$NetBSD: patch-ar,v 1.1.1.1 2009/02/01 06:05:59 minskim Exp $
+
+--- luatexdir/luatex.mk.orig 2008-06-02 07:54:32.000000000 -0700
++++ luatexdir/luatex.mk
+@@ -121,8 +121,8 @@ luatex.fmt: luatex
+ install-luatex: install-luatex-exec
+
+ install-programs: @LTEX@ install-luatex-exec
+-install-luatex-exec: $(luatex) $(bindir)
+- for p in luatex; do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
++install-luatex-exec: $(luatex) $(DESTDIR)$(bindir)
++ for p in luatex; do $(INSTALL_LIBTOOL_PROG) $$p $(DESTDIR)$(bindir); done
+ cd $(DESTDIR)$(bindir) && rm -f texlua && $(LN) luatex texlua
+ cd $(DESTDIR)$(bindir) && rm -f texluac && $(LN) luatex texluac
+
diff --git a/print/web2c/patches/patch-as b/print/web2c/patches/patch-as
new file mode 100644
index 00000000000..8362be51c84
--- /dev/null
+++ b/print/web2c/patches/patch-as
@@ -0,0 +1,14 @@
+$NetBSD: patch-as,v 1.1.1.1 2009/02/01 06:05:59 minskim Exp $
+
+--- alephdir/aleph.mk.orig 2008-05-28 11:29:28.000000000 -0700
++++ alephdir/aleph.mk
+@@ -159,7 +159,7 @@ lamed.fmt: aleph
+ # Installation.
+ install-aleph: install-aleph-exec
+ install-programs: @ALEPH@ install-aleph-exec
+-install-aleph-exec: aleph $(bindir)
+- for p in aleph; do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
++install-aleph-exec: aleph $(DESTDIR)$(bindir)
++ for p in aleph; do $(INSTALL_LIBTOOL_PROG) $$p $(DESTDIR)$(bindir); done
+
+ # end of aleph.mk
diff --git a/print/web2c/patches/patch-at b/print/web2c/patches/patch-at
new file mode 100644
index 00000000000..ccc58abd534
--- /dev/null
+++ b/print/web2c/patches/patch-at
@@ -0,0 +1,15 @@
+$NetBSD: patch-at,v 1.1.1.1 2009/02/01 06:05:59 minskim Exp $
+
+--- pdftexdir/pdftex.mk.orig 2008-07-10 23:51:52.000000000 -0700
++++ pdftexdir/pdftex.mk
+@@ -111,8 +111,8 @@ pdflatex.fmt: pdftex
+ # Installation.
+ install-pdftex: install-pdftex-exec
+ install-programs: @PETEX@ install-pdftex-exec
+-install-pdftex-exec: $(pdftex) $(bindir)
+- for p in pdftex; do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
++install-pdftex-exec: $(pdftex) $(DESTDIR)$(bindir)
++ for p in pdftex; do $(INSTALL_LIBTOOL_PROG) $$p $(DESTDIR)$(bindir); done
+
+ #
+ # ttf2afm