| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  | # Copyright 2016 Julian Ospald <hasufell@posteo.de> | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | # Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-23 02:22:08 +00:00
										 |  |  | WORK=${WORKBASE}/${PN}-${PV%_*} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-26 13:02:15 +00:00
										 |  |  | require cmake [ api=2 ] desktop-utils gtk-icon-cache flag-o-matic | 
					
						
							| 
									
										
										
										
											2016-04-22 14:10:55 +00:00
										 |  |  | require sourceforge [ pnv=${PNV//_/-}-src ] | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | SUMMARY="A multi-player, 3D action role-playing game" | 
					
						
							|  |  |  | HOMEPAGE="http://sumwars.org" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  | LICENCES="GPL-3 CCPL-Attribution-ShareAlike-3.0" | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | SLOT="0" | 
					
						
							|  |  |  | PLATFORMS="~amd64 ~x86" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEPENDENCIES="
 | 
					
						
							|  |  |  |     build+run: | 
					
						
							|  |  |  |         dev-games/cegui[>=0.8][ogre] | 
					
						
							|  |  |  |         dev-games/ois | 
					
						
							|  |  |  |         dev-games/physfs | 
					
						
							|  |  |  |         dev-lang/lua:5.1 | 
					
						
							|  |  |  |         dev-libs/boost | 
					
						
							|  |  |  |         dev-libs/ogre[freeimage][opengl] | 
					
						
							|  |  |  |         dev-libs/tinyxml | 
					
						
							|  |  |  |         media-libs/freealut | 
					
						
							|  |  |  |         media-libs/libogg | 
					
						
							|  |  |  |         media-libs/libvorbis | 
					
						
							| 
									
										
										
										
											2016-02-28 23:05:15 +00:00
										 |  |  |         media-libs/openal | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  |         net-libs/enet | 
					
						
							|  |  |  |         x11-libs/libX11 | 
					
						
							|  |  |  |         x11-libs/libXrandr | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CMAKE_SRC_CONFIGURE_PARAMS=( | 
					
						
							|  |  |  |     -DCMAKE_INSTALL_PREFIX="" | 
					
						
							|  |  |  |     -DSUMWARS_NO_TINYXML=ON | 
					
						
							|  |  |  |     -DSUMWARS_NO_ENET=ON | 
					
						
							|  |  |  |     -DSUMWARS_DOC_DIR="/usr/share/doc/${PNVR}" | 
					
						
							|  |  |  |     -DSUMWARS_EXECUTABLE_DIR=/usr/$(exhost --target)/bin | 
					
						
							|  |  |  |     -DSUMWARS_SHARE_DIR=/usr/share/${PN} | 
					
						
							|  |  |  |     -DSUMWARS_STANDALONE_MODE=OFF | 
					
						
							|  |  |  |     -DSUMWARS_POST_BUILD_COPY=OFF | 
					
						
							|  |  |  |     -DSUMWARS_PORTABLE_MODE=OFF | 
					
						
							|  |  |  |     -DSUMWARS_RANDOM_REGIONS=ON | 
					
						
							|  |  |  |     -DSUMWARS_BUILD_TOOLS=ON | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_configure() { | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     # QA | 
					
						
							|  |  |  |     append-flags -fno-strict-aliasing | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     cmake_src_configure | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_install() { | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     cmake_src_install | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     # cleanup empty directories | 
					
						
							|  |  |  |     edo rm -r "${IMAGE}"/usr/share/sumwars/translation/{potfiles,extract} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     insinto /usr/share/icons/hicolor/128x128/apps | 
					
						
							| 
									
										
										
										
											2016-04-23 02:22:08 +00:00
										 |  |  |     newins "${CMAKE_SOURCE}"/share/icon/SumWarsIcon_128x128.png ${PN}.png | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-26 13:02:15 +00:00
										 |  |  |     install_desktop_entry "Name=Summoning Wars" | 
					
						
							| 
									
										
										
										
											2016-02-16 15:57:33 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 |