Skip to content

Commit

Permalink
Copied packaging files to 4.0 trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
starkos committed May 5, 2008
1 parent dab64c4 commit e238e84
Show file tree
Hide file tree
Showing 7 changed files with 221 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/debian/changelog
@@ -0,0 +1,6 @@
premake (3.5-0ubuntu1~dapper2) dapper; urgency=low

* Initial release

-- Ryan Mulder <rjmyst3@gmail.com> Thu, 17 Apr 2008 20:27:22 -0400

1 change: 1 addition & 0 deletions packages/debian/compat
@@ -0,0 +1 @@
5
19 changes: 19 additions & 0 deletions packages/debian/control
@@ -0,0 +1,19 @@
Source: premake
Section: contrib/devel
Priority: optional
Maintainer: Ryan Mulder <rjmyst3@gmail.com>
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.
68 changes: 68 additions & 0 deletions packages/debian/copyright
@@ -0,0 +1,68 @@
This package was debianized by Ryan Mulder <rjmyst3@gmail.com> on
Thu, 17 Apr 2008 20:27:22 -0400.

It was downloaded from <http://premake.sourceforge.net>

Upstream Author:

Jason Perkins <starkos@gmail.com>

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 <rjmyst3@gmail.com> 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)
1 change: 1 addition & 0 deletions packages/debian/dirs
@@ -0,0 +1 @@
usr/bin
65 changes: 65 additions & 0 deletions 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 <str>
.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

61 changes: 61 additions & 0 deletions 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

0 comments on commit e238e84

Please sign in to comment.