debian/0000755000000000000000000000000012262350724007171 5ustar debian/sys.mk0000644000000000000000000000002312204675145010336 0ustar LDCOMPILER ?= yes debian/control0000644000000000000000000000073012262347717010604 0ustar Source: mk-configure Section: devel Priority: optional Maintainer: Andrew Shadura Build-Depends: debhelper (>= 9), bmake (>= 20131001) Standards-Version: 3.9.4 Package: mk-configure Architecture: all Depends: bmake, ${misc:Depends} Description: lightweight replacement for GNU autotools mk-configure is a lightweight easy-to-use replacement for GNU autotools, written in bmake (portable version of NetBSD make) and POSIX tools (shell, awk etc). debian/install0000644000000000000000000000007212262262406010560 0ustar debian/*.pm usr/share/perl5/Debian/Debhelper/Buildsystem/ debian/mkcmake.pm0000644000000000000000000000471112262344712011142 0ustar # A debhelper build system class for handling simple mk-configure-based projects. # # Copyright: © 2008 Joey Hess # © 2008-2009 Modestas Vainius # License: GPL-2+ package Debian::Debhelper::Buildsystem::mkcmake; use strict; use Debian::Debhelper::Dh_Lib qw(compat escape_shell clean_jobserver_makeflags dpkg_architecture_value); use base 'Debian::Debhelper::Buildsystem::makefile'; sub DESCRIPTION { "mk-configure" } sub exists_make_target { my ($this, $target) = @_; # Use -V .ALLTARGETS to get the list of targets; -n is # needed to avoid executing anything my @opts=("-n", "-V", ".ALLTARGETS"); my $buildpath = $this->get_buildpath(); unshift @opts, "-C", $buildpath if $buildpath ne "."; open(SAVEDERR, ">&STDERR"); open(STDERR, ">/dev/null"); open(MAKE, "-|", $this->{makecmd}, @opts); my $output=; chomp $output; close MAKE; open(STDERR, ">&SAVEDERR"); return defined $output && grep(/^$target$/, split(" ",$output)); } # Currently, we don't want parallel build with bmake. sub do_make { my $this=shift; # Avoid possible warnings about unavailable jobserver, # and force make to start a new jobserver. clean_jobserver_makeflags(); my @opts; my $prefix = "/usr"; push @opts, "PREFIX=${prefix}"; push @opts, "MANDIR=${prefix}/share/man"; push @opts, "INFODIR=${prefix}/share/info"; push @opts, "SYSCONFDIR=/etc"; my $multiarch=dpkg_architecture_value("DEB_HOST_MULTIARCH"); if (! compat(8)) { if (defined $multiarch) { push @opts, "LIBDIR=${prefix}/lib/$multiarch"; push @opts, "LIBEXECDIR=${prefix}/lib/$multiarch"; } else { push @opts, "LIBEXECDIR=${prefix}/lib"; } } else { push @opts, "LIBEXECDIR=${prefix}/lib/" . sourcepackage(); } $this->doit_in_builddir($this->{makecmd}, @opts, @_); } sub check_auto_buildable { my $this=shift; my ($step)=@_; if (-e $this->get_buildpath("makefile") || -e $this->get_buildpath("Makefile")) { my $ret = ($this->SUPER::check_auto_buildable(@_)); open (MAKEFILE, "makefile") || open (MAKEFILE, "Makefile") || return 0; while () { chomp; if (/^\.?\s*include\s+SUPER::new(@_); $this->{makecmd} = "mkcmake"; return $this; } 1 debian/watch0000644000000000000000000000031712217673751010233 0ustar # Compulsory line, this is a version 3 file version=3 opts=filenamemangle=s/.*\/(.*)$/mk-configure-$1/ https://github.com/cheusov/mk-configure/tags /cheusov/mk-configure/archive/mk-configure-(\d.*).tar.gz debian/docs0000644000000000000000000000004112262263636010044 0ustar doc/FAQ doc/NEWS README doc/TODO debian/changelog0000644000000000000000000000130612262350723011042 0ustar mk-configure (0.25.0-1) unstable; urgency=low * New upstream release. * Drop old patches. * Use bmake's .ALLTARGETS feature to check for Makefile targets presence. -- Andrew Shadura Sun, 05 Jan 2014 22:42:41 +0100 mk-configure (0.24.0-3) unstable; urgency=low * Fix the clean-up of MKC_SOURCE_FUNCLIBS. -- Andrew Shadura Fri, 15 Nov 2013 17:39:37 +0100 mk-configure (0.24.0-2) unstable; urgency=low * Fix the Debhelper addon. -- Andrew Shadura Fri, 15 Nov 2013 15:44:39 +0100 mk-configure (0.24.0-1) unstable; urgency=low * Initial release. -- Andrew Shadura Thu, 15 Aug 2013 01:02:03 +0200 debian/source/0000755000000000000000000000000012203222330010453 5ustar debian/source/format0000644000000000000000000000001412203222330011661 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000001735312262265130011131 0ustar This package was downloaded from https://github.com/cheusov/mk-configure/ Upstream Author: Aleksey Cheusov License: BSD (see below) Debian packaging in (c) 2013—2013 Andrew Shadura and is licensed under the following license: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE DEBIAN PROJECT AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ###################################################################### Different parts of mk-configure have different copyright holders. All used licences are listed here. See individual files for details. ###################################################################### Copyright (c) 2009-2014 by Aleksey Cheusov Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ###################################################################### Copyright (c) 1988, 1989, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1988, 1989 by Adam de Boor Copyright (c) 1989 by Berkeley Softworks This code is derived from software contributed to Berkeley by Adam de Boor. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ###################################################################### Copyright (c) 1994-2009 The NetBSD Foundation, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ###################################################################### Copyright 1991 by the Massachusetts Institute of Technology Copyright 2013 by Aleksey Cheusov Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. M.I.T. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. ###################################################################### File examples/hello_strlcpy/strlcpy.c is licensed as follows: Copyright (c) 1998 Todd C. Miller Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. debian/examples0000644000000000000000000000001312203006716010716 0ustar examples/* debian/patches/0000755000000000000000000000000012262345266010625 5ustar debian/patches/series0000644000000000000000000000002012262345266012032 0ustar 01-lua-mk.patch debian/patches/01-lua-mk.patch0000644000000000000000000000052112262262743013246 0ustar --- a/mk/mkc_imp.lua.mk +++ b/mk/mkc_imp.lua.mk @@ -35,8 +35,8 @@ .endif LIB = ${LUA_CMODULE:S|.|/|:T} SRCS ?= ${LUA_CMODULE:S/./_/g}.c -MKDLL = Only -LDCOMPILER = Yes +MKDLL = only +LDCOMPILER = yes DLL_EXT = .so LIBDIR = ${LUA_CMODDIR}/${LUA_CMODULE:S|.|/|g:H} .endif # defined(LUA_CMODULES) debian/rules0000755000000000000000000000036412230000656010243 0ustar #!/usr/bin/make -f export PREFIX := /usr export SYSCONFDIR := /etc export MANDIR := $(PREFIX)/share/man export MKFILESDIR := $(PREFIX)/share/mk-configure/mk %: dh $@ --buildsystem=bmake override_dh_auto_test: .PHONY: override_dh_auto_test debian/compat0000644000000000000000000000000212203006333010354 0ustar 9