debian swirl logo

Back to the packages list camlbz2

#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/ocaml.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-include /usr/share/topgit/tg2quilt.mk

LIB_NAME = bz2
DLL_PKG_NAME = lib$(LIB_NAME)-ocaml
DEV_PKG_NAME = lib$(LIB_NAME)-ocaml-dev
DEST_DIR = $(CURDIR)/debian/$(DEV_PKG_NAME)$(OCAML_STDLIB_DIR)
DLL_DEST_DIR = $(CURDIR)/debian/$(DLL_PKG_NAME)$(OCAML_DLL_DIR)
QUILT_PATCH_DIR ?= debian/patches	# can be removed once #513952 gets fixed

DEB_MAKE_BUILD_TARGET = all
DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEST_DIR)
DEB_MAKE_CLEAN_TARGET = clean

binary-install/$(DEV_PKG_NAME)::
		mkdir -p $(DLL_DEST_DIR)
		mv $(DEST_DIR)/bz2/*.so $(DLL_DEST_DIR)

Builds:

libbz2-ocaml-dev
ocaml bindings for the bzip2 compression library
libbz2-ocaml
ocaml bindings for the bzip2 compression library