games-strategy/ja2-stracciatella: initial import of version 0.14.01
This commit is contained in:
parent
17ccabb38e
commit
79686a4140
45
licences/SFI-SCLA
Normal file
45
licences/SFI-SCLA
Normal file
@ -0,0 +1,45 @@
|
||||
This Strategy First Inc. Source Code License Agreement ("SFI-SCLA") forms a legal agreement between you and Strategy First Inc. ("Strategy First") for the source code, related materials, or related documentation (together, the "Software").
|
||||
|
||||
By using this Software you agree to be bound by the terms of this SFI-SCLA. Do not install, copy, or use the Software if you do not agree to the terms of this License Agreement. The Software is protected by copyright and other intellectual property laws and Strategy First is licensing the Software, not selling it.
|
||||
|
||||
YOUR RIGHTS:
|
||||
|
||||
You may use this Software for any non-commercial purpose, subject to the conditions of this License. Non-commercial purposes include, but are not limited to, teaching, research, public demos and your own experimentation. You may distribute this Software with books or other teaching materials, or publish the Software on websites that are intended to teach the use of the Software for academic or other non-commercial purposes. You may not use or distribute this Software, or any works that derive from it, in any form for commercial purposes. Commercial purposes include, but are not limited to, running a business, licensing, renting, or selling the Software, distributing the Software for use with any commercial products, or any other activity which purpose is to procure a profit or gain to you or others. This Software includes source code or data, and you may modify such portions of the Software and distribute the modified Software for non-commercial purposes, as provided in this Licensing Agreement.
|
||||
|
||||
This Licensing Agreement does not grant you a license to any of Strategy First's copyrights or patents for anything you might create using any of the information included in the Software.
|
||||
|
||||
In return, you agree:
|
||||
|
||||
1. That you will not remove any copyright or other notices from the Software.
|
||||
|
||||
2. That if any of the Software is in binary format, you will not attempt to modify such portions of the Software, or to reverse engineer or decompile them, except and only to the extent authorized by law.
|
||||
|
||||
3. That if you distribute the Software or any derivative works of the Software, you will distribute them using a verbatim copy of this License, and you will not grant any
|
||||
rights to the Software or derivative works that are broader than those provided by this Licensing Agreement. For example, you may not distribute any modifications of the Software under terms that would permit commercial use, or under terms that require the Software or such derivative works to be sublicensed to others.
|
||||
|
||||
4. That if you have modified the Software or created derivative works, and distribute such modifications or derivative works, you will cause the modified files to carry
|
||||
prominent notices so that recipients know that they are not receiving the original Software. Such notices must state: (i) that you have changed the Software; and (ii) the date of any changes.
|
||||
|
||||
5. That Strategy First is granted, without any limitations, and on a royalty free basis, the rights to reproduce, install, use, modify, distribute and transfer your modifications to the Software source code or data.
|
||||
|
||||
6. That any feedback about the Software provided by you to us is voluntarily given, and Strategy First shall be free to use the feedback as it sees fit without obligation or
|
||||
restriction of any kind, even if the feedback is designated by you as confidential.
|
||||
|
||||
7. THAT THE SOFTWARE COMES "AS IS", WITH NO WARRANTIES. THIS MEANS NO EXPRESS, IMPLIED OR STATUTORY WARRANTY, INCLUDING WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ANY WARRANTY AGAINST INTERFERENCE WITH YOUR ENJOYMENT OF THE SOFTWARE OR ANY WARRANTY OF TITLE OR NON-INFRINGEMENT. THERE IS NO WARRANTY THAT THIS SOFTWARE WILL FULFILL ANY OF YOUR PARTICULAR PURPOSES OR NEEDS. ALSO, YOU MUST PASS THIS DISCLAIMER ON WHENEVER YOU DISTRIBUTE THE SOFTWARE OR DERIVATIVE WORKS.
|
||||
|
||||
8. THAT NEITHER STRATEGY FIRST NOR ANY CONTRIBUTOR TO THE SOFTWARE WILL BE LIABLE FOR ANY DAMAGES RELATED TO THE SOFTWARE OR THIS LICENSE, INCLUDING DIRECT, INDIRECT, SPECIAL,
|
||||
CONSEQUENTIAL OR INCIDENTAL DAMAGES, TO THE MAXIMUM EXTENT THE LAW PERMITS, NO MATTER WHAT LEGAL THEORY IT IS BASED ON. ALSO, YOU MUST PASS THIS LIMITATION OF LIABILITY ON WHENEVER YOU DISTRIBUTE THE SOFTWARE OR DERIVATIVE WORKS.
|
||||
|
||||
9. That we have no duty of reasonable care or lack of negligence, and we are not obligated to provide technical support for the Software.
|
||||
|
||||
10. That if you breach this SFI-SCLA or if you sue anyone over patents that you think may apply to the Software or anyone's use of the Software, your license to the Software ends automatically and you shall destroy all of your copies of the Software immediately. Section 5 of this SFI-SCLA shall survive any termination of this license.
|
||||
|
||||
11. That the patent rights, if any, granted in this Licensing Agreement only apply to the Software, not to any derivative works you make.
|
||||
|
||||
12. That the Software is subject to U.S. export jurisdiction at the time it is licensed to you, and it may be subject to additional export or import laws in other places. You agree to comply with all such laws and regulations that may apply to the Software after delivery of the software to you.
|
||||
|
||||
13. That your rights under this License end automatically if you breach it in any way.
|
||||
|
||||
14. That all rights not expressly granted to you in this License are reserved.
|
||||
|
||||
15. That this SFI-SCLA shall be construed and controlled by the laws of the Province of Quebec, Canada, without regard to conflicts of law. If any provision of this SFI-SCLA shall be deemed unenforceable or contrary to law, the rest of this SFI-SCLA shall remain in full effect and interpreted in an enforceable manner that most nearly captures the intent of the original language.
|
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Convert names of data-files to lower-case
|
||||
|
||||
# location of the data-files
|
||||
GAMES_DATADIR="/usr/share/ja2/data"
|
||||
|
||||
cd "${GAMES_DATADIR}" || exit 1
|
||||
|
||||
# convert to lowercase
|
||||
find . -exec sh -c 'echo "${1}"
|
||||
lower="`echo "${1}" | tr [:upper:] [:lower:]`"
|
||||
[ -d `dirname "${lower}"` ] || mkdir `dirname ${lower}`
|
||||
[ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
|
||||
|
||||
# remove leftover
|
||||
rm -r ./TILECACHE ./STSOUNDS
|
@ -0,0 +1,18 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 27ef953..cc1e2cd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -610,11 +610,11 @@ install: $(BINARY)
|
||||
test -z "$(INSTALLABLE)" || install -d $(BINARY_DIR)
|
||||
test -z "$(INSTALLABLE)" || install -d $(MANPAGE_DIR)
|
||||
test -z "$(INSTALLABLE)" || install -d $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
- test -z "$(INSTALLABLE)" || install -m 555 $(BINARY) $(BINARY_DIR)
|
||||
+ test -z "$(INSTALLABLE)" || install -m 755 $(BINARY) $(BINARY_DIR)
|
||||
test -z "$(INSTALLABLE)" || cp -r externalized $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
test -z "$(INSTALLABLE)" || cp -r mods $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
test -z "$(INSTALLABLE)" || cp -r _unittests $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
- test -z "$(INSTALLABLE)" || install -m 444 ja2_manpage $(MANPAGE_DIR)/ja2.6
|
||||
+ test -z "$(INSTALLABLE)" || install -m 644 ja2_manpage $(MANPAGE_DIR)/ja2.6
|
||||
|
||||
@test -n "$(INSTALLABLE)" || echo "------------------------------------------------------------------------------"
|
||||
@test -n "$(INSTALLABLE)" || echo "This build doesn't support installation."
|
@ -0,0 +1,67 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
SUMMARY="A port of Jagged Alliance 2 to SDL"
|
||||
HOMEPAGE="https://bitbucket.org/gennady/ja2-stracciatella http://tron.homeunix.org/ja2/"
|
||||
DOWNLOADS="https://bitbucket.org/gennady/ja2-stracciatella/get/v${PV}.tar.gz -> ${PNV}.tar.gz
|
||||
mirror://gentoo/editor.slf.gz"
|
||||
|
||||
LICENCES="SFI-SCLA"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
media-libs/SDL:0[X]
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
edo mv gennady-ja2-stracciatella-* ${PNV}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
expatch "${FILES}"/${PNV}-makefile.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# not an autoconf script
|
||||
./configure --prefix=/usr
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake Q=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
BINARY_DIR="${IMAGE}/usr/$(exhost --target)/bin" \
|
||||
MANPAGE_DIR="${IMAGE}/usr/share/man/man6" \
|
||||
FULL_PATH_EXTRA_DATA_DIR="${IMAGE}/usr/share/ja2" \
|
||||
install
|
||||
|
||||
insinto /usr/share/ja2/data
|
||||
doins "${WORKBASE}"/editor.slf
|
||||
|
||||
insinto /usr/share/applications
|
||||
hereins ${PN}.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Name=ja2-stracciatella
|
||||
Type=Application
|
||||
Comment=A port of Jagged Alliance 2 to SDL
|
||||
Exec=ja2
|
||||
TryExec=ja2
|
||||
Icon=ja2-stracciatella
|
||||
Categories=Game;StrategyGame;
|
||||
EOF
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You need to copy all files from the Data directory of"
|
||||
elog "Jagged Alliance 2 installation to"
|
||||
elog "/usr/share/ja2/data "
|
||||
elog "Make sure the filenames are lowercase. You may want to run the"
|
||||
elog "script"
|
||||
elog "/usr/bin/ja2-convert"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user