--- fpc-2.2.0.orig/debian/patches/00list +++ fpc-2.2.0/debian/patches/00list @@ -0,0 +1,5 @@ +01_Makefile.hev +02_rtl.tex +03_Makefile +04_preamble.hevea +06_dbase_units --- fpc-2.2.0.orig/debian/patches/01_Makefile.hev.dpatch +++ fpc-2.2.0/debian/patches/01_Makefile.hev.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_Makefile.hev.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad fpc-2.2.0~/fpcdocs/Makefile.hev fpc-2.2.0/fpcdocs/Makefile.hev +--- fpc-2.2.0~/fpcdocs/Makefile.hev 2005-05-16 15:39:26.000000000 -0300 ++++ fpc-2.2.0/fpcdocs/Makefile.hev 2007-10-02 01:19:14.000000000 -0300 +@@ -3,13 +3,16 @@ + # + + %.chk: %.tex fpc-hevea.tex +- cp -f preamble.hev preamble.inc ++ cp -f preamble.hevea preamble.inc + $(HEVEA) $(HEVEAOPTS) $< + touch $(basename $<).chk ++ mkdir $(basename $<) ++ mv -f $(basename $<).html $(basename $<)/$(basename $<).html + + user.chk: $(INCLUDES) user.tex messages.inc + prog.chk: $(INCLUDES) prog.tex + onechap.chk: $(INCLUDES) onechap.tex + ref.chk: $(INCLUDES) ref.tex ++rtl.chk: $(INCLUDES) rtl.tex + fpdoc.chk: $(INCLUDES) fpdoc.tex + --- fpc-2.2.0.orig/debian/patches/03_Makefile.dpatch +++ fpc-2.2.0/debian/patches/03_Makefile.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_Makefile.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad fpc-2.2.0~/fpcdocs/Makefile fpc-2.2.0/fpcdocs/Makefile +--- fpc-2.2.0~/fpcdocs/Makefile 2007-08-25 10:18:13.000000000 -0300 ++++ fpc-2.2.0/fpcdocs/Makefile 2007-10-01 23:53:06.000000000 -0300 +@@ -1852,7 +1852,7 @@ + @echo ' pdfdist : pdf, and archive result.' + clean: + -rm -f preamble.inc date.inc messages.inc rtl.inc +- -rm -f *.4tc *.4ct *.css *.lg *.tmp *.xref *.kwd *.xct ++ -rm -f *.4tc *.4ct *.css *.lg *.tmp *.xref *.kwd *.xct *.haux *.hind + -rm -rf $(DOCS) + -rm -f $(CHK) $(TOC) $(LOG) $(DVI) $(PDF) $(AUX) $(OUT) $(PS) $(HTML) *.i* $(LOT) $(TXT) + -rm -f $(notdir $(wildcard styles/*.sty)) +@@ -2152,10 +2152,8 @@ + htmlinstall: html + install -d -m 755 $(INSTALL_DOCDIR) + cp fpctoc.html $(INSTALL_DOCDIR) +- install -d -m 755 $(INSTALL_DOCDIR)/buttons +- cp buttons/*.* $(INSTALL_DOCDIR)/buttons +- install -d -m 755 $(INSTALL_DOCDIR)/pics +- cp pics/*.* $(INSTALL_DOCDIR)/pics ++ cp -R buttons $(INSTALL_DOCDIR) ++ cp -R pics $(INSTALL_DOCDIR) + cp -R $(HTML) $(INSTALL_DOCDIR) + find $(INSTALL_DOCDIR) -name 'CVS' -or -name '*.eps' | xargs -n1 rm -rf + install: --- fpc-2.2.0.orig/debian/patches/02_rtl.tex.dpatch +++ fpc-2.2.0/debian/patches/02_rtl.tex.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_rtl.tex.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad fpc-2.2.0~/fpcdocs/rtl.tex fpc-2.2.0/fpcdocs/rtl.tex +--- fpc-2.2.0~/fpcdocs/rtl.tex 2007-06-25 16:46:19.000000000 -0300 ++++ fpc-2.2.0/fpcdocs/rtl.tex 2007-10-02 01:31:56.000000000 -0300 +@@ -21,13 +21,15 @@ + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Preamble. + \input{preamble.inc} +-\ifpdf ++\begin{latexonly} ++ \ifpdf + \pdfinfo{/Author(Michael Van Canneyt) + /Title(RTL reference guide) + /Subject(FPC Run-Time library: Reference guide) + /Keywords(Free Pascal) + } +-\fi ++ \fi ++\end{latexonly} + % + % Settings + % --- fpc-2.2.0.orig/debian/patches/04_preamble.hevea.dpatch +++ fpc-2.2.0/debian/patches/04_preamble.hevea.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_preamble.hevea.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad fpc-2.2.0~/fpcdocs/preamble.hevea fpc-2.2.0/fpcdocs/preamble.hevea +--- fpc-2.2.0~/fpcdocs/preamble.hevea 2006-04-24 16:39:18.000000000 -0300 ++++ fpc-2.2.0/fpcdocs/preamble.hevea 2007-10-02 02:29:29.000000000 -0300 +@@ -2,5 +2,7 @@ + % Preamble for HTML output using Hevea + % + \documentclass[a4paper]{report} ++\usepackage{html} ++\usepackage{htmllist} + \input{fpc-hevea.tex} + \newcommand{\keywordlink}[1]{\typeout{Keyword link: #1}} --- fpc-2.2.0.orig/debian/patches/06_dbase_units.dpatch +++ fpc-2.2.0/debian/patches/06_dbase_units.dpatch @@ -0,0 +1,544 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 06_unit_dbase.dpatch by > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: This patch enables building dabse FCL units for architectures +## DP: other than i386. + +@DPATCH@ +Index: fpcsrc/packages/fcl-db/src/dbase/Makefile.fpc +=================================================================== +--- fpc-2.2.0~/fpcsrc/packages/fcl-db/src/dbase/Makefile.fpc (revision 9266) ++++ fpc-2.2.0/fpcsrc/packages/fcl-db/src/dbase/Makefile.fpc (working copy) +@@ -6,11 +6,12 @@ + main=fcl-db + + [target] +-units_i386=dbf +-examples_i386=testdbf ++units=dbf \ ++ dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields \ ++ dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile \ ++ dbf_prscore dbf_prsdef dbf_prssupp dbf_str + +-units_x86_64=dbf +-examples_x86_64=testdbf ++examples=testdbf + + [compiler] + options=-S2 -Sh +@@ -20,37 +21,17 @@ + + [install] + fpcpackage=y +-units_i386=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields \ +- dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile \ +- dbf_prscore dbf_prsdef dbf_prssupp dbf_str + +- +-units_x86_64=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields \ +- dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile \ +- dbf_prscore dbf_prsdef dbf_prssupp dbf_str +- +-[clean] +-units=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields \ +- dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile \ +- dbf_prscore dbf_prsdef dbf_prssupp dbf_str +- + [prerules] + # dbf_Wtil is needed on all targets except windows + ifneq ($(OS_TARGET),win32) + ifneq ($(OS_TARGET),win64) + +-ifeq ($(CPU_TARGET),i386) + INSTALL_UNITS+=dbf_wtil + CLEAN_UNITS+=dbf_wtil +-endif + +-ifeq ($(CPU_TARGET),x86_64) +-INSTALL_UNITS+=dbf_wtil +-CLEAN_UNITS+=dbf_wtil + endif +- + endif +-endif + + [rules] + .NOTPARALLEL: +Index: fpcsrc/packages/fcl-db/src/dbase/Makefile +=================================================================== +--- fpc-2.2.0~/fpcsrc/packages/fcl-db/src/dbase/Makefile (revision 9266) ++++ fpc-2.2.0/fpcsrc/packages/fcl-db/src/dbase/Makefile (working copy) +@@ -1,5 +1,5 @@ + # +-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/08/29] ++# Don't edit, this file is generated by FPCMake Version 2.0.0 [2007/11/30] + # + default: all + MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-embedded +@@ -234,85 +234,163 @@ + PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-db/Makefile.fpc,$(PACKAGESDIR)))))) + ifneq ($(OS_TARGET),win32) + ifneq ($(OS_TARGET),win64) +-ifeq ($(CPU_TARGET),i386) + INSTALL_UNITS+=dbf_wtil + CLEAN_UNITS+=dbf_wtil + endif +-ifeq ($(CPU_TARGET),x86_64) +-INSTALL_UNITS+=dbf_wtil +-CLEAN_UNITS+=dbf_wtil + endif +-endif +-endif + ifeq ($(FULL_TARGET),i386-linux) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-go32v2) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-win32) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-os2) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-freebsd) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-beos) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-netbsd) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-solaris) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-qnx) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-netware) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-openbsd) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-wdosx) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-darwin) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-emx) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-watcom) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-netwlibc) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-wince) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-embedded) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),i386-symbian) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif ++ifeq ($(FULL_TARGET),m68k-linux) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),m68k-freebsd) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),m68k-netbsd) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),m68k-amiga) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),m68k-atari) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),m68k-openbsd) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),m68k-palmos) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),m68k-embedded) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc-linux) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc-netbsd) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc-amiga) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc-macos) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc-darwin) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc-morphos) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc-embedded) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),sparc-linux) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),sparc-netbsd) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),sparc-solaris) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),sparc-embedded) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif + ifeq ($(FULL_TARGET),x86_64-linux) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),x86_64-freebsd) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),x86_64-win64) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif + ifeq ($(FULL_TARGET),x86_64-embedded) +-override TARGET_UNITS+=dbf ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str + endif ++ifeq ($(FULL_TARGET),arm-linux) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),arm-palmos) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),arm-wince) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),arm-gba) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),arm-nds) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),arm-embedded) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),arm-symbian) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc64-linux) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif ++ifeq ($(FULL_TARGET),powerpc64-embedded) ++override TARGET_UNITS+=dbf dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++endif + ifeq ($(FULL_TARGET),i386-linux) + override TARGET_EXAMPLES+=testdbf + endif +@@ -370,240 +448,102 @@ + ifeq ($(FULL_TARGET),i386-symbian) + override TARGET_EXAMPLES+=testdbf + endif +-ifeq ($(FULL_TARGET),x86_64-linux) ++ifeq ($(FULL_TARGET),m68k-linux) + override TARGET_EXAMPLES+=testdbf + endif +-ifeq ($(FULL_TARGET),x86_64-freebsd) ++ifeq ($(FULL_TARGET),m68k-freebsd) + override TARGET_EXAMPLES+=testdbf + endif +-ifeq ($(FULL_TARGET),x86_64-win64) ++ifeq ($(FULL_TARGET),m68k-netbsd) + override TARGET_EXAMPLES+=testdbf + endif +-ifeq ($(FULL_TARGET),x86_64-embedded) ++ifeq ($(FULL_TARGET),m68k-amiga) + override TARGET_EXAMPLES+=testdbf + endif +-ifeq ($(FULL_TARGET),i386-linux) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-go32v2) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-win32) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-os2) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-freebsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-beos) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-netbsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-solaris) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-qnx) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-netware) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-openbsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-wdosx) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-darwin) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-emx) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-watcom) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-netwlibc) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-wince) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-embedded) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-symbian) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),m68k-linux) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),m68k-freebsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),m68k-netbsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),m68k-amiga) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif + ifeq ($(FULL_TARGET),m68k-atari) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),m68k-openbsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),m68k-palmos) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),m68k-embedded) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc-linux) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc-netbsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc-amiga) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc-macos) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc-darwin) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc-morphos) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc-embedded) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),sparc-linux) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),sparc-netbsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),sparc-solaris) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),sparc-embedded) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),x86_64-linux) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),x86_64-freebsd) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),x86_64-win64) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),x86_64-embedded) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),arm-linux) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),arm-palmos) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),arm-wince) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),arm-gba) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),arm-nds) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),arm-embedded) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),arm-symbian) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc64-linux) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif + ifeq ($(FULL_TARGET),powerpc64-embedded) +-override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str ++override TARGET_EXAMPLES+=testdbf + endif +-ifeq ($(FULL_TARGET),i386-linux) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-go32v2) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-win32) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-os2) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-freebsd) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-beos) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-netbsd) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-solaris) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-qnx) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-netware) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-openbsd) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-wdosx) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-darwin) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-emx) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-watcom) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-netwlibc) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-wince) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-embedded) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),i386-symbian) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),x86_64-linux) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),x86_64-freebsd) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),x86_64-win64) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif +-ifeq ($(FULL_TARGET),x86_64-embedded) +-override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str +-endif + override INSTALL_FPCPACKAGE=y + ifeq ($(FULL_TARGET),i386-linux) + override COMPILER_OPTIONS+=-S2 -Sh --- fpc-2.2.0.orig/debian/control +++ fpc-2.2.0/debian/control @@ -0,0 +1,235 @@ +Source: fpc +Section: devel +Priority: optional +Maintainer: Carlos Laviola +Uploaders: Torsten Werner +Standards-Version: 3.7.2.2 +Build-Depends: fp-compiler, fp-utils, debhelper (>= 5), awk, gs-common, + libncurses5-dev, libgpmg1-dev, dpatch, findutils +Build-Depends-Indep: hevea +Vcs-Svn: https://bollin.googlecode.com/svn/fpc/trunk/ +Vcs-Browser: http://bollin.googlecode.com/svn/fpc/trunk/ +Homepage: http://www.freepascal.org/ + +Package: fpc +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl, fp-compiler, fp-units-base, fp-ide, fp-units-fcl, fp-units-fv, fp-units-gtk, fp-units-gtk2, fp-units-gnome1, fp-units-db, fp-units-gfx, fp-units-net, fp-units-misc, fp-units-multimedia +Suggests: fp-utils, fp-docs (>= ${source:Upstream-Version}) +Description: Free Pascal Compiler -- Meta Package + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + Some extensions are added to the language, like function overloading. Shared + libraries can be linked and created. Basic Delphi support is already + implemented (classes, exceptions, ansistrings, open arayes). This package + contains dependency on all FPC packages provided on your architecture. You need + at least the RTL package before you can start compiling anything, but if you + want to write any real-world program, you may need to install this meta + package. + +#Package: fpc-source +#Section: devel +#Architecture: all +#Description: Free Pascal Compiler -- Source Code +# The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit +# Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. +# . +# This package contains Free Pascal's own source code. It is meant to be used by +# the Lazarus IDE. + +Package: fp-compiler +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}) +Suggests: fp-utils, fp-docs (>= ${source:Upstream-Version}) +Description: Free Pascal -- Compiler + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + Some extensions are added to the language, like function overloading. Shared + libraries can be linked and created. Basic Delphi support is already + implemented (classes, exceptions, ansistrings). This package contains the + command line compiler. You need at least the RTL package before you can start + compiling anything. + +Package: fp-ide +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}) +Suggests: fp-utils, fp-docs (>= ${source:Upstream-Version}) +Description: Free Pascal -- IDE + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + Some extensions are added to the language, like function overloading. Shared + libraries can be linked and created. Basic Delphi support is already + implemented (classes, exceptions, ansistrings). This package contains the + Integrated Development Environment (IDE). The IDE has an internal compiler. + You need at least the RTL package before you can start compiling anything. + +Package: fp-utils +Architecture: i386 powerpc sparc amd64 arm +Recommends: fp-compiler (= ${binary:Version}) +Description: Free Pascal -- Utils + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains some handy utils for usage with the Free Pascal + Compiler: + - ppumove Place multiple units in a shared library + - ppufiles Show needed files for units + - ppudump Dump the information stored in a .ppu (unit) file + - fpcmake Create Makefile from Makefile.fpc + - h2pas Convert .h files to pascal units + - ppdep Create a dependency file which can be used with Makefiles + - ptop Source beautifier + - data2inc Convert binary/text data to include files + - plex/pyacc Pascal Lex/Yacc implementation + +Package: fp-docs +Section: doc +Architecture: all +Description: Free Pascal -- Documentation + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains the documentation for the Free Pascal Compiler. + The documentation is available in HTML and in PDF. + +Package: fp-units-rtl +Architecture: i386 powerpc sparc amd64 arm +Recommends: fp-compiler (= ${binary:Version}) +Description: Free Pascal -- Runtime Library + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains the Runtime Libraries for the Free Pascal Compiler. + +Package: fp-units-base +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal -- base units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains Free Pascal units for common libraries. Some of these + units are also required by the Free Component Library: + - X11 (Xlib, Xutil) + - NCurses + - ZLib + +Package: fp-units-fcl +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}), fp-units-base (= ${binary:Version}) +Description: Free Pascal -- Free Component Library + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains the Free Component Library for the Free Pascal Compiler. + +Package: fp-units-fv +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal -- Free Vision units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains the Free Vision units for the Free Pascal Compiler. + +Package: fp-units-gtk +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}), fp-units-fcl (= ${binary:Version}), libgtk2.0-dev +Description: Free Pascal -- GTK 1.2 units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains Free Pascal units and examples to create + programs with GTK 1.2. + +Package: fp-units-gtk2 +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}), fp-units-fcl (= ${binary:Version}) +Description: Free Pascal -- GTK 2.x units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains Free Pascal units and examples to create + programs with GTK 2.x. + +Package: fp-units-gnome1 +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}), fp-units-gtk (= ${binary:Version}) +Description: Free Pascal -- GNOME 1 units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains Free Pascal units and examples to create + programs for GNOME 1. + +Package: fp-units-db +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal -- database libraries units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains Free Pascal units with bindings for: + - MySQL + - Interbase + - PostgreSQL + - Oracle + - ODBC + - GDBM + - SQLite + +Package: fp-units-gfx +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}), fp-units-base (= ${binary:Version}) +Description: Free Pascal -- graphics libraries units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains Free Pascal units with bindings for: + - opengl :OpenGL + - forms : Forms 0.88 + - svgalib : Svgalib + - ggi : General Graphical Interface + - libgd + - libpng + - graph + - openal + - cairo + +Package: fp-units-net +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal -- networking units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + This package contains Free Pascal units for creating network tools: + - netdb : NetDB unit for TCP/IP handling + - libasync : LibAsync unit for easy Asynchronous IO + - libcurl + - dbus + - httpd-1.3 + - httpd-2.0 + - httpd-2.2 + - ldap + - openssl : Open SSL + - pcap + +Package: fp-units-misc +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal -- miscellaneous units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + Free Pascal miscellaneous units for: + - Utmp + - PasZLib (Pascal-only zlib implementation) + +Package: fp-units-multimedia +Architecture: i386 powerpc sparc amd64 arm +Depends: fp-units-rtl (= ${binary:Version}), libogg-dev, libvorbis-dev, a52dec-dev, libdts-dev, libmad0-dev, libmodplug-dev +Description: Free Pascal -- miscellaneous units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + Free Pascal multimedia interfacing units for: + - oggvorbis + - a52 + - dts + - mad + - modplug + +Package: fp-units-i386 +Architecture: i386 +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal -- miscellaneous units + The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32/64-bit + Pascal Compiler. It comes with a fully compatible TP 7.0 runtime library. + Free Pascal specific units for the i386 architecture: + - libc: used for compatibility with kylix, deprecated. --- fpc-2.2.0.orig/debian/fpc-source.install.in +++ fpc-2.2.0/debian/fpc-source.install.in @@ -0,0 +1 @@ +/usr/share/fpcsrc/* --- fpc-2.2.0.orig/debian/fp-compiler.prerm.in +++ fpc-2.2.0/debian/fp-compiler.prerm.in @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +# remove alternative +update-alternatives --remove pc /usr/bin/fpc + +# Debhelper code +#DEBHELPER# --- fpc-2.2.0.orig/debian/README.Debian.in +++ fpc-2.2.0/debian/README.Debian.in @@ -0,0 +1,47 @@ +The Free Pascal Compiler for Debian +----------------------------------- + +The source tree was checked out from the subversion repository at +svn.freepascal.org with + 'svn co http://svn.freepascal.org/svn/fpcbuild/tags/%{fpcsvnpath}' + +Only PDF docs are built as shipped. You may want to make the HTML files with +tex4ht by yourself and eventually adapt the doc-base file. + +To create a new config file for fpc (/etc/fpc.cfg) use the command: + /usr/lib/fpc/%{fpcversion}/samplecfg /usr/lib/fpc/%{fpcversion} +However, you should be aware that said file (/etc/fpc.cfg) is +declared as a conffile since version 1.0.2. + +And, yes - this is a i386/amd64/powerpc/sparc/arm only package currently. + + +Web site and download information: +---------------------------------- + +The Original site is + http://www.freepascal.org/ + ftp://ftp.freepascal.org/ + +HTTP Mirrored at + http://www.nl.freepascal.org/ + http://www.de.freepascal.org/ + http://www.freepascal.sk/ + http://gd.tuwien.ac.at/languages/pascal/fpc/www/ + http://www.atlasz.com/freepascal/ + +FTP Mirrored at + http://fpc.planetmirror.com/pub/fpc/ + ftp://gd.tuwien.ac.at/languages/pascal/fpc/ + ftp://ftp.hu.freepascal.org/pub/fpc/ + ftp://ftp.uni-erlangen.de/pub/mirrors/freepascal/ + http://mirror.mirimar.net/freepascal/ + http://cdn.mirror.garr.it/mirrors/freepascal/ + ftp://ftpsv1.u-aizu.ac.jp/pub/lang/pascal/freepascal/ + ftp://ftp.nl.freepascal.org/pub/fpc/ + ftp://freepascal.stack.nl/pub/fpc/ + ftp://ftp.no.freepascal.org/pub/fpc/ + ftp://ftp.chg.ru/pub/lang/pascal/fpc/ + ftp://ftp.us.freepascal.org/pub/fpc/ + + -- Varun Hiremath , Sat, 20 Jan 2007 01:28:28 +0530 --- fpc-2.2.0.orig/debian/fixdeb +++ fpc-2.2.0/debian/fixdeb @@ -0,0 +1,41 @@ +#!/bin/bash +# +# Create debian files from *.in files +# +# $1 = path to debian files +# $2 = fpc target (i386-linux) +# $3 = ppcXXX binary name (ppc386) +# +if [ $# != 3 ]; then + echo 'Usage : fixdeb path fpctarget ppcbin' + exit 1 +fi + +PACKAGEVERSION=`head -n 1 $1/changelog | awk '{ print $2 }' | tr -d '[()]'` +FPCVERSION=`echo $PACKAGEVERSION | awk -F '-' '{ print $1 }'` +DEBVERSION=`echo $PACKAGEVERSION | awk -F '-' '{ print $2 }'` +FPCSVNPATH=`echo $FPCVERSION | awk -F '.' '{ print "release_"$1"_"$2"_"$3 }'` +FPCTARGET="$2" +PPCBIN="$3" + +# Snapshot ? +if [ "$DEBVERSION" == "0" ]; then + OLDPACKAGEVERSION=$PACKAGEVERSION + DEBVERSION=`/bin/date --utc +%Y%m%d` + PACKAGEVERSION=$FPCVERSION-$DEBVERSION + sed s+$OLDPACKAGEVERSION+$PACKAGEVERSION+ $1/changelog > $1/changelog.tmp + mv $1/changelog.tmp $1/changelog +fi + +echo 'PackageVersion: ' $PACKAGEVERSION +echo 'FPCVersion : ' $FPCVERSION +echo 'FPCTarget : ' $FPCTARGET +echo 'DebVersion : ' $DEBVERSION +echo 'PPCBin : ' $PPCBIN +echo 'SVNPath : ' $FPCSVNPATH + +for i in $1/*.in +do + j=$1/$(basename $i .in) + sed -e 's/%{fpcversion}/'$FPCVERSION'/g;s/%{packageversion}/'$PACKAGEVERSION'/g;s/%{ppcbin}/'$PPCBIN'/g;s/%{fpctarget}/'$FPCTARGET'/g;s/%{fpcsvnpath}/'$FPCSVNPATH'/g' $i > $j +done --- fpc-2.2.0.orig/debian/moveexamples +++ fpc-2.2.0/debian/moveexamples @@ -0,0 +1,47 @@ +#!/bin/bash + +set -e + +EXAMPLE_TEMP=$1 +DOC_DIR=$2 + +function move_examples() +{ + # Make examples dir + install -d -m 755 $DOC_DIR/fp-units-$1/examples/ + + for package in $2 + do + if [ -d $EXAMPLE_TEMP/$package/examples ]; then + echo "Moving examples of $package" + EXAMPLE_TEMP_DIR="$EXAMPLE_TEMP/$package/examples" + EXAMPLE_INSTALL_DIR="$DOC_DIR/fp-units-$1/examples/$package" + # Move dir renaming it + if [ -e "${EXAMPLE_INSTALL_DIR}" ] + then + echo "#### \"${EXAMPLE_INSTALL_DIR}\" is in the way, please remove it first ####" + exit 255 + else + mv -v -f "${EXAMPLE_TEMP_DIR}" "${EXAMPLE_INSTALL_DIR}" + rmdir $EXAMPLE_TEMP/$package + fi + fi + done +} + +echo '**** Copying examples ****' +PACKAGE_LIST='debian/fp-units-'*'.install.in' + +for PACKAGE_FILE in ${PACKAGE_LIST} +do + PACKAGE_NAME=`basename "${PACKAGE_FILE}" '.install.in' | sed -e 's/fp-units-//'` + PACKAGE_CONTENT=`grep '/usr/lib/fpc' "${PACKAGE_FILE}" | sed -e 's@.*/\([^/]\)/\?@\1@'` + echo ' **** PACKAGE_NAME = "'${PACKAGE_NAME}'"' + echo ' **** PACKAGE_CONTENT = "'${PACKAGE_CONTENT}'"' + move_examples "${PACKAGE_NAME}" "${PACKAGE_CONTENT}" +done + +echo '**** Examples copyed ****' + +rmdir $EXAMPLE_TEMP + --- fpc-2.2.0.orig/debian/fp-units-gtk2.install.in +++ fpc-2.2.0/debian/fp-units-gtk2.install.in @@ -0,0 +1,3 @@ +/usr/share/doc/fp-units-gtk2 + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gtk2 --- fpc-2.2.0.orig/debian/fp-compiler.install.in +++ fpc-2.2.0/debian/fp-compiler.install.in @@ -0,0 +1,14 @@ +/etc/fpc.cfg +/usr/bin/fpc +/usr/bin/fpcsubst +/usr/bin/fpcmkcfg +/usr/bin/fppkg +/usr/bin/grab_vcsa +/usr/lib/fpc/%{fpcversion}/ppc* +/usr/lib/fpc/%{fpcversion}/samplecfg +/usr/lib/fpc/%{fpcversion}/msg +/usr/share/doc/fp-compiler +/usr/share/man/man1/fpc.1 +/usr/share/man/man1/ppc*.1 +/usr/share/man/man1/grab_vcsa.1 +/usr/share/man/man5/fpc.cfg.5 --- fpc-2.2.0.orig/debian/fp-units-gnome1.install.in +++ fpc-2.2.0/debian/fp-units-gnome1.install.in @@ -0,0 +1,6 @@ +/usr/share/doc/fp-units-gnome1 + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/imlib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gnome +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gconf +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/zvt --- fpc-2.2.0.orig/debian/fp-units-gfx.install.in +++ fpc-2.2.0/debian/fp-units-gfx.install.in @@ -0,0 +1,14 @@ +/usr/share/doc/fp-units-gfx + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/opengl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/forms +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/svgalib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ggi +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libgd +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libpng +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/graph +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/openal +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/cairo + +/usr/bin/fd2pascal +/usr/share/man/man1/fd2pascal.1 --- fpc-2.2.0.orig/debian/fp-units-db.install.in +++ fpc-2.2.0/debian/fp-units-db.install.in @@ -0,0 +1,9 @@ +/usr/share/doc/fp-units-db + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/mysql +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ibase +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/postgres +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/oracle +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/odbc +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gdbm +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/sqlite --- fpc-2.2.0.orig/debian/changelog +++ fpc-2.2.0/debian/changelog @@ -0,0 +1,354 @@ +fpc (2.2.0-2) unstable; urgency=low + + [ Mazen Neifer ] + * Added dbase to fcl-db packaged units for arch other than i386. + * Fixed build issue for sparc and powerpc arch. + + -- Torsten Werner Fri, 07 Dec 2007 09:22:17 +0100 + +fpc (2.2.0-1) unstable; urgency=low + + [ Carlos Laviola ] + * New upstream release. (Closes: #442206) + * Added arm as a supported arch. (Closes: #408693) + * fp-units-gfx depends on libggi-dev. (Closes: #423659) + * fp-ide bugs fixed in the new version. (Closes: #423099, #423601, #423602) + * general cleanup on debian/{rules,control,...} + + [ Torsten Werner ] + * Complete debian/copyright. + * Add debian/watch and get-orig-source target in debian/rules. + * Remove *.dll, *.exe, and *.log from upstream tarball. + + -- Torsten Werner Fri, 23 Nov 2007 20:30:45 +0100 + +fpc (2.0.4-5) unstable; urgency=low + + * Fixed Build-Depends. + * Add myself to Uploaders in debian/control. + * Make sure that the sources are really patched before building them. + * Build unit 'libc' on powerpc too. + + -- Torsten Werner Sat, 27 Jan 2007 20:08:50 +0100 + +fpc (2.0.4-4) unstable; urgency=low + + * debian/rules: Separate out the documentation build into build-doc to + stop the documentations from building on binary-arch builds resulting + in FTBFS. + * Add Index value in debian/fp-docs.doc-base (Closes: #407715) + + -- Varun Hiremath Sun, 21 Jan 2007 20:49:43 +0530 + +fpc (2.0.4-3) unstable; urgency=medium + + * Added dpatch as a build dependency. (Closes: #407594) + + -- Carlos Laviola Sun, 21 Jan 2007 17:08:58 -0200 + +fpc (2.0.4-2) unstable; urgency=low + + * New release fixes Bug: "fp-compiler: miscompiles multilevel + if-statement" (Closes: #403586) + * Provide html docs (Closes: #150150) + + debian/rules: Set DOCTYPE=html and use CONVERTER=hevea + + debian/control: Add hevea to Build-Depends + + -- Varun Hiremath Tue, 16 Jan 2007 21:53:01 +0530 + +fpc (2.0.4-1) unstable; urgency=low + + [ Mazen Neifer ] + * New release (Closes: #383055) + + [ Torsten Werner ] + * Fix bugs in debian/fp-compiler.pre*.in. + * Updated debian/control to use variables provides by newer versions of + dpkg. + * Add XS-X-Vcs-Svn header to debian/control. + * Add german po files from Holger Wansing. (Closes: #348408, #346247) + * Remove unneeded debian/fp-compiler.conffiles. + * Fixed debian/changelog (lintian error). + * Changed Build-Depends: gawk | awk. + + [ Varun Hiremath ] + * Bump Standards version to 3.7.2 + * Add Homepage in debian/control file. + * Add fp-units-gtk2 missing dependencies (Closes: #337990) + + -- Torsten Werner Sun, 14 Jan 2007 11:40:59 +0100 + +fpc (2.0.4-rc3) unstable; urgency=low + + * New release candidate + + -- Mazen Neifer Sun, 06 Aug 2006 19:00:00 +0200 + +fpc (2.0.4-rc2) unstable; urgency=low + + * New release candidate + + -- Mazen Neifer Tue, 18 Jul 2006 21:23:26 +0200 + +fpc (2.0.4-rc1) unstable; urgency=low + + * New release + + -- Peter Vreman Thu, 07 Jul 2006 12:00:00 +0100 + +fpc (2.0.0-4) unstable; urgency=low + + * debian/control.in: add amd64 to the Architecture field. + + -- Carlos Laviola Fri, 9 Sep 2005 18:38:26 -0300 + +fpc (2.0.0-3) unstable; urgency=medium + + * Created a prerm and preinst for fp-compiler, as /usr/bin/fpc needs to + be removed from the list of 'pc' alternatives. (Closes: #311436) + * Added amd64 to the architecture list. (Closes: #315220) + + -- Carlos Laviola Fri, 2 Sep 2005 10:27:21 -0300 + +fpc (2.0.0-2) unstable; urgency=low + + * debian/fp-compiler.postinst.in: forgot to reapply the patch that + correctly creates the slave link to pc(1). (Closes: #310907) + + -- Carlos Laviola Mon, 30 May 2005 11:59:10 -0300 + +fpc (2.0.0-1) unstable; urgency=low + + * As I couldn't upload 1.9.8 on all supported architectures before 2.0.0 + was released, I'm rehashing its changelog now. + * New upstream release. + Bugs fixed on CVS before 1.9.8: + * man/man1/fpc.1: -OPn changed to -Opn in rev 1.8 (Closes: #255960) + * debian/fp-compiler.postinst.in: fixed in rev 1.5 (Closes: #269853) + Bugs fixed on CVS before 1.9.6: + * rtl/unix/crt.pp: fixed in rev 1.20 (Closes: #216060) + * rtl/i386/strings.inc: fixed in rev 1.16 (Closes: #288955) + * compiler/nadd.pas: fixed in rev 1.126 (Closes: #297881) + * debian/control: Added missing build dependencies on libgpmg1-dev and + libncurses5-dev and set save_size at build time, which finally makes + the package build without manual intervention. (Closes: #304633) + + -- Carlos Laviola Fri, 20 May 2005 19:07:00 -0300 + +fpc (1.9.6-2) unstable; urgency=low + + * debian/control: Oops -- fp-units-fv had the wrong description. + + -- Carlos Laviola Fri, 14 Jan 2005 13:15:50 -0200 + +fpc (1.9.6-1) unstable; urgency=low + + * New upstream release. + * debian/control: Added build dependency on libgpmg1-dev. + + -- Carlos Laviola Fri, 31 Dec 2004 21:16:25 -0200 + +fpc (1.9.4-5) unstable; urgency=low + + * fp-compiler: needs ld, adding dependency on binutils. (Closes: #265265) + + -- Carlos Laviola Thu, 12 Aug 2004 16:29:37 -0300 + +fpc (1.9.4-4) unstable; urgency=low + + * debian/control.in: Oops, forgot to update the Build-Deps for this file, + which generates debian/control per se. (Closes: #263942) + + -- Carlos Laviola Sun, 8 Aug 2004 22:12:41 -0300 + +fpc (1.9.4-3) unstable; urgency=low + + * Package needs fpcmake to build pretty much everything, so we need to + build-dep on fp-utils. Thanks to Daniel Schepler for finding the bug + and for Jurij Smakov's aid. (Closes: #263942) + * debian/README.Debian: removes mentions to old problems with tetex, fixes + spelling mistakes and other minor issues. + + -- Carlos Laviola Fri, 6 Aug 2004 19:46:51 -0300 + +fpc (1.9.4-2) unstable; urgency=low + + * The following fixes are the work of Marco van de Voort from CVS HEAD: + - man/man1/ppc386.1: typo fix. (Closes: #255960) + - rtl/unix/crt.pp: gotoxy/XY2Ansi fixes from. + (Closes: #216057, #216060) + - docs/linuxex, docs/dosex, docs/refex: various examples ported to + fpc 1.9.x's new API. + + -- Carlos Laviola Tue, 20 Jul 2004 15:12:05 -0300 + +fpc (1.9.4-1) unstable; urgency=low + + * This release is partly the work of Peter Vreman . + * Acknowledging NMU. (Closes: #221316) + * Made the description for the units packages more informative. + (Closes: #209518, #209581, #209613) + * Applied some patches from Marco van de Voort to CVS HEAD that fixed + compiling the documentation on powerpc with some adaptations of mine. + + -- Carlos Laviola Sat, 17 Jul 2004 21:53:03 -0300 + +fpc (1.0.10-1.2) unstable; urgency=low + + * NMU + * debian/control: Also had to remove build dependency on latex2html here + (Closes: #221316) + + -- Roland Stigge Thu, 12 Feb 2004 10:27:20 +0100 + +fpc (1.0.10-1.1) unstable; urgency=low + + * NMU + * debian/control.in: Removed Build-Depends: latex2html which moved to + non-free (Closes: #221316) + + -- Roland Stigge Sat, 20 Dec 2003 20:45:41 +0100 + +fpc (1.0.10-1) unstable; urgency=low + + * New upstream release. + * Acknowledging Amaya's NMU. Thanks for the hand. (Closes: #141439) + * Package dependency lists corrected. (Closes: #84863, #155158) + * Example compiles correctly now. (Closes: #174371) + * Fixed vanishing fpc(1) manpage if gpc is installed. (Closes: #136283) + * Fixed manpage error. (Closes: #191695) + * Spelling mistakes are gone. (Closes: #124637, #124638) + * Both bugs (doc-base-file-references-usr-doc and debian-changelog-file- + contains-obsolete-user-emacs-settings, in lintian tags) were corrected + long ago. (Closes: #127092) + * Upstream have added the AddDisk function. (Closes: #103163) + + -- Carlos Laviola Sat, 2 Aug 2003 04:35:51 -0300 + +fpc (1.0.6-2) unstable; urgency=low + + * NMU for Debcamp BSP. + * Apply a very silly patch (Closes: #141439), which was RC. The PDF file now + builds. + * Updated versioned-build-depends-on-debhelper. + + -- Amaya Rodrigo Sastre Sat, 12 Jul 2003 17:58:50 +0200 + +fpc (1.0.6-1) unstable; urgency=low + + * New upstream version. (Closes: #154199) + + -- Carlos Laviola Sat, 10 Aug 2002 04:26:15 -0300 + +fpc (1.0.4+1.0.6cvs20020228-1) unstable; urgency=low + + * New upstream version. + + -- Peter Vreman Tue, 1 Mar 2002 11:01:50 +0100 + +fpc (1.0.4-2) unstable; urgency=low + + * New maintainer. + * debian/README.Debian: Added a note on building 'pdflatex.fmt', which is + needed by pdflatex, in order to build the documentation in PDF format. + * debian/control: added latex2html, dvipdfm and tetex-extra to the + build-deps list. + + -- Carlos Laviola Wed, 29 Aug 2001 23:15:17 -0300 + +fpc (1.0.4-1) unstable; urgency=low + + * New upstream version. + + -- Ulf Jaenicke-Roessler Tue, 2 Jan 2001 11:01:50 +0100 + +fpc (1.0.3-0.20001206.1) unstable; urgency=low + + * Snapshot release from CVS 2000/12/06. + * Fixes internal compiler error on (buggy) appearance of + array of Date (Closes:#60720). + * ppc386 can be called more intuitively as fpc (Closes:#74810). + * Help option '-h' is (somewhat) more propagated than '-?' + (Closes:#74811). Furthermore, help is displayed when fpc + is called without any parameter. + * Package supports alternatives now, in order to be used as + "Pascal compiler" (pc) from Makefile(s) (Closes:#76615). + + -- Ulf Jaenicke-Roessler Wed, 6 Dec 2000 11:29:28 +0100 + +fpc (1.0.2-1) unstable; urgency=low + + * New upstream version. + * Maintainer field changed. + * Bug#60720 had already been fixed in the development tree some + time ago after the last upload (hence, this Closes: #60720). + + -- Ulf Jaenicke-Roessler Fri, 13 Oct 2000 13:11:34 +0200 + +fpc (1.0.1-0.20000811.1) unstable; urgency=low + + * Built for `official' upload. CVS as of 2000/08/11 - NMU. + * Update to latest version, thus Closes: #56873. + * Removes /usr/bin/ppc386 link upon package removal. Closes: #64403. + * This upload also Closes: #68801. + * Added Build-Depends. Hmmm, 'fp-compiler' is somehow like `the chicken + and the egg' story... + + -- Ulf Jaenicke-Roessler Fri, 11 Aug 2000 22:49:37 +0200 + +fpc (1.0.1-0) unstable; urgency=low + + * New Upstream Release + + -- Peter Vreman Sun, 09 Jun 2000 12:00:00 +0200 + +fpc (0.99.13-19991013-4) unstable; urgency=low + + * Fixed bashism in samplecfg (Closes: Bug#50636) + * Changed source-arch to 'i386' (Closes: Bug#50438) + + -- Mika Fischer Sat, 20 Nov 1999 22:18:11 +0100 + +fpc (0.99.13-19991013-3) unstable; urgency=low + + * Fixed bug which overwrote existing config files during an update + (Closes: Bug#50278) + + -- Mika Fischer Tue, 16 Nov 1999 23:57:36 +0100 + +fpc (0.99.13-19991013-2) unstable; urgency=low + + * Fixed bug in debian/rules (Fixes: #50096) + + -- Mika Fischer Sat, 13 Nov 1999 20:31:20 +0100 + +fpc (0.99.13-19991013-1) unstable; urgency=low + + * Removed fp-fv due to licensing issues. + + -- Mika Fischer Wed, 13 Oct 1999 19:33:30 +0200 + +fpc (0.99.13-19991005-1) unstable; urgency=low + + * New maintainer + + -- Mika Fischer Wed, 13 Oct 1999 19:33:13 +0200 + +fpc (0.99.13-19991001-1) unstable; urgency=low + + * New maintainer + * Updated to policy 3.0.1 + + -- Joseph Carter Tue, 27 Jul 1999 18:05:05 -0700 + +fpc (0.99.12b-1) unstable; urgency=low + + * New Upstream Release + + -- Peter Vreman Thu, 10 Jun 1999 12:00:00 +0200 + +fpc (0.99.12a-1) unstable; urgency=low + + * Initial Release + + -- Peter Vreman Thu, 10 Jun 1999 12:00:00 +0200 --- fpc-2.2.0.orig/debian/watch +++ fpc-2.2.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/freepascal/ fpcbuild-(.*).tar.gz debian debian/orig-tar.sh --- fpc-2.2.0.orig/debian/fp-compiler.postinst.in +++ fpc-2.2.0/debian/fp-compiler.postinst.in @@ -0,0 +1,16 @@ +#! /bin/sh + +set -e + +FPCDIR=/usr/lib/fpc/%{fpcversion} + +# add alternative +update-alternatives \ + --install /usr/bin/pc pc /usr/bin/fpc 20 \ + --slave /usr/share/man/man1/pc.1.gz pc.1.gz /usr/share/man/man1/fpc.1.gz + +# create link +ln -sf $FPCDIR/%{ppcbin} /usr/bin/%{ppcbin} + +# Debhelper code +#DEBHELPER# --- fpc-2.2.0.orig/debian/fp-compiler.preinst.in +++ fpc-2.2.0/debian/fp-compiler.preinst.in @@ -0,0 +1,12 @@ +#! /bin/sh + +set -e + +# Remove fpc from pc alternative if buggy 2.0.0-{1,2} versions are upgraded + +if [ "$1" = "upgrade" ] && [ "$2" = "2.0.0-1" ] || [ "$2" = "2.0.0-2" ]; then + /usr/sbin/update-alternatives --remove pc /usr/bin/fpc +fi + +# Debhelper code +#DEBHELPER# --- fpc-2.2.0.orig/debian/fp-compiler.postrm.in +++ fpc-2.2.0/debian/fp-compiler.postrm.in @@ -0,0 +1,9 @@ +#! /bin/sh + +FPCDIR=/usr/lib/fpc/%{fpcversion} + +# remove link +rm -f /usr/bin/%{ppcbin} + +# Debhelper code +#DEBHELPER# --- fpc-2.2.0.orig/debian/compat +++ fpc-2.2.0/debian/compat @@ -0,0 +1 @@ +5 --- fpc-2.2.0.orig/debian/fp-docs.install.in +++ fpc-2.2.0/debian/fp-docs.install.in @@ -0,0 +1 @@ +/usr/share/doc/fp-docs --- fpc-2.2.0.orig/debian/fp-units-multimedia.install.in +++ fpc-2.2.0/debian/fp-units-multimedia.install.in @@ -0,0 +1,7 @@ +/usr/share/doc/fp-units-multimedia + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/oggvorbis +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/a52 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/dts +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/mad +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/modplug --- fpc-2.2.0.orig/debian/fp-ide.install.in +++ fpc-2.2.0/debian/fp-ide.install.in @@ -0,0 +1,5 @@ +/usr/bin/fp +/usr/lib/fpc/%{fpcversion}/ide +/usr/share/doc/fp-ide +/usr/share/man/man1/fp.1 + --- fpc-2.2.0.orig/debian/fp-units-fcl.install.in +++ fpc-2.2.0/debian/fp-units-fcl.install.in @@ -0,0 +1,10 @@ +/usr/share/doc/fp-units-fcl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-base +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-db +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-fpcunit +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-image +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-net +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-passrc +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-registry +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-web +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-xml --- fpc-2.2.0.orig/debian/rules +++ fpc-2.2.0/debian/rules @@ -0,0 +1,269 @@ +#!/usr/bin/make -f +# debian/rules for Free Pascal + +# stolen from cdbs: +DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') +DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-) +DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//') + +# Documentation type to use pdf/html +ifeq (${DEBDOCTYPE},) +DOCTYPE=html +# HTML Converter l2h/4ht/hevea or html for (default) +CONVERTER=hevea +else +DOCTYPE=${DEBDOCTYPE} +CONVERTER=${DOCTYPE} +endif + +# Detect name of new compiler, take care that debian uses amd64 instead of x86_64 +CPU_SOURCE=$(subst amd64,x86_64,$(shell dpkg-architecture -qDEB_BUILD_ARCH)) +CPU_TARGET=$(subst amd64,x86_64,$(shell dpkg-architecture -qDEB_HOST_ARCH)) + +ifeq ($(CPU_TARGET),m68k) +PPSUF=68k +endif +ifeq ($(CPU_TARGET),i386) +PPSUF=386 +endif +ifeq ($(CPU_TARGET),x86_64) +PPSUF=x64 +endif +ifeq ($(CPU_TARGET),powerpc) +PPSUF=ppc +endif +ifeq ($(CPU_TARGET),alpha) +PPSUF=axp +endif +ifeq ($(CPU_TARGET),arm) +PPSUF=arm +endif +ifeq ($(CPU_TARGET),sparc) +PPSUF=sparc +endif + +ifneq ($(CPU_SOURCE),$(CPU_TARGET)) +PPPRE=ppcross +else +PPPRE=ppc +endif + +PPNEW=$(PPPRE)$(PPSUF) + +# Reset FPC and FPCDIR if it was set +FPC= +FPCDIR= +# Get Package version and FPC version out of changelog file +PACKAGEVERSION:=$(shell head -n 1 debian/changelog | awk '{ print $$2 }' | tr -d '[()]') +FPCVERSION:=$(shell echo $(PACKAGEVERSION) | awk -F '-' '{ print $$1 }') +FPCTARGET=$(CPU_TARGET)-linux +# Get directories +CURDIR:=$(shell pwd) +BUILD_DIR=$(CURDIR)/debian/build +INSTALL_DIR=$(CURDIR)/debian/tmp +DOC_DIR=$(INSTALL_DIR)/usr/share/doc +EXAMPLE_TEMP=$(DOC_DIR)/fpc-$(FPCVERSION) +# Get utils +NEWPP=$(CURDIR)/fpcsrc/compiler/$(PPNEW) +NEWFPDOC=$(CURDIR)/fpcsrc/utils/fpdoc/fpdoc +NEWFPCMAKE=$(CURDIR)/fpcsrc/utils/fpcm/fpcmake +# Create default options +BUILDOPTS=PP=$(NEWPP) +INSTALLOPTS=PP=$(NEWPP) FPCMAKE=$(NEWFPCMAKE) INSTALL_PREFIX=$(INSTALL_DIR)/usr + +# export DH_VERBOSE=1 + +################### +# Clean +# + +clean: clean-patched unpatch +clean-patched: + @echo "--- Cleaning" + dh_testdir + dh_testroot + rm -f build-arch-stamp install-arch-stamp arrange-arch-stamp + rm -f build-doc-stamp install-doc-stamp + rm -f build-indep-stamp install-indep-stamp + rm -f debian-files-stamp + rm -f debian/*.files debian/*.docs debian/*.examples debian/*.postinst debian/*.postrm + $(MAKE) -C fpcsrc compiler_distclean + $(MAKE) -C fpcsrc rtl_distclean + $(MAKE) -C fpcsrc packages_distclean + $(MAKE) -C fpcsrc fv_distclean + $(MAKE) -C fpcsrc ide_distclean + $(MAKE) -C fpcsrc utils_distclean + $(MAKE) -C fpcdocs clean + -(find . -name \*.a | xargs rm) + dh_clean + +patch: patch-stamp + +patch-stamp: + dpatch apply-all + touch patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +################### +# Debian files +# + +debian-files: debian-files-stamp +debian-files-stamp: + @echo "--- Creating/fixing *.install files" + /bin/bash debian/fixdeb debian $(FPCTARGET) $(PPNEW) + touch debian-files-stamp + +################### +# Arch packages +# + +build-arch: build-arch-stamp +build-arch-stamp: debian-files-stamp + @echo "--- Building" + dh_testdir +# First make a new Compiler and RTL using a make cycle + $(MAKE) -C fpcsrc compiler_cycle + $(MAKE) -C fpcsrc rtl_clean rtl_smart $(BUILDOPTS) + $(MAKE) -C fpcsrc packages_base_smart $(BUILDOPTS) + $(MAKE) -C fpcsrc packages_fcl_smart $(BUILDOPTS) + $(MAKE) -C fpcsrc fv_smart $(BUILDOPTS) + $(MAKE) -C fpcsrc packages_extra_smart $(BUILDOPTS) + $(MAKE) -C fpcsrc ide_all $(BUILDOPTS) + $(MAKE) -C fpcsrc utils_all $(BUILDOPTS) + touch build-arch-stamp + +install-arch: install-arch-stamp +install-arch-stamp: build-arch-stamp debian-files-stamp + @echo "--- Installing" + dh_testdir + dh_testroot + dh_clean -k +# Specify the compiler to use so installing will use the correct versioned dir + $(MAKE) -C fpcsrc compiler_distinstall $(INSTALLOPTS) + $(MAKE) -C fpcsrc rtl_distinstall $(INSTALLOPTS) + $(MAKE) -C fpcsrc fv_distinstall $(INSTALLOPTS) + $(MAKE) -C fpcsrc packages_distinstall $(INSTALLOPTS) + $(MAKE) -C fpcsrc ide_distinstall $(INSTALLOPTS) INSTALL_DOCDIR=$(DOC_DIR)/fp-ide + $(MAKE) -C fpcsrc utils_distinstall $(INSTALLOPTS) +# Copy examples to the correct doc dir + /bin/bash debian/moveexamples $(EXAMPLE_TEMP) $(DOC_DIR) +# Install man pages and RTL demos and whatsnew and readme + $(MAKE) -C install/man installman $(INSTALLOPTS) INSTALL_PREFIX=$(INSTALL_DIR)/usr/share + $(MAKE) -C demo sourceinstall $(INSTALLOPTS) INSTALL_SOURCEDIR=$(DOC_DIR)/fp-compiler + $(MAKE) -C install/doc installdoc $(INSTALLOPTS) INSTALL_DOCDIR=$(DOC_DIR)/fp-compiler +# Create fpc.cfg which is included as conffile + /bin/bash fpcsrc/compiler/utils/samplecfg \ + /usr/lib/fpc/$(DEB_UPSTREAM_VERSION) $(INSTALL_DIR)/etc + touch install-arch-stamp + +arrange-arch: arrange-arch-stamp +arrange-arch-stamp: install-arch-stamp debian-files-stamp + dh_testdir + dh_testroot + dh_install -s --sourcedir=debian/tmp --list-missing + + touch arrange-arch-stamp + +build-indep: patch +install-indep: + touch install-indep-stamp + +################### +# Documentation +# + +build-doc: patch build-doc-stamp +build-doc-stamp: debian-files-stamp + @echo "--- Building Documentation" + dh_testdir + $(MAKE) -C fpcdocs $(CONVERTER) $(BUILDOPTS) FPDOC=$(NEWFPDOC) + touch build-indep-stamp + +install-doc: install-doc-stamp +install-doc-stamp: build-doc-stamp debian-files-stamp + @echo "--- Installing Documentation" + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) -C fpcdocs $(DOCTYPE)install $(INSTALLOPTS) INSTALL_DOCDIR=$(INSTALL_DIR)/usr/share/doc/fp-docs + touch install-doc-stamp + +################### +# Source +# + +install-source: install-source-stamp +install-source-stamp: + @echo "--- Cleaning the tree and copying the source code" + dh_testdir + dh_testroot + $(MAKE) -C fpcsrc compiler_distclean + $(MAKE) -C fpcsrc rtl_distclean + $(MAKE) -C fpcsrc packages_distclean + $(MAKE) -C fpcsrc fv_distclean + $(MAKE) -C fpcsrc ide_distclean + $(MAKE) -C fpcsrc utils_distclean + -(find . -name \*.a | xargs rm) + install -d $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/compiler $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/fv $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/ide $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/installer $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/packages $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/rtl $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/tests $(INSTALL_DIR)/usr/share/fpcsrc/ + cp -r $(CURDIR)/fpcsrc/utils $(INSTALL_DIR)/usr/share/fpcsrc/ + touch install-source-stamp + +################### +# Generic +# + +build: build-arch build-indep +install: install-arch install-indep +binary: binary-arch binary-indep + + +################### +# Deb building +# + +binary-indep: build-doc install-doc install-source debian-files + @echo "--- Building: arch-indep packages" + dh_testdir + dh_testroot + dh_installdocs -i + dh_installchangelogs -i + dh_install -i --sourcedir=debian/tmp --list-missing + dh_compress -i -X.pdf + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build-arch arrange-arch debian-files + @echo "--- Building: arch packages" + dh_testdir + dh_testroot + dh_installdocs -a + dh_installchangelogs -a + dh_installexamples -a + dh_compress -a + dh_fixperms -a + dh_installdeb -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s + +.PHONY: build clean binary binary-arch \ + binary-indep debian-files build-arch \ + install install-indep install-arch + +get-orig-source: + -uscan --upstream-version 0 --rename --- fpc-2.2.0.orig/debian/orig-tar.sh +++ fpc-2.2.0/debian/orig-tar.sh @@ -0,0 +1,17 @@ +#!/bin/sh -e + +# called by uscan with '--upstream-version' +TAR=$3 +DIR=fpcbuild-$2 + +# clean up the upstream tarball +tar -x -z -f $TAR +tar -c -z -f $TAR --exclude '*.dll' --exclude '*.exe' --exclude '*.log' $DIR +rm -rf $DIR + +# move to directory 'tarballs' +if [ -r .svn/deb-layout ]; then + . .svn/deb-layout + mv $TAR $origDir + echo "moved $TAR to $origDir" +fi --- fpc-2.2.0.orig/debian/fp-units-base.install.in +++ fpc-2.2.0/debian/fp-units-base.install.in @@ -0,0 +1,11 @@ +/usr/share/doc/fp-units-base + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fpmkunit +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/paszlib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/pasjpeg +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ncurses +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/x11 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/regexpr +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/hash +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/uuid +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fppkg --- fpc-2.2.0.orig/debian/fp-units-fv.install.in +++ fpc-2.2.0/debian/fp-units-fv.install.in @@ -0,0 +1,2 @@ +/usr/share/doc/fp-units-fv +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fv --- fpc-2.2.0.orig/debian/fp-units-gtk.install.in +++ fpc-2.2.0/debian/fp-units-gtk.install.in @@ -0,0 +1,4 @@ +/usr/share/doc/fp-units-gtk + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gtk +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fpgtk --- fpc-2.2.0.orig/debian/fp-units-net.install.in +++ fpc-2.2.0/debian/fp-units-net.install.in @@ -0,0 +1,12 @@ +/usr/share/doc/fp-units-net + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/netdb +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libasync +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libcurl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/dbus +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/httpd-1.3 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/httpd-2.0 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/httpd-2.2 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ldap +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/openssl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/pcap --- fpc-2.2.0.orig/debian/fp-units-i386.install.in +++ fpc-2.2.0/debian/fp-units-i386.install.in @@ -0,0 +1,3 @@ +/usr/share/doc/fp-units-i386 + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libc --- fpc-2.2.0.orig/debian/fp-docs.doc-base +++ fpc-2.2.0/debian/fp-docs.doc-base @@ -0,0 +1,10 @@ +Document: fpc-docs +Title: Free Pascal Documentation +Author: Michael van Canneyt +Abstract: Documentation for the Free Pascal Compiler. + . +Section: Development + +Format: html +Files: /usr/share/doc/fp-docs/* +Index: /usr/share/doc/fp-docs/fpctoc.html --- fpc-2.2.0.orig/debian/fp-units-misc.install.in +++ fpc-2.2.0/debian/fp-units-misc.install.in @@ -0,0 +1,14 @@ +/usr/share/doc/fp-units-misc + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/utmp +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/pthreads +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/unixutil +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/zlib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/tcl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/cdrom +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/bfd +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/syslog +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gdbint +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/unzip +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/newt +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fftw --- fpc-2.2.0.orig/debian/copyright +++ fpc-2.2.0/debian/copyright @@ -0,0 +1,71 @@ +The packages were originally put together by: + Peter Vreman + +Debian maintainer: + Carlos Laviola + +With sources obtained from: +http://ufpr.dl.sourceforge.net/sourceforge/freepascal/fpcbuild-2.2.0.tar.gz + +The files and libraries are released under the terms of the GNU Library +General Public License, which can be found in the file +/usr/share/common-licenses/GPL-2 on a Debian system. + +- object files and libraries linked into an application may be + distributed without source code. + +---------- + +djgpp: + +Copyright (C) DJ Delorie + 24 Kirsten Ave + Rochester NH 03867-2954 + + Source code copyright DJ Delorie is distributed under the terms of the + GNU General Public Licence, with the following exceptions: + + * Any existing copyright or authorship information in any given source + file must remain intact. If you modify a source file, a notice to that + effect must be added to the authorship information in the source file. + + * binaries provided in djgpp may be distributed without sources ONLY if + the recipient is given sufficient information to obtain a copy of djgpp + themselves. This primarily applies to go32.exe, emu387, stub.exe, and + the graphics drivers. + + * modified versions of the binaries provided in djgpp must be + distributed under the terms of the GPL. + + * objects and libraries linked into an application may be distributed + without sources. + +---------- + +emx: + + emx is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + +---------- + +rsx: + +Copyright (C) 1993-1998 Rainer Schnither + email to rainer@mathematik.uni-bielefeld.de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + --- fpc-2.2.0.orig/debian/fp-utils.install.in +++ fpc-2.2.0/debian/fp-utils.install.in @@ -0,0 +1,46 @@ +/usr/bin/ppufiles +/usr/bin/ppudump +/usr/bin/ppumove +/usr/bin/ppdep +/usr/bin/ptop +/usr/bin/rstconv +/usr/bin/data2inc +/usr/bin/bin2obj +/usr/bin/delp +/usr/bin/plex +/usr/bin/pyacc +/usr/bin/h2pas +/usr/bin/h2paspp +/usr/bin/postw32 +/usr/bin/fpcmake +/usr/bin/fpcres +/usr/bin/fprcp +/usr/bin/fpdoc +/usr/bin/makeskel +/usr/bin/unitdiff +/usr/bin/mkxmlrpc +/usr/bin/rmcvsdir +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/lexyacc +/usr/lib/fpc/lexyacc/yylex.cod +/usr/lib/fpc/lexyacc/yyparse.cod +/usr/share/man/man1/bin2obj.1 +/usr/share/man/man1/data2inc.1 +/usr/share/man/man1/fprcp.1 +/usr/share/man/man1/h2paspp.1 +/usr/share/man/man1/makeskel.1 +/usr/share/man/man1/postw32.1 +/usr/share/man/man1/unitdiff.1 +/usr/share/man/man1/delp.1 +/usr/share/man/man1/fpcmake.1 +/usr/share/man/man1/h2pas.1 +/usr/share/man/man1/plex.1 +/usr/share/man/man1/ppdep.1 +/usr/share/man/man1/ppudump.1 +/usr/share/man/man1/ppufiles.1 +/usr/share/man/man1/ppumove.1 +/usr/share/man/man1/ptop.1 +/usr/share/man/man1/pyacc.1 +/usr/share/man/man1/rstconv.1 +/usr/share/man/man1/fpdoc.1 +/usr/share/man/man5/fpcmake.5 +/usr/share/man/man5/ptop.cfg.5 --- fpc-2.2.0.orig/debian/fp-units-rtl.install.in +++ fpc-2.2.0/debian/fp-units-rtl.install.in @@ -0,0 +1 @@ +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/rtl