Commits

Palmer, 2E0EOL committed b1ed655 Merge

Merge in Debian packaging branch.

Comments (0)

Files changed (8)

 # Checks for libraries
 
 
-# Checks for header files
+# Checks for standard header files
 AC_HEADER_STDC
 AC_HEADER_STDBOOL
 AC_CHECK_HEADERS([limits.h stddef.h stdlib.h string.h])
 fi
 AC_MSG_RESULT($debug_enabled)
 
+dnl --with-dlstds-prefix
+dlstds_prefix=/usr/local/share/daybo_logic/stds/
+AC_ARG_WITH(dlstds-prefix,
+  [AC_HELP_STRING([--with-dlstds-prefix=DIR],
+    [Daybo Logic Standards Package (dlstds) installation prefix]
+  )],
+  [dlstds_prefix=${withval}]
+)
+if test "$dlstds_prefix" != ""; then
+  CFLAGS="${CFLAGS} -I${dlstds_prefix}"
+fi
+
+dns Checks for Daybo Logic headers
+AC_CHECK_HEADER(
+  ${dlstds_prefix}dlstdinc.h,
+  AC_DEFINE(HAVE_DLSTDINC_H,1,""),
+  AC_MSG_ERROR(
+    dlstdinc.h 38.5 or later is not installed or cannot be found.
+    You need the dlstds package from http://www.daybologic.co.uk/
+    Or you may need to use the flag --with-dlstds-prefix=<path> if you have
+    installed dlstds in a non-standard location.
+  )
+)
 
 AC_OUTPUT(Makefile lib/Makefile test/Makefile)
 
+libdlstr (0.1.1-1) stable; urgency=low
+
+  * Initial packaged release.
+
+ -- David Palmer <palmer@overchat.org>  Sat, 05 Mar 2011 10:05:19 +0000
+Source: libdlstr
+Section: libs
+Priority: extra
+Maintainer: David Palmer <palmer@overchat.org>
+Build-Depends: debhelper (>= 7), autoconf, autotools-dev, automake, libtool, libdlstds-dev
+Standards-Version: 3.7.3
+Homepage: http://www.daybologic.co.uk/
+Vcs-Browser: https://bitbucket.org/daybologic/dlstr
+
+Package: libdlstr
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Legacy string wrapper library for C code by Daybo Logic
+ This library provides a legacy string-wrapper functionality for C code,
+ I don't recommend it.  There are many libraries out there, but this one
+ is used by a lot of older Daybo Logic code, so may need to hang around
+ for a transitional period.
+
+Package: libdlstr-dev
+Architecture: any
+Depends: libdlstr
+Description: Daybo Logic legacy strinh library headers
+ This package includes headers so that you can compile against
+ libdlstr.
+/usr/lib
+/usr/include

debian/libdlstr-dev.install

+debian/tmp/usr/lib/*.a usr/lib
+debian/tmp/usr/lib/*.la usr/lib
+debian/tmp/usr/include/*.h usr/include

debian/libdlstr.install

+debian/tmp/usr/lib/*.so.* usr/lib
+debian/tmp/usr/lib/*.so usr/lib
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	if [ -f configure ]; then \
+		mv -f configure configure.orig; \
+	fi
+	autoreconf -vi && ./configure --prefix=/usr
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp  
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch $@
+
+clean: 
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	if [ -f Makefile ]; then \
+		$(MAKE) clean; \
+	fi
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+# Build architecture-independent files here.
+binary-indep: build install libdlstr-dev
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install libdlstr
+
+libdlstr:
+	dh_testdir
+	dh_testroot
+#	dh_installchangelogs 
+#	dh_installdocs
+#	dh_installexamples
+	dh_install -p$@
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+#	dh_installman
+	dh_link -p$@
+	dh_strip -p$@
+#	dh_compress -p$@
+	dh_fixperms -p$@
+#	dh_perl
+	dh_makeshlibs -p$@
+	dh_installdeb -p$@
+	dh_shlibdeps -p$@
+	dh_gencontrol -p$@
+	dh_md5sums -p$@
+	dh_builddeb -p$@
+
+libdlstr-dev:
+	dh_testdir
+	dh_testroot
+#	dh_installchangelogs 
+#	dh_installdocs
+#	dh_installexamples
+	dh_install -p$@
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+#	dh_installman
+#	dh_link -p$@
+#	dh_strip -p$@
+#	dh_compress -p$@
+	dh_fixperms -p$@
+#	dh_perl
+#	dh_makeshlibs -p$@
+	dh_installdeb -p$@
+#	dh_shlibdeps -p$@
+	dh_gencontrol -p$@
+	dh_md5sums -p$@
+	dh_builddeb -p$@
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure libdlstr libdlstr-dev