Browse Source

* new packages

peter 26 years ago
parent
commit
1ea7506ef4

+ 1 - 1
install/debian/changelog

@@ -1,4 +1,4 @@
-fpc (0.99.10-1) unstable; urgency=low
+fpc (0.99.12-1) unstable; urgency=low
 
   * Initial Release.
 

+ 31 - 7
install/debian/control

@@ -2,14 +2,38 @@ Source: fpc
 Section: devel
 Priority: optional
 Maintainer: Peter Vreman <[email protected]>
-Standards-Version: 2.4.1.2
+Standards-Version: 2.5.0.0
 
-Package: fpc
+Package: fp-compiler
 Architecture: i386
-Depends: 
+Recommends:
+Depends: fp-rtl (= 0.99.12)
+Suggests: fp-utils
+Replaces: fpc
 Description: Free Pascal Compiler
- The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi II compatible
- 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
+ The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
+ Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
  Some extensions are added to the language, like function overloading. Shared
- libraries can be linked and created.
-
+ libraries can be linked and created. Basic Delphi support is already
+ implemented (classes,exceptions,ansistrings). This package contains
+ the commandline compiler. You need at least the RTL package before you
+ can start compiling anything.
+ 
+Package: fp-rtl
+Architecture: i386
+Recommends: fp-compiler (= 0.99.12)
+Description: Free Pascal Runtime Library
+ Runtime Libraries for the Free Pascal Compiler.
+ 
+Package: fp-utils
+Architecture: i386
+Recommends: fp-compiler (= 0.99.12)
+Description: Free Pascal Utils
+ This package contains some handy utils for usage with the Free Pascal
+ Compiler:
+   - h2pas : Convert .h files to pascal units
+   - ppdep : Create a dependency file which can be used with Makefiles
+   - ptop  : Source beautifier
+   - ppudump : Dump the information stored in a .ppu (unit) file
+   - ppumove : Place multiple units in a shared library
+  

+ 1 - 1
install/debian/copyright

@@ -2,7 +2,7 @@ The package was originally put together by:
   Peter Vreman <[email protected]>
 
 From sources obtained from:
-  ftp://tflily.fys.kuleuven.ac.be/pub/fpc/dist/linux/fpc-0.99.10.tar.gz
+  ftp://tflily.fys.kuleuven.ac.be/pub/fpc/dist/linux/fpc-0.99.12.tar.gz
 
 
    This program is free software; you can redistribute it and/or modify

+ 3 - 0
install/debian/files

@@ -0,0 +1,3 @@
+fp-compiler_0.99.12-1_i386.deb devel optional
+fp-rtl_0.99.12-1_i386.deb devel optional
+fp-utils_0.99.12-1_i386.deb devel optional

+ 3 - 0
install/debian/fp-compiler.files

@@ -0,0 +1,3 @@
+usr/lib/fpc/0.99.12/ppc386
+usr/lib/fpc/0.99.12/samplecfg
+usr/lib/fpc/0.99.12/msg

+ 7 - 0
install/debian/fp-compiler.postinst

@@ -0,0 +1,7 @@
+#! /bin/sh
+
+# create link
+ln -sf /usr/lib/fpc/0.99.12/ppc386 /usr/bin/ppc386
+
+# create /etc/ppc386.cfg
+/usr/lib/fpc/0.99.12/samplecfg /usr/lib/fpc/0.99.12

+ 1 - 0
install/debian/fp-rtl.files

@@ -0,0 +1 @@
+usr/lib/fpc/0.99.12/rtl

+ 5 - 0
install/debian/fp-utils.files

@@ -0,0 +1,5 @@
+usr/bin/ppudump
+usr/bin/ppumove
+usr/bin/ppdep
+usr/bin/h2pas
+usr/bin/ptop

+ 80 - 39
install/debian/rules

@@ -1,64 +1,105 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# debian/rules for Free Pascal 0.99.12 
+
+# Don't load the system makefile.fpc
+export FPCMAKE=
+export FPCDIR=
+
+# Get current dir
+PWD=$(shell pwd)
+
+BUILD_DIR=$(PWD)/debian/build
+INSTALL_DIR=$(PWD)/debian/tmp
+NEWPP=$(PWD)/compiler/ppc386
 
-# Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 build: build-stamp
 build-stamp:
+	@echo "--- Building"
 	dh_testdir
 
-#       Add here commands to compile the package.
-	$(MAKE) compiler_all
-	$(MAKE) rtl_all
+# First make a new Compiler which will be used in the next compiles
+	$(MAKE) rtl_all compiler_all
+	$(MAKE) rtl_clean compiler_clean
+# Compile everything with the new compiler, the RTL must be the first
+	$(MAKE) rtl_all PP=$(NEWPP)
+	$(MAKE) compiler_all PP=$(NEWPP)
+	$(MAKE) utils_all PP=$(NEWPP)
 
 	touch build-stamp
 
 clean:
