Section: devel
Priority: optional
Maintainer: Kevin Rosenberg <kevin@rosenberg.net>
-Build-Depends: debhelper (>> 3.0.0)
+Build-Depends-Indep: debhelper (>> 3.0.0)
Standards-Version: 3.5.2
Package: cl-uffi
set -e
# package name according to lisp
-LISP_PKG=%%
+LISP_PKG=uffi
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
case "$1" in
configure)
+ ln -sf ../repositories/uffi /usr/share/common-lisp/source/uffi
/usr/sbin/register-common-lisp-source ${LISP_PKG}
;;
set -e
# package name according to lisp
-LISP_PKG=%%
+LISP_PKG=uffi
# summary of how this script can be called:
# * <prerm> `remove'
case "$1" in
remove|upgrade|deconfigure)
/usr/sbin/unregister-common-lisp-source ${LISP_PKG}
+ rm -rf /usr/share/common-lisp/source/uffi /usr/share/common-lisp/repositories/uffi
;;
failed-upgrade)
;;
INSTALLFLAGS := -g root -o root -m 0644
INSTALLDIRFLAGS := -d -g root -o root -m 0755
-SOURCESDEST := $(prefix)/usr/share/common-lisp/repositories/uffi
+SOURCEDIR := $(prefix)/usr/share/common-lisp/source
+REPOSITORYDIR := $(prefix)/usr/share/common-lisp/repositories/uffi
SYSDIR := $(prefix)/usr/share/common-lisp/systems
DOCDIR := $(prefix)/usr/share/doc/cl-uffi
dh_installdirs
# Add here commands to install the package into debian/uffi.
- $(INSTALL) $(INSTALLDIRFLAGS) $(SOURCESDEST) $(SOURCESDEST)/mcl $(SYSDIR) $(DOCDIR) $(DOCDIR)/html
+ $(INSTALL) $(INSTALLDIRFLAGS) $(REPOSITORYDIR) $(REPOSITORYDIR)/mcl $(SYSDIR) $(DOCDIR) $(DOCDIR)/html $(SOURCEDIR)
$(INSTALL) $(INSTALLFLAGS) uffi.system.debian $(SYSDIR)
mv $(SYSDIR)/uffi.system.debian $(SYSDIR)/uffi.system
- $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl) $(SOURCESDEST)
- $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(SOURCESDEST)/mcl
+ $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl) $(REPOSITORYDIR)
+ $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(REPOSITORYDIR)/mcl
$(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
cp doc/uffi.ps doc/cl-uffi.ps
rm -f doc/cl-uffi.ps.gz
# 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
# Programer: Kevin M. Rosenberg
# Date Started: Mar 2002
#
-# CVS Id: $Id: Makefile,v 1.17 2002/04/28 04:08:22 kevin Exp $
+# CVS Id: $Id: Makefile,v 1.18 2002/04/28 06:03:13 kevin Exp $
#
# This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
#
clean:
@rm -rf html
@rm -f *~ *.bak *.orig "#*"
- @rm -f ${PSFILE} ${PDFFILE} ${DVIFILE} ${TEXFILE}
@rm -f ${TMPFILES}
.PHONY: distclean
distclean: clean
+ @rm -f ${PSFILE} ${PDFFILE} ${DVIFILE} ${TEXFILE}
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: primitives.cl,v 1.16 2002/04/06 19:53:08 kevin Exp $
+;;;; $Id: primitives.cl,v 1.17 2002/04/28 06:03:13 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
)
"Conversions in CMUCL or def-foreign-type are different thatn in def-function")
+(defparameter +type-conversion-list+ nil)
#+cmu
-(defconstant +type-conversion-list+
+(setq +type-conversion-list+
'((* . *) (:void . c-call:void)
(:short . c-call:short)
(:pointer-void . (* t))
(:float . c-call:float) (:double . c-call:double)
(:array . alien:array)))
#+allegro
-(defconstant +type-conversion-list+
+(setq +type-conversion-list+
'((* . *) (:void . :void)
(:short . :short)
(:pointer-void . (* :void))
(:float . :float) (:double . :double)
(:array . :array)))
#+lispworks
-(defconstant +type-conversion-list+
+(setq +type-conversion-list+
'((* . :pointer) (:void . :void)
(:short . :short)
(:pointer-void . (:pointer :void))
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: strings.cl,v 1.17 2002/04/06 19:53:08 kevin Exp $
+;;;; $Id: strings.cl,v 1.18 2002/04/28 06:03:13 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(def-constant +null-cstring-pointer+
#+cmu nil
#+allegro 0
- #+lispworks (fli:make-pointer :address 0 :type '(:unsigned :char)))
+ #+lispworks (fli:make-pointer :address 0 :type '(:unsigned :char))
+ #-(or cmu allegro lispworks) nil
+)
(defmacro convert-from-cstring (obj)
"Converts a string from a c-call. Same as convert-from-foreign-string, except
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: uffi.system.debian,v 1.1 2002/04/28 03:52:01 kevin Exp $
+;;;; $Id: uffi.system.debian,v 1.2 2002/04/28 06:03:13 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(in-package :mk)
-
;;; UFFI system definition
(mk:defsystem :uffi
- :source-pathname
- #+(or cmu allegro lispworks) "cl-library:"
- #+mcl "cl-library:mcl;"
- #-(or cmu allegro lispworks) nil
+ :source-pathname #-mcl "cl-library:uffi;"
+ #+mcl "cl-library:uffi;mcl;"
:source-extension "cl"
:components
((:file "package")