diff --git a/games/Makefile b/games/Makefile index 2fb5ab8b8650..223f2730f1af 100644 --- a/games/Makefile +++ b/games/Makefile @@ -616,6 +616,7 @@ SUBDIR += planeshift SUBDIR += plee-the-bear SUBDIR += plonx + SUBDIR += plutocracy SUBDIR += pmars SUBDIR += pmars-sdl SUBDIR += poker-engine diff --git a/games/plutocracy/Makefile b/games/plutocracy/Makefile new file mode 100644 index 000000000000..5f63497aad9c --- /dev/null +++ b/games/plutocracy/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: plutocracy +# Date created: 29 Dec 2008 +# Whom: Dmitry Marakasov +# +# $FreeBSD$ +# + +PORTNAME= plutocracy +PORTVERSION= 0.0.20081229 +CATEGORIES= games +MASTER_SITES= http://mirror.amdmi3.ru/ + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Multiplayer 3D economy/trade-based RTS + +USE_BZIP2= yes +USE_SDL= sdl pango +USE_GL= gl glu +USE_PYTHON= yes +USE_PYDISTUTILS= yes +INSTALLS_EGGINFO= yes +PYDISTUTILS_PKGVERSION= 0.0 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +SUB_FILES= plutocracy_ + +PORTDOCS= AUTHORS README + +post-patch: + @${REINPLACE_CMD} -e 's|span font|span font_desc|' \ + ${WRKSRC}/src/render/r_assets.c + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ + ${WRKSRC}/setup.py + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/pluto.py ${DATADIR}/ + ${INSTALL_SCRIPT} ${WRKDIR}/plutocracy_ ${PREFIX}/bin/${PORTNAME} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/games/plutocracy/distinfo b/games/plutocracy/distinfo new file mode 100644 index 000000000000..441249dab737 --- /dev/null +++ b/games/plutocracy/distinfo @@ -0,0 +1,3 @@ +MD5 (plutocracy-0.0.20081229.tar.bz2) = 80416ceb0eb207343665d7e5ca0cb586 +SHA256 (plutocracy-0.0.20081229.tar.bz2) = f1cd75f5638667d03bf53006e67bd96106911bfd61897989a6d3e25822ca314b +SIZE (plutocracy-0.0.20081229.tar.bz2) = 7286689 diff --git a/games/plutocracy/files/patch-setup.py b/games/plutocracy/files/patch-setup.py new file mode 100644 index 000000000000..4b908b48bae5 --- /dev/null +++ b/games/plutocracy/files/patch-setup.py @@ -0,0 +1,26 @@ +--- setup.py.orig 2008-12-26 22:15:17.000000000 +0300 ++++ setup.py 2008-12-29 04:03:48.000000000 +0300 +@@ -33,17 +33,17 @@ + + api_extension = Extension("plutocracy.api", ["src/plutocracy-lib.c", + "src/plutocracy.c"] + plutocracy_src, +- include_dirs=[".", "/usr/include/SDL", +- "/usr/include/pango-1.0", +- "/usr/include/glib-2.0", +- "/usr/lib/glib-2.0/include"], ++ include_dirs=[".", "/usr/local/include/SDL", ++ "/usr/local/include/pango-1.0", ++ "/usr/local/include/glib-2.0", ++ "/usr/local/include"], + libraries = ['GL', 'GLU', 'z', 'png', "SDL_Pango", +- 'pango-1.0'], ++ 'pango-1.0', 'SDL'], + define_macros=[("_REENTRANT", None), + ("PACKAGE", '"%s"' % "plutocracy"), + ("PACKAGE_STRING", '"%s"' % PACKAGE_STRING), + ("PKGDATADIR", '"%s"' % PKGDATADIR)], +- extra_link_args= ["-lSDL"], ++ extra_link_args= ["-L/usr/local/lib"], + depends = headers) + + extensions.append( api_extension ) diff --git a/games/plutocracy/files/plutocracy_.in b/games/plutocracy/files/plutocracy_.in new file mode 100644 index 000000000000..c5dead49642b --- /dev/null +++ b/games/plutocracy/files/plutocracy_.in @@ -0,0 +1,10 @@ +#!/usr/bin/env python + +import sys +import os.path + +#Change current work directory +os.chdir(os.path.join("%%DATADIR%%")) + +#Launch the program! +execfile("pluto.py") diff --git a/games/plutocracy/pkg-descr b/games/plutocracy/pkg-descr new file mode 100644 index 000000000000..f937c217a8a9 --- /dev/null +++ b/games/plutocracy/pkg-descr @@ -0,0 +1,7 @@ +Plutocracy is a multiplayer 3D RTS game focusing on merchant trade +and domination by economic means, although warfare and piracy are +always an option. The game has a 1600s Caribbean theme, is played +on a real globe, and aims to replicate realistic economic transactions. + +WWW: http://plutocracy.ca/ +WWW: http://code.google.com/p/plutocracy/ diff --git a/games/plutocracy/pkg-plist b/games/plutocracy/pkg-plist new file mode 100644 index 000000000000..02af8d559d51 --- /dev/null +++ b/games/plutocracy/pkg-plist @@ -0,0 +1,163 @@ +bin/plutocracy +%%PYTHON_SITELIBDIR%%/plutocracy/__init__.py +%%PYTHON_SITELIBDIR%%/plutocracy/__init__.pyc +%%PYTHON_SITELIBDIR%%/plutocracy/__init__.pyo +%%PYTHON_SITELIBDIR%%/plutocracy/api.so +%%PYTHON_SITELIBDIR%%/plutocracy/cargo.py +%%PYTHON_SITELIBDIR%%/plutocracy/cargo.pyc +%%PYTHON_SITELIBDIR%%/plutocracy/cargo.pyo +%%DATADIR%%/configs/names.cfg +%%DATADIR%%/gui/flags/blue.png +%%DATADIR%%/gui/flags/green.png +%%DATADIR%%/gui/flags/pirate.png +%%DATADIR%%/gui/flags/red.png +%%DATADIR%%/gui/fonts/BLKCHCRY.TTF +%%DATADIR%%/gui/fonts/BLKCHCRY.TXT +%%DATADIR%%/gui/fonts/DejaVuSans-Bold.ttf +%%DATADIR%%/gui/fonts/DejaVuSansMono-Bold.ttf +%%DATADIR%%/gui/fonts/LCD2U___.TTF +%%DATADIR%%/gui/fonts/LCD2U___.TXT +%%DATADIR%%/gui/fonts/SF_Archery_Black.ttf +%%DATADIR%%/gui/fonts/SF_Archery_Black.txt +%%DATADIR%%/gui/icons/arrow-left.png +%%DATADIR%%/gui/icons/arrow-right.png +%%DATADIR%%/gui/icons/buying.png +%%DATADIR%%/gui/icons/console.png +%%DATADIR%%/gui/icons/game.png +%%DATADIR%%/gui/icons/kick.png +%%DATADIR%%/gui/icons/nations.png +%%DATADIR%%/gui/icons/players.png +%%DATADIR%%/gui/icons/ring/board.png +%%DATADIR%%/gui/icons/ring/dock.png +%%DATADIR%%/gui/icons/ring/follow.png +%%DATADIR%%/gui/icons/ring/galleon.png +%%DATADIR%%/gui/icons/ring/mill.png +%%DATADIR%%/gui/icons/ring/none.png +%%DATADIR%%/gui/icons/ring/ship+.png +%%DATADIR%%/gui/icons/ring/ship.png +%%DATADIR%%/gui/icons/ring/spider.png +%%DATADIR%%/gui/icons/ring/tree.png +%%DATADIR%%/gui/icons/ring/unknown.png +%%DATADIR%%/gui/icons/scrollback.png +%%DATADIR%%/gui/icons/selling.png +%%DATADIR%%/gui/icons/trade.png +%%DATADIR%%/gui/icons/video.png +%%DATADIR%%/gui/icons/zoom.png +%%DATADIR%%/gui/logo.png +%%DATADIR%%/gui/themes/default/button.png +%%DATADIR%%/gui/themes/default/button_active.png +%%DATADIR%%/gui/themes/default/button_hover.png +%%DATADIR%%/gui/themes/default/hanger.png +%%DATADIR%%/gui/themes/default/popup.png +%%DATADIR%%/gui/themes/default/ring.png +%%DATADIR%%/gui/themes/default/round_active.png +%%DATADIR%%/gui/themes/default/round_hover.png +%%DATADIR%%/gui/themes/default/select_hover.png +%%DATADIR%%/gui/themes/default/select_off.png +%%DATADIR%%/gui/themes/default/select_on.png +%%DATADIR%%/gui/themes/default/sep_horizontal.png +%%DATADIR%%/gui/themes/default/sep_vertical.png +%%DATADIR%%/gui/themes/default/square_active.png +%%DATADIR%%/gui/themes/default/square_hover.png +%%DATADIR%%/gui/themes/default/theme.cfg +%%DATADIR%%/gui/themes/default/window.png +%%DATADIR%%/gui/themes/default/work_area.png +%%DATADIR%%/gui/themes/test/theme.cfg +%%DATADIR%%/gui/themes/test/window.png +%%DATADIR%%/lang/fr +%%DATADIR%%/models/field/README +%%DATADIR%%/models/gib/README +%%DATADIR%%/models/gib/crates.plum.gz +%%DATADIR%%/models/gib/crates.png +%%DATADIR%%/models/globe/README +%%DATADIR%%/models/globe/blend_mask.png +%%DATADIR%%/models/globe/border.png +%%DATADIR%%/models/globe/dashed_border.png +%%DATADIR%%/models/globe/select_arrow.png +%%DATADIR%%/models/globe/select_dot.png +%%DATADIR%%/models/globe/select_goto.png +%%DATADIR%%/models/globe/select_tile.png +%%DATADIR%%/models/globe/terrain.png +%%DATADIR%%/models/globe/terrain_full.png +%%DATADIR%%/models/globe/trans_mask.png +%%DATADIR%%/models/guildhall/README +%%DATADIR%%/models/litter/README +%%DATADIR%%/models/litter/rock.plum.gz +%%DATADIR%%/models/litter/rock.png +%%DATADIR%%/models/mill/README +%%DATADIR%%/models/mine/README +%%DATADIR%%/models/ship/README +%%DATADIR%%/models/ship/board.png +%%DATADIR%%/models/ship/galleon.plum.gz +%%DATADIR%%/models/ship/galleon.png +%%DATADIR%%/models/ship/sloop.plum.gz +%%DATADIR%%/models/ship/sloop.png +%%DATADIR%%/models/ship/spider.plum.gz +%%DATADIR%%/models/ship/spider.png +%%DATADIR%%/models/ship/status_bars.png +%%DATADIR%%/models/ship/status_circle.png +%%DATADIR%%/models/ship/status_other.png +%%DATADIR%%/models/ship/status_select.png +%%DATADIR%%/models/solar/README +%%DATADIR%%/models/solar/moon.png +%%DATADIR%%/models/solar/sky.plum.gz +%%DATADIR%%/models/solar/sky.png +%%DATADIR%%/models/solar/sun.png +%%DATADIR%%/models/special/README +%%DATADIR%%/models/statue/README +%%DATADIR%%/models/terrain/README +%%DATADIR%%/models/test/README +%%DATADIR%%/models/test/check_gp.png +%%DATADIR%%/models/test/check_rb.png +%%DATADIR%%/models/test/check_trans.png +%%DATADIR%%/models/test/checkers.png +%%DATADIR%%/models/test/cube.plum +%%DATADIR%%/models/test/cube_sphere.plum.gz +%%DATADIR%%/models/test/granger.plum +%%DATADIR%%/models/test/granger.plum.gz +%%DATADIR%%/models/test/granger.png +%%DATADIR%%/models/test/lag_100000.plum.gz +%%DATADIR%%/models/test/mill.plum +%%DATADIR%%/models/test/rock1.plum +%%DATADIR%%/models/test/rock1.png +%%DATADIR%%/models/test/tile_bounds.plum.gz +%%DATADIR%%/models/test/trans_stack.plum +%%DATADIR%%/models/test/tree.plum +%%DATADIR%%/models/test/tree2.png +%%DATADIR%%/models/tree/README +%%DATADIR%%/models/tree/deciduous.plum.gz +%%DATADIR%%/models/tree/deciduous.png +%%DATADIR%%/models/water/README +%%DATADIR%%/models/water/dock.plum.gz +%%DATADIR%%/models/water/dock.png +%%DATADIR%%/models/workshop/README +%%DATADIR%%/pluto.py +@dirrm %%DATADIR%%/models/workshop +@dirrm %%DATADIR%%/models/water +@dirrm %%DATADIR%%/models/tree +@dirrm %%DATADIR%%/models/test +@dirrm %%DATADIR%%/models/terrain +@dirrm %%DATADIR%%/models/statue +@dirrm %%DATADIR%%/models/special +@dirrm %%DATADIR%%/models/solar +@dirrm %%DATADIR%%/models/ship +@dirrm %%DATADIR%%/models/mine +@dirrm %%DATADIR%%/models/mill +@dirrm %%DATADIR%%/models/litter +@dirrm %%DATADIR%%/models/guildhall +@dirrm %%DATADIR%%/models/globe +@dirrm %%DATADIR%%/models/gib +@dirrm %%DATADIR%%/models/field +@dirrm %%DATADIR%%/models +@dirrm %%DATADIR%%/lang +@dirrm %%DATADIR%%/gui/themes/test +@dirrm %%DATADIR%%/gui/themes/default +@dirrm %%DATADIR%%/gui/themes +@dirrm %%DATADIR%%/gui/icons/ring +@dirrm %%DATADIR%%/gui/icons +@dirrm %%DATADIR%%/gui/fonts +@dirrm %%DATADIR%%/gui/flags +@dirrm %%DATADIR%%/gui +@dirrm %%DATADIR%%/configs +@dirrm %%DATADIR%% +@dirrm %%PYTHON_SITELIBDIR%%/plutocracy