Commit 95c59b87 authored by Stephane Glondu's avatar Stephane Glondu

Update packaging, rewrite debian/rules using dh with overrides

parent 59c6a58f
.omakedb
.omakedb.lock
config.h
......@@ -17,10 +17,9 @@ Build-Depends: cdbs (>= 0.4.23),
libfreetype6-dev (>= 2.1.7),
libgif-dev,
liblablgtk2-ocaml-dev (>> 2.12.0-3),
chrpath,
ghostscript,
dh-ocaml (>= 0.9),
automake1.9
omake
Standards-Version: 3.8.3
Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/camlimages.git
Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/camlimages.git
......
debian/tmp/usr/lib/ocaml/site-lib/camlimages @OCamlStdlibDir@
@OCamlStdlibDir@/camlimages
......@@ -5,5 +5,5 @@ Abstract: This is a short introduction to CamlImages
Section: Programming/OCaml
Format: HTML
Index: /usr/share/doc/libcamlimages-ocaml-doc/doc/eng.html
Files: /usr/share/doc/libcamlimages-ocaml-doc/doc/*
Index: /usr/share/doc/libcamlimages-ocaml-doc/doc/old/eng.htm
Files: /usr/share/doc/libcamlimages-ocaml-doc/doc/old/*
-package lablgtk2
--include debian/tmp/@OCamlStdlibDir@/site-lib/camlimages/
--include debian/tmp/@OCamlStdlibDir@/camlimages/
#!/usr/bin/make -f
# debian/rules for camlimages package
# Copyright (C) 2006-2008 Sylvain Le Gall <gildor@debian.org>
#
# This program 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.
#
# 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., 51 Franklin St, Fifth Floor, Boston,
# MA 02110-1301, USA.
include /usr/share/cdbs/1/rules/ocaml.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
PACKAGE := libcamlimages-ocaml
DESTDIR := $(CURDIR)/debian/$(PACKAGE)
PACKAGE_DEV := libcamlimages-ocaml-dev
DESTDIR_DEV := $(CURDIR)/debian/$(PACKAGE_DEV)
PACKAGE_DOC := libcamlimages-ocaml-doc
DESTDIR_DOC := $(CURDIR)/debian/$(PACKAGE_DOC)
LABLGTK2_DIR := $(shell ocamlfind query lablgtk2)
DEB_CONFIGURE_EXTRA_FLAGS := --with-lablgtk2 --without-lablgtk --enable-dependency-tracking
DEB_MAKE_CLEAN_TARGET := clean
DEB_INSTALL_EXAMPLES_libcamlimages-ocaml-doc := -X Makefile -X .depend
DEB_DH_INSTALL_ARGS := -X LICENSE -X README -X INSTALL -X Makefile
OCAML_OCAMLDOC_FLAGS := $(shell ocamlfind query -i-format lablgtk2)
install/libcamlimages-ocaml-doc::
$(MAKE) -C '$(CURDIR)/examples' clean
install/libcamlimages-ocaml-dev::
mv '$(CURDIR)/debian/tmp/usr/lib/ocaml/stublibs/dllcamlimages.so' \
'$(DESTDIR)/$(OCAML_DLL_DIR)/'
chrpath -d $(DESTDIR)/$(OCAML_DLL_DIR)/*.so
# -*- makefile -*-
include /usr/share/ocaml/ocamlvars.mk
DESTDIR=$(CURDIR)/debian/tmp
OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)
export OCAMLFIND_DESTDIR
%:
dh $@ --with ocaml
.PHONY: override_dh_auto_configure
override_dh_auto_configure:
.PHONY: override_dh_auto_build
override_dh_auto_build:
omake
.PHONY: override_dh_auto_install
override_dh_auto_install:
mkdir -p $(OCAMLFIND_DESTDIR) $(DESTDIR)$(OCAML_DLL_DIR)
omake install
.PHONY: override_dh_auto_clean
override_dh_auto_clean:
omake clean
find -name '*.omc' -delete
.PHONY: override_dh_install
override_dh_install:
dh_install --fail-missing -X.so.owner
.PHONY: override_dh_installexamples
override_dh_installexamples:
dh_installexamples -X'.cm*' -X.o -Xliv-furuse -X.cvsignore
.PHONY: override_dh_compress
override_dh_compress:
dh_compress -Xexamples
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