+	@echo "--- Cleaning"
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
+	rm -f build-stamp install-stamp
 
-#       Add here commands to clean up after the build process.
 	$(MAKE) compiler_clean
 	$(MAKE) rtl_clean
+	$(MAKE) utils_clean
 
 	dh_clean
 
-# Build architecture-independent files here.
-binary-indep: build
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build
-	dh_testversion
+install: install-stamp
+install-stamp: build
+	@echo "--- Installing"
 	dh_testdir
 	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-        # Add here commands to install the files into debian/tmp
-	$(MAKE) compiler_installlib PREFIXINSTALLDIR=`pwd`/debian/tmp/usr
-	$(MAKE) rtl_install PREFIXINSTALLDIR=`pwd`/debian/tmp/usr
-
-#	dh_installdocs TODO NEWS AUTHORS KNOWNBUGS README README.guile
-	dh_installexamples
-	dh_installmenu
-#	dh_installinit
-#	dh_installcron
-#	dh_installmanpages
-#	dh_undocumented
-#	dh_installchangelogs ChangeLog
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_suidregister
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_makeshlibs
-	dh_md5sums
-	dh_builddeb
+	dh_clean
+
+# Specify the compiler to use so installing will do correctly
+	$(MAKE) compiler_install PP=$(NEWPP) PREFIXINSTALLDIR=${INSTALL_DIR}/usr
+	$(MAKE) rtl_install PP=$(NEWPP) PREFIXINSTALLDIR=${INSTALL_DIR}/usr
+	$(MAKE) utils_install PP=$(NEWPP) PREFIXINSTALLDIR=${INSTALL_DIR}/usr
+	
+	touch install-stamp
+
+binary-indep:
+# We have nothing to do by default.
+
+binary-arch: install \
+	fp-compiler \
+	fp-rtl \
+	fp-utils
+
+fp-compiler:
+	@echo "--- Building: $@"
+	dh_installdocs		-p$@ -P$(BUILD_DIR)/$@
+	dh_installchangelogs	-p$@ -P$(BUILD_DIR)/$@
+	dh_movefiles		-p$@ -P$(BUILD_DIR)/$@
+	dh_compress		-p$@ -P$(BUILD_DIR)/$@
+	dh_fixperms		-p$@ -P$(BUILD_DIR)/$@
+	dh_installdeb	 	-p$@ -P$(BUILD_DIR)/$@
+#	dh_shlibdeps	 	-p$@ -P$(BUILD_DIR)/$@
+	dh_gencontrol	 	-p$@ -P$(BUILD_DIR)/$@
+	dh_md5sums		-p$@ -P$(BUILD_DIR)/$@
+	dh_builddeb		-p$@ -P$(BUILD_DIR)/$@
+
+fp-rtl:
+	@echo "--- Building: $@"
+	dh_installdocs		-p$@ -P$(BUILD_DIR)/$@
+#	dh_installchangelogs	-p$@ -P$(BUILD_DIR)/$@ src/ChangeLog
+	dh_movefiles		-p$@ -P$(BUILD_DIR)/$@
+	dh_compress		-p$@ -P$(BUILD_DIR)/$@
+	dh_fixperms		-p$@ -P$(BUILD_DIR)/$@
+	dh_installdeb	 	-p$@ -P$(BUILD_DIR)/$@
+	dh_gencontrol	 	-p$@ -P$(BUILD_DIR)/$@
+	dh_md5sums		-p$@ -P$(BUILD_DIR)/$@
+	dh_builddeb		-p$@ -P$(BUILD_DIR)/$@
+
+fp-utils:
+	@echo "--- Building: $@"
+	dh_installdocs		-p$@ -P$(BUILD_DIR)/$@
+	dh_installchangelogs	-p$@ -P$(BUILD_DIR)/$@
+	dh_movefiles		-p$@ -P$(BUILD_DIR)/$@
+	dh_compress		-p$@ -P$(BUILD_DIR)/$@
+	dh_fixperms		-p$@ -P$(BUILD_DIR)/$@
+	dh_installdeb	 	-p$@ -P$(BUILD_DIR)/$@
+#	dh_shlibdeps	 	-p$@ -P$(BUILD_DIR)/$@
+	dh_gencontrol	 	-p$@ -P$(BUILD_DIR)/$@
+	dh_md5sums		-p$@ -P$(BUILD_DIR)/$@
+	dh_builddeb		-p$@ -P$(BUILD_DIR)/$@
 
 source diff:                                                                  
 	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false