diff --git a/packages/debian/changelog b/packages/debian/changelog new file mode 100644 index 00000000..fd679743 --- /dev/null +++ b/packages/debian/changelog @@ -0,0 +1,6 @@ +premake (3.5-0ubuntu1~dapper2) dapper; urgency=low + + * Initial release + + -- Ryan Mulder Thu, 17 Apr 2008 20:27:22 -0400 + diff --git a/packages/debian/compat b/packages/debian/compat new file mode 100644 index 00000000..7ed6ff82 --- /dev/null +++ b/packages/debian/compat @@ -0,0 +1 @@ +5 diff --git a/packages/debian/control b/packages/debian/control new file mode 100644 index 00000000..3881fdba --- /dev/null +++ b/packages/debian/control @@ -0,0 +1,19 @@ +Source: premake +Section: contrib/devel +Priority: optional +Maintainer: Ryan Mulder +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.3 +Homepage: http://premake.sourceforge.net + +Package: premake +Architecture: any +Depends: ${shlibs:Depends} +Description: Build Script Generator + Premake allows you to manage your project configuration in one + place and still support those pesky IDE-addicted Windows coders + and/or cranky Linux command-line junkies. It allows you to generate + project files for tools that you do not own. It saves the time that + would otherwise be spent manually keeping several different toolsets + in sync. And it provides an easy upgrade path as new versions of your + favorite tools are released. diff --git a/packages/debian/copyright b/packages/debian/copyright new file mode 100644 index 00000000..e1bcd391 --- /dev/null +++ b/packages/debian/copyright @@ -0,0 +1,68 @@ +This package was debianized by Ryan Mulder on +Thu, 17 Apr 2008 20:27:22 -0400. + +It was downloaded from + +Upstream Author: + + Jason Perkins + +Copyright: + + Copyright (C) 2002-2005 Jason Perkins and the Premake project + +License: + + 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 of the License, 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +The Debian packaging is (C) 2008, Ryan Mulder and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +Lua License +----------- + +Lua is licensed under the terms of the MIT license reproduced below. +This means that Lua is free software and can be used for both academic +and commercial purposes at absolutely no cost. + +For details and rationale, see http://www.lua.org/license.html . + +=============================================================================== + +Copyright (C) 2003-2006 Tecgraf, PUC-Rio. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +=============================================================================== + +(end of COPYRIGHT) diff --git a/packages/debian/dirs b/packages/debian/dirs new file mode 100644 index 00000000..e7724817 --- /dev/null +++ b/packages/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/packages/debian/premake.1 b/packages/debian/premake.1 new file mode 100644 index 00000000..8cf85d24 --- /dev/null +++ b/packages/debian/premake.1 @@ -0,0 +1,65 @@ +.\" premake man page. +.\" Contact rjmyst3@gmail.com to correct errors or omissions. +.TH "PREMAKE" "1" "17 April 2008" "Ryan Mulder" "" +.SH "NAME" +Premake \- A build script generator. +.SH "SYNOPSIS" +.\" Syntax goes here. +.B premake \-\-target +.SH "DESCRIPTION" +.B premake +allows you to manage your project configuration in one place and still support those pesky IDE\-addicted Windows coders and/or cranky Linux command\-line junkies. It allows you to generate project files for tools that you do not own. It saves the time that would otherwise be spent manually keeping several different toolsets in sync. And it provides an easy upgrade path as new versions of your favorite tools are released. +.SH "OPTIONS" +.TP 8 +.B "\-\-file name" +Process the specified premake script file. If not specified, "premake.lua" is assumed. +.TP 8 +.B "\-\-clean" +Remove all binaries and build scripts. +.TP 8 +.B "\-\-cc name" +Choose a C/C++ compiler, if supported by target; one of: + gcc GNU gcc compiler + dmc Digital Mars C/C+ compiler (experimental) +.TP 8 +.B "\-\-dotnet name" +Choose a .NET compiler set, if supported by target; one of: + ms Microsoft (csc) + mono Mono (mcs) + mono2 Mono .NET 2.0 (gmcs) + pnet Portable.NET (cscc) +.TP 8 +.B "\-\-os name" +Generate files for different operating system; one of: + bsd OpenBSD, NetBSD, or FreeBSD + linux Linux + macosx MacOS X + windows Microsoft Windows +.TP 8 +.B "\-\-target name" +Generate input files for the specified toolset; one of: + cb\-gcc Code::Blocks Studio with GCC + gnu GNU Makefile for POSIX, MinGW, and Cygwin + monodev MonoDevelop + sharpdev ICSharpCode SharpDevelop + vs6 Microsoft Visual Studio 6 + vs2002 Microsoft Visual Studio 2002 + vs2003 Microsoft Visual Studio 2003 + vs2005 Microsoft Visual Studio 2005 (includes Express editions) +.TP 8 +.B "\-\-version" +Display version information. +.TP 8 +.B "\-\-help" +Display this information. +.SH "EXAMPLES" +Generate Makefiles for gcc. +.nf +premake \-\-target gnu +.SH "AUTHORS" +.nf +Jason Perkins and the Premake Project +.fi +.SH "HISTORY" +2008 \- Initial version + diff --git a/packages/debian/rules b/packages/debian/rules new file mode 100644 index 00000000..5a3824af --- /dev/null +++ b/packages/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + $(MAKE) CONFIG=Release + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + $(MAKE) CONFIG=Release clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cp $(CURDIR)/bin/premake $(CURDIR)/debian/premake/usr/bin + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs $(CURDIR)/CHANGES.txt + dh_installdocs + dh_installman $(CURDIR)/debian/premake.1 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure