From: <bn...@us...> - 2008-01-28 15:00:11
|
Revision: 844 http://pkgbuild.svn.sourceforge.net/pkgbuild/?rev=844&view=rev Author: bnitz Date: 2008-01-28 07:00:17 -0800 (Mon, 28 Jan 2008) Log Message: ----------- Checked in first OpenSolaris version of xlincity. xlincity is another fork of the opensourced S*mC*ty. This one seems to work as is. The earlier micropolis fork I checked in is intended to be more expandable with python components and usable on the XO OLPC project. Modified Paths: -------------- spec-files-extra/trunk/ChangeLog Added Paths: ----------- spec-files-extra/trunk/SFExlincity.spec spec-files-extra/trunk/patches/xlincity-01-solaris.diff Modified: spec-files-extra/trunk/ChangeLog =================================================================== --- spec-files-extra/trunk/ChangeLog 2008-01-28 13:41:14 UTC (rev 843) +++ spec-files-extra/trunk/ChangeLog 2008-01-28 15:00:17 UTC (rev 844) @@ -1,3 +1,8 @@ +2008-01-28 Brian Nitz <brian dot nitz at sun dot com> + *SFExlincity.spec + * patches/xlincity-01-solaris.diff + First version of xlincity (another opensource fork of S*mC*ty) + 2008-01-28 Moinak Ghosh <moi...@su...> * SFEkoffice3.spec: * patches/koffice-05-libart.diff: Added: spec-files-extra/trunk/SFExlincity.spec =================================================================== --- spec-files-extra/trunk/SFExlincity.spec (rev 0) +++ spec-files-extra/trunk/SFExlincity.spec 2008-01-28 15:00:17 UTC (rev 844) @@ -0,0 +1,48 @@ +# +# spec file for package SFExlincity +# + +%include Solaris.inc +Name: SFExlincity +Summary: xlincity - Simulation game based on opensourced components of S*mc*ty. +URL: http://lincity.sourceforge.net +Version: 1.12.0 +Source: http://www.ibiblio.org/pub/Linux/games/strategy/lincity-1.12.0.tar.gz +Patch1: xlincity-01-solaris.diff +SUNW_BaseDir: %{_basedir} +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%include default-depend.inc + + +%prep +%setup -q -n lincity-%{version} +find ./intl -name \*.c -exec dos2unix {} {} \; +find ./intl -name \*.h -exec dos2unix {} {} \; +find ./intl -name \*.charset -exec dos2unix {} {} \; +%patch1 -p1 + +%build +./configure +make + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-, root, bin) +/usr/local/share/lincity/* +/usr/local/lib/charset.alias +/usr/local/share/locale/ca/LC_MESSAGES/lincity.mo +/usr/local/share/locale/it/LC_MESSAGES/lincity.mo +/usr/local/share/locale/locale.alias +/usr/local/bin/xlincity +/usr/local/man/man6/lincity.6 + + +%changelog +* Wed Jan 23 2008 - Brian Nitz - <brian dot nitz at sun dot com> +- Initial version. Added: spec-files-extra/trunk/patches/xlincity-01-solaris.diff =================================================================== --- spec-files-extra/trunk/patches/xlincity-01-solaris.diff (rev 0) +++ spec-files-extra/trunk/patches/xlincity-01-solaris.diff 2008-01-28 15:00:17 UTC (rev 844) @@ -0,0 +1,62 @@ +diff -urN ../lincity-1.12.0/lcconfig.h ./lcconfig.h +--- ../lincity-1.12.0/lcconfig.h 2003-12-19 03:17:50.000000000 +0000 ++++ ./lcconfig.h 2007-11-17 07:21:54.000000000 +0000 +@@ -19,7 +19,6 @@ + #elif (SIZEOF_LONG==4) + typedef long Int32; + #else +-ERROR. Int32 is not defined. + #endif + + #if (SIZEOF_SHORT==2) +@@ -27,7 +26,6 @@ + #elif (SIZEOF_INT==2) + typedef int Int16; + #else +-ERROR. Int16 is not defined. + #endif + + #endif /* __lcconfig_h__ */ +diff -urN ../lincity-1.12.0/mouse.c ./mouse.c +--- ../lincity-1.12.0/mouse.c 2003-12-19 03:17:50.000000000 +0000 ++++ ./mouse.c 2007-11-17 07:19:50.000000000 +0000 +@@ -1056,7 +1056,7 @@ + and set to 1 if the existing transport if the more expensive sort + (e.g. GROUP_RAIL when overwriting GROUP_ROAD). + */ +-inline int ++int + mt_erase(int x, int y) + { + if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN) +@@ -1093,7 +1093,7 @@ + return 0; + } + +-inline int ++int + mt_temp(int x, int y) + { + if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN) +@@ -1127,7 +1127,7 @@ + return 0; + } + +-inline int ++int + mt_perm(int x, int y) + { + /* By now, it has already been mt_erase()'d */ +diff -urN ../lincity-1.12.0/pixmap.c ./pixmap.c +--- ../lincity-1.12.0/pixmap.c 2003-12-19 03:17:50.000000000 +0000 ++++ ./pixmap.c 2007-11-17 07:23:22.000000000 +0000 +@@ -390,7 +390,7 @@ + likes it in the file. Still need to fix this in autoconf, + but for now this will do. */ + #if !defined (WIN32) +-inline int ++int + pixmap_index (int x, int y) + { + return y*pixmap_width + x; +Binary files ../lincity-1.12.0/xlincity and ./xlincity differ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |