files are attatched
I think you forgot to attach them. :)
Sorry they are attatched this time.
Source: swi-prolog
Section: interpreters
Priority: optional
Maintainer: Chris Lamb <la...@debian.org>
Build-Depends: debhelper (>= 5), autotools-dev, dpatch, libncurses5-dev,
libreadline5-dev, libgmp3-dev, libjpeg62-dev, libx11-dev, libxpm-dev,
libxt-dev, x11proto-core-dev, chrpath, unixodbc-dev , openjdk-6-jdk [!arm !hppa]
Standards-Version: 3.8.0
Vcs-Git: git://git.chris-lamb.co.uk/pkg-swi-prolog.git
Vcs-Browser: http://git.chris-lamb.co.uk/?p=pkg-swi-prolog.git
Homepage: http://www.swi-prolog.org
Package: swi-prolog
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libgmp3-dev, libreadline5-dev
Suggests: swi-prolog-doc, prolog-el
Description: ISO/Edinburgh-style Prolog interpreter
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
Package: swi-prolog-clib
Architecture: any
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends}
Description: SWI-Prolog interface to system libraries
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
This library provides SWI-Prolog foreign libraries to cater for various
OS-dependent and/or obscure features of SWI-Prolog.
Package: swi-prolog-jpl
Architecture: alpha amd64 armel i386 ia64 mips mipsel powerpc s390 sparc
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends},
openjdk-6-jre-headless | java2-runtime
Description: Bidirectional interface between SWI-Prolog and Java
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
This library provides JPL, a bidirectional interface between SWI-Prolog and
the Java 2 runtime.
Package: swi-prolog-http
Architecture: any
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends}
Description: HTTP libraries for SWI-Prolog
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
This package provides libraries for accessing and providing services over
HTTP, intended to realise embedded servers and form the basis of protocols
such as FIPA and SOAP.
Package: swi-prolog-semweb
Architecture: any
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends}
Description: SWI-Prolog library for manipulating RDF triples
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
This package provides libraries based on extensions for storing and
manipulating RDF triples. It can handle very large sets of and is limited only
by available memory. One million triples requires about 80MB memory.
Package: swi-prolog-sgml
Architecture: any
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends}
Description: SGML/XML/HTML parser for SWI-Prolog
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
This package provides libraries to parse SGML, XML and HTML data into Prolog
data structures. The high-level interface defined in SGML provides access at
the file level, while the low-level interface defined in a foreign module
works with Prolog streams.
Package: swi-prolog-table
Architecture: any
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends}
Description: External table library for SWI-Prolog
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
This package provides a foreign language extension to manipulate of external
tables, a textual representation of records separated into fields. It allows
for a flexible definition of the format of the file and how the information in
the file should be mapped onto Prolog data types.
Package: swi-prolog-odbc
Architecture: any
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends}
Description: ODBC library for SWI-Prolog
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
This package provides a foreign language extension to ODBC, a standard for
interfacing with database systems.
Package: swi-prolog-xpce
Architecture: any
Depends: ${shlibs:Depends}, swi-prolog (= ${binary:Version}), ${misc:Depends}
Description: User interface library for SWI-Prolog
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a
rich set of built-in predicates. It offers a fast, robust and small
environment which enables substantial applications to be developed with it.
.
SWI-Prolog additionally offers:
.
* A powerful module system
* Garbage collection
* Unicode character set handling
* Unbounted integer and rational number arithmetic
* Multithreading support
* A powerful C/C++ interface
* GNU Readline interface
.
XPCE is an object-oriented symbolic programming environment for user
interfaces. Although XPCE was designed to be language-independent, it has
gained popularity most with Prolog.
#!/usr/bin/make -f
include /usr/share/dpatch/dpatch.make
export PLARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
export ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
else
CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif
CONFFLAGS += --with-world
export CFLAGS=-fPIC
# Don't optimise or build java on arm (old abi)
ifeq ($(PLARCH),arm)
export COFLAGS=-O0
CONFFLAGS += --without-jpl
endif
#don't build java on hppa
ifeq ($(PLARCH),hppa)
CONFFLAGS += --without-jpl
endif
build: patch build-stamp
build-stamp:
dh_testdir
for DIR in src/ packages/xpce/src/ packages/xpce/ packages/jpl; do \
cp -f /usr/share/misc/config.sub $$DIR/config.sub; \
cp -f /usr/share/misc/config.guess $$DIR/config.guess; \
done
# Build shared object first
./configure $(CONFFLAGS) --enable-shared \
--prefix=/usr '--mandir=$${prefix}/share/man'
$(MAKE)
$(MAKE) prefix=$(CURDIR)/debian/swi-prolog-shared/usr install-lite
$(MAKE) ARCH=$(PLARCH) PLARCH=$(PLARCH) clean
$(MAKE) ARCH=$(PLARCH) PLARCH=$(PLARCH) distclean
./configure $(CONFFLAGS) \
--prefix=/usr '--mandir=$${prefix}/share/man' PL="swipl"
$(MAKE) ARCH=$(PLARCH) PLARCH=$(PLARCH)
touch $@
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp
# Upstream's clean targets are not clean enough
rm -f packages/xpce/man/reference/index.obj
rm -f packages/xpce/lib/amd64
rm -f .pkg-config
[ ! -f Makefile ] || $(MAKE) ARCH=$(PLARCH) PLARCH=$(PLARCH) clean
[ ! -f Makefile ] || $(MAKE) ARCH=$(PLARCH) PLARCH=$(PLARCH) distclean
rm -rf debian/swi-prolog-shared
dh_clean
install:
install: build
dh_testdir -s
dh_testroot -s
dh_clean -k
# XPCE below needs a working SWI-Prolog to be installed; this is done
# in a temporary installation directory. We generate a list of files
# so we can seperate them later.
$(MAKE) prefix=$(CURDIR)/debian/swi-prolog-tmp/usr \
PLBASE=$(CURDIR)/debian/swi-prolog-tmp/usr/lib/swi-prolog \
ARCH=$(PLARCH) install-lite
cd debian/swi-prolog-tmp && find * -type f > ../swi-prolog.install
cd debian/swi-prolog-tmp && find * -type l >> ../swi-prolog.install
for i in "clib clib" \
"jpl jpl" \
"http http" \
"semweb semweb" \
"sgml sgml" \
"sgml/RDF sgml" \
"table table" \
"odbc odbc" \
"xpce tmp"; do \
FROM=$$(echo $$i | cut -d " " -f1); \
TO=$$(echo $$i | cut -d " " -f2); \
mkdir -p
$(CURDIR)/debian/swi-prolog-$$TO/usr/lib/swi-prolog/library; \
$(MAKE) -C packages/$$FROM \
prefix=$(CURDIR)/debian/swi-prolog-$$TO/usr \
PLBASE=$(CURDIR)/debian/swi-prolog-$$TO/usr/lib/swi-prolog \
PLARCH=$(PLARCH) \
PL=$(CURDIR)/src/swipl PLEXE=$(CURDIR)/src/swipl \
install; \
done
# Seperate XPCE and basic SWI-Prolog
dh_install -p swi-prolog --sourcedir=debian/swi-prolog-tmp
# Remove the basic SWI-Prolog installation from the XPCE install dir
xargs --arg-file=debian/swi-prolog.install --delimiter='\n' -I{} \
rm -v debian/swi-prolog-tmp/{}
# Install standalone shared library
cp -r debian/swi-prolog-shared/usr/lib/pl-*/lib/*/libpl.so* \
debian/swi-prolog/usr/lib/
# Remove dbuild .pwd file (see #285894)
rm debian/swi-prolog-tmp/usr/lib/swi-prolog/xpce/prolog/lib/.pwd
# Empty directories remain, but XPCE depends on SWI-Prolog
mv debian/swi-prolog-tmp debian/swi-prolog-xpce
# These two links are absolute, but we want them relative
cd debian/swi-prolog-xpce/usr/bin && \
rm xpce; ln -s ../lib/swi-prolog/bin/*/xpce .; \
rm xpce-client; ln -s
../lib/swi-prolog/xpce-*/bin/*/xpce-client .
# Remove superfluous copies of the GPL
rm -f debian/swi-prolog-xpce/usr/lib/swi-prolog/xpce-*/COPYING
# Override lintian warnings
for PKG in swi-prolog swi-prolog-xpce; do \
mkdir -p debian/$$PKG/usr/share/lintian/overrides; \
cp debian/$$PKG.lintian.override
debian/$$PKG/usr/share/lintian/overrides/$$PKG; \
done
# Remove empty directories
find debian/ -depth -type d -empty -exec rm -rfv {} \;
# Remove RPATH from pl2xpce.so and libpl.so
chrpath --delete
debian/swi-prolog-xpce/usr/lib/swi-prolog/xpce-*/lib/*/pl2xpce.so || true
chrpath --delete debian/swi-prolog/usr/lib/libpl.so || true
binary-common:
dh_testdir
dh_testroot
dh_installchangelogs
dh_installchangelogs -pswi-prolog-sgml packages/sgml/ChangeLog
dh_installchangelogs -pswi-prolog-xpce packages/xpce/ChangeLog
dh_installchangelogs -pswi-prolog-clib packages/clib/ChangeLog
dh_installchangelogs -pswi-prolog-table packages/table/ChangeLog
dh_installchangelogs -pswi-prolog-odbc packages/odbc/ChangeLog
ifneq ($(PLARCH),arm)
ifneq ($(PLARCH),hpppa)
dh_installchangelogs -pswi-prolog-jpl packages/jpl/ChangeLog
endif
endif
dh_installdocs
dh_installmenu
dh_installman
dh_strip
dh_link
ifneq ($(PLARCH),arm)
ifneq ($(PLARCH),hpppa)
dh_link -pswi-prolog-jpl usr/lib/swi-prolog/lib/jpl.jar
usr/share/java/jpl.jar
endif
endif
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary-indep: build install
binary-arch: build install
$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
binary-%: build install
make -f debian/rules binary-common DH_OPTIONS=-p$*
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary-common binary install patch
unpatch