Commit 5aa60ab8 authored by bp's avatar bp

Added Debian build stuff

git-svn-id: https://forth-ev.de/repos/bigforth@1812 3b8d8251-53f3-0310-8f3b-fd1cb8370982
parent 2464954a
......@@ -245,29 +245,31 @@ html: doc/bigforth.texi
doc: doc/bigforth.ps html doc/bigforth.txt
# make debian
bigforth.control:
echo "Package: bigforth" >$@
echo "Version: $(SRCREV)" >>$@
debian.control: Makefile
echo "Source: bigforth" >$@
echo "Section: programming" >>$@
echo "Priority: optional" >>$@
echo "Architecture: i386" >>$@
echo "Maintainer: Bernd Paysan <bernd.paysan@gmx.de>" >>$@
echo "Build-Depends: debhelper (>= 4.1.16), build-essential, gcc" >>$@
echo "" >>$@
echo "Package: bigforth" >>$@
echo "Architecture: i386" >>$@
echo 'Depends: $${shlibs:Depends}' >>$@
echo "Description: bigFORTH+MINOS" >>$@
echo " bigFORTH is a native code Forth. It is available for Linux and" >>$@
echo " Windows 2000/XP under GPL. The most striking feature is the" >>$@
echo " graphical user interface MINOS (GUI in Forth) and the form editor" >>$@
echo " Theseus (Theseus is still beta)." >>$@
bigforth.deb: all bigforth.control
bigforth.deb: all debian.control
-rm -rf debian
mkdir debian
make package=debian install
(cd debian; find . -name '*' -exec md5sum '{}' ';') >md5sums
cp bigforth.control control
mkdir debian/DEBIAN
cp control debian/DEBIAN
cp debian.control debian/DEBIAN/control
cp md5sums debian/DEBIAN
dpkg-deb --build debian
mv debian.deb bigforth_$(SRCREV)_i386.deb
rm -rf control md5sums debian
rm -rf debian.control md5sums debian
Format: 1.0
Source: bigforth
Version: 2.5.0
Version: 2.5.0-1
Binary: bigforth
Maintainer: Bernd Paysan <bernd.paysan@gmx.de>
Architecture: i386
Build-Depends: debhelper (>= 4.1.16), NamenVonPaketenDieZumBauBenötigtWerden
Architecture: any
Build-Depends: debhelper (>= 4.1.16), build-essential, gcc, ia32-libs [amd64], libc6-dev-i386 [amd64]
Files:
6759e4f190ac7dc447e395f503cee3b7 1523824 bigforth-2.5.0.tar.bz2
6759e4f190ac7dc447e395f503cee3b7 1523824 bigforth_2.5.0.orig.tar.gz
6759e4f190ac7dc447e395f503cee3b7 1523824 bigforth_2.5.0-1.diff.gz
......@@ -37,7 +37,7 @@ Group: Development/Languages/Other
AutoReqProv: on
Summary: bigForth language
Url: http://bigforth.sourceforge.net/
Source: bigforth-%{version}.tar.bz2
Source: bigforth-%{version}.tar.gz
%description
bigforth is a portable implementation of the ANS Forth language.
......
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=4
CFLAGS = -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
./configure
make all
# --- end custom part for compiling
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
#make clean
# --- end custom part for cleaning up
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package
# The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/debian/<nameOfPackage>
make install DESTDIR=/usr/src/packages/BUILD/debian/bigforth
# --- end custom part for installing
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment