#!/usr/bin/make -f # -*- makefile -*- include /usr/share/ocaml/ocamlvars.mk DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) PKGNAME = libocamlnet-ocaml-dev DESTDIR = $(CURDIR)/debian/tmp export OCAMLFIND_DESTDIR = $(DESTDIR)$(OCAML_STDLIB_DIR) BUILD_TARGET = all ifeq ($(OCAML_HAVE_OCAMLOPT),yes) BUILD_TARGET += opt endif CFGFLAGS = CFGFLAGS += -enable-gtk2 CFGFLAGS += -with-nethttpd -prefer-netcgi2 CFGFLAGS += -bindir /usr/bin -datadir /usr/share/ocamlnet CFGFLAGS += -enable-apache -apache /usr/sbin/apache2 -apxs /usr/bin/apxs2 CFGFLAGS += -enable-pcre -enable-zip CFGFLAGS += -enable-gnutls %: dh $@ --with ocaml,apache2 .PHONY: override_dh_auto_configure override_dh_auto_configure: Makefile.conf Makefile.conf: OCAML_CUSTOM_USE_OUTPUT_COMPLETE_EXE= ./configure $(CFGFLAGS) ifeq ($(DEB_HOST_ARCH_OS),linux) # In some build environments (especially cowbuilder and Ubuntu # autobuilders), many netsys autotests fail even though the feature is # available (LP: #257524) @echo @echo "The following netsys features will be forced:" @if grep '#undef ' src/netsys/config.h; then \ sed -i 's/#undef /#define /' src/netsys/config.h; \ else \ echo "none"; \ fi @echo endif .PHONY: override_dh_auto_build override_dh_auto_build: $(MAKE) $(BUILD_TARGET) .PHONY: override_dh_auto_install override_dh_auto_install: $(MAKE) install DESTDIR=$(DESTDIR) .PHONY: override_dh_auto_clean override_dh_auto_clean: Makefile.conf $(MAKE) distclean override_dh_missing: dh_missing --fail-missing -X.so.owner -Xmod_netcgi_apache.so .PHONY: override_dh_compress override_dh_compress: dh_compress -X.ml .PHONY: override_dh_installchangelogs override_dh_installchangelogs: dh_installchangelogs ChangeLog