mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
FreeOrion is an open-source, platform independant galactic conquest game in
the tradition of the Master of Orion games. WWW: http://www.freeorion.org/
This commit is contained in:
parent
a242a39c16
commit
e04a672a00
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191371
@ -222,6 +222,7 @@
|
||||
SUBDIR += freedoko
|
||||
SUBDIR += freedroid
|
||||
SUBDIR += freedroidrpg
|
||||
SUBDIR += freeorion
|
||||
SUBDIR += freera
|
||||
SUBDIR += freesci
|
||||
SUBDIR += freesweep
|
||||
|
44
games/freeorion/Makefile
Normal file
44
games/freeorion/Makefile
Normal file
@ -0,0 +1,44 @@
|
||||
# New ports collection makefile for: freeorion
|
||||
# Date created: 2007-04-29
|
||||
# Whom: alepulver
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= freeorion
|
||||
PORTVERSION= 0.3.1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ftp://ftp.alepulver.com.ar/distfiles/
|
||||
|
||||
MAINTAINER= alepulver@FreeBSD.org
|
||||
COMMENT= Open-source, platform independent galactic conquest game
|
||||
|
||||
LIB_DEPENDS= GiGi.0:${PORTSDIR}/x11-toolkits/gigi \
|
||||
alut.1:${PORTSDIR}/audio/freealut \
|
||||
graph.3:${PORTSDIR}/graphics/graphviz \
|
||||
log4cpp.4:${PORTSDIR}/devel/log4cpp \
|
||||
vorbisfile.4:${PORTSDIR}/audio/libvorbis
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_SCONS= yes
|
||||
SCONS_ARGS= release=yes with_builtin_sdlnet=0
|
||||
USE_SDL= sdl net
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}/FreeOrion
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/freeorion* ${PREFIX}/bin
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.ttf ${DATADIR}
|
||||
${CP} -R ${WRKSRC}/default ${DATADIR}
|
||||
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
||||
|
||||
maint-gen-distfile:
|
||||
@if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
||||
${ECHO_CMD} "ERROR: the distfile already exists."; \
|
||||
${FALSE}; \
|
||||
fi
|
||||
svn export https://svn.sourceforge.net/svnroot/${PORTNAME}/trunk ${PORTNAME}
|
||||
tar cjf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}
|
||||
${RM} -rf ${PORTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
3
games/freeorion/distinfo
Normal file
3
games/freeorion/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (freeorion-0.3.1.tar.bz2) = f429107a9afdfa4eef22c2c29b2ebc17
|
||||
SHA256 (freeorion-0.3.1.tar.bz2) = 4e8b15910636b0a824723ca7d600883ef46b2d9b8dca7eab1a19fd726235dc99
|
||||
SIZE (freeorion-0.3.1.tar.bz2) = 48823790
|
13
games/freeorion/files/patch-SConscript
Normal file
13
games/freeorion/files/patch-SConscript
Normal file
@ -0,0 +1,13 @@
|
||||
--- ./SConscript.orig Mon Jan 15 01:24:58 2007
|
||||
+++ ./SConscript Sun Apr 29 18:37:54 2007
|
||||
@@ -77,8 +77,8 @@
|
||||
target_sources = [
|
||||
'client/ClientApp.cpp',
|
||||
'client/human/HumanClientApp.cpp',
|
||||
- 'client/human/HumanClientAppSoundFMOD.cpp',
|
||||
-# 'client/human/HumanClientAppSoundOpenAL.cpp',
|
||||
+# 'client/human/HumanClientAppSoundFMOD.cpp',
|
||||
+ 'client/human/HumanClientAppSoundOpenAL.cpp',
|
||||
'client/human/chmain.cpp',
|
||||
'network/ClientNetworkCore.cpp',
|
||||
'UI/About.cpp',
|
79
games/freeorion/files/patch-SConstruct
Normal file
79
games/freeorion/files/patch-SConstruct
Normal file
@ -0,0 +1,79 @@
|
||||
--- ./SConstruct.orig Tue Aug 22 23:20:52 2006
|
||||
+++ ./SConstruct Sun Apr 29 18:13:40 2007
|
||||
@@ -53,9 +53,6 @@
|
||||
options.Add('with_log4cpp', 'Root directory of Log4cpp installation')
|
||||
options.Add('with_log4cpp_include', 'Specify exact include dir for Log4cpp headers')
|
||||
options.Add('with_log4cpp_libdir', 'Specify exact library dir for Log4cpp library')
|
||||
-options.Add('with_fmod', 'Root directory of FMOD installation')
|
||||
-options.Add('with_fmod_include', 'Specify exact include dir for FMOD headers')
|
||||
-options.Add('with_fmod_libdir', 'Specify exact library dir for FMOD library')
|
||||
options.Add('with_graphviz', 'Root directory of GraphViz installation')
|
||||
options.Add('with_graphviz_include', 'Specify exact include dir for GraphViz headers')
|
||||
options.Add('with_graphviz_libdir', 'Specify exact library dir for GraphViz library')
|
||||
@@ -66,6 +63,10 @@
|
||||
options.Add('with_zlib', 'Root directory of zlib installation')
|
||||
options.Add('with_zlib_include', 'Specify exact include dir for zlib headers')
|
||||
options.Add('with_zlib_libdir', 'Specify exact library dir for zlib library')
|
||||
+options.Add('CXX', 'C++ compiler')
|
||||
+options.Add('CCFLAGS', 'C compiler flags', Split(''))
|
||||
+options.Add('CPPPATH', 'Compiler include path', Split(''))
|
||||
+options.Add('LIBPATH', 'Linker library path', Split(''))
|
||||
|
||||
##################################################
|
||||
# build vars #
|
||||
@@ -105,6 +106,10 @@
|
||||
|
||||
options.Update(env)
|
||||
|
||||
+env['CCFLAGS'] = Split(env['CCFLAGS'])
|
||||
+env['CPPPATH'] = Split(env['CPPPATH'])
|
||||
+env['LIBPATH'] = Split(env['LIBPATH'])
|
||||
+
|
||||
if env.has_key('use_distcc') and env['use_distcc']:
|
||||
env['CC'] = 'distcc %s' % env['CC']
|
||||
env['CXX'] = 'distcc %s' % env['CXX']
|
||||
@@ -219,8 +224,8 @@
|
||||
if str(Platform()) == 'posix':
|
||||
if env['multithreaded']:
|
||||
if conf.CheckCHeader('pthread.h') and conf.CheckLib('pthread', 'pthread_create', autoadd = 0):
|
||||
- env.AppendUnique(CCFLAGS = ' -pthread')
|
||||
- env.AppendUnique(LINKFLAGS = ' -pthread')
|
||||
+ env.AppendUnique(CCFLAGS = Split('-pthread'))
|
||||
+ env.AppendUnique(LINKFLAGS = '-pthread')
|
||||
else:
|
||||
Exit(1)
|
||||
|
||||
@@ -308,25 +313,6 @@
|
||||
# End of GG requirements #
|
||||
##########################
|
||||
|
||||
- # FMOD
|
||||
- AppendPackagePaths('fmod', env)
|
||||
- found_it_with_pkg_config = False
|
||||
- if pkg_config:
|
||||
- if conf.CheckPkg('fmod', fmod_version):
|
||||
- env.ParseConfig('pkg-config --cflags --libs fmod')
|
||||
- found_it_with_pkg_config = True
|
||||
- if not found_it_with_pkg_config:
|
||||
- version_regex = re.compile(r'FMOD_VERSION\s*(\d+\.\d+)', re.DOTALL)
|
||||
- if not conf.CheckVersionHeader('fmod', 'fmod.h', version_regex, fmod_version, True):
|
||||
- Exit(1)
|
||||
- if not conf.CheckCHeader('fmod.h'):
|
||||
- Exit(1)
|
||||
- if str(Platform()) != 'win32':
|
||||
- if not conf.CheckLib('fmod-' + fmod_version, 'FSOUND_GetVersion', header = '#include <fmod.h>'):
|
||||
- Exit(1)
|
||||
- else:
|
||||
- env.AppendUnique(LIBS = [fmod_win32_lib_name])
|
||||
-
|
||||
# GraphViz
|
||||
AppendPackagePaths('graphviz', env)
|
||||
if pkg_config:
|
||||
@@ -507,6 +493,7 @@
|
||||
# define human objects
|
||||
env['target_define'] = 'FREEORION_BUILD_HUMAN'
|
||||
human_objects = SConscript(os.path.normpath('SConscript'))
|
||||
+env.Append(LIBS = ['vorbisfile', 'alut'])
|
||||
if str(Platform()) == 'win32':
|
||||
rc_file = open('win32_resources.rc', 'w')
|
||||
rc_file.write('IDI_ICON ICON "client/human/HumanClient.ico"')
|
17
games/freeorion/files/patch-client__human__chmain.cpp
Normal file
17
games/freeorion/files/patch-client__human__chmain.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
--- ./client/human/chmain.cpp.orig Sun Apr 22 23:44:35 2007
|
||||
+++ ./client/human/chmain.cpp Sun Apr 29 18:37:23 2007
|
||||
@@ -1,4 +1,4 @@
|
||||
-#include "HumanClientAppSoundFMOD.h"
|
||||
+#include "HumanClientAppSoundOpenAL.h"
|
||||
#include "../../util/OptionsDB.h"
|
||||
#include "../../util/Directories.h"
|
||||
#include "../../util/XMLDoc.h"
|
||||
@@ -60,7 +60,7 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
- HumanClientAppSoundFMOD app;
|
||||
+ HumanClientAppSoundOpenAL app;
|
||||
|
||||
try {
|
||||
app(); // run app (intialization and main process loop)
|
4
games/freeorion/pkg-descr
Normal file
4
games/freeorion/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
FreeOrion is an open-source, platform independant galactic conquest game in
|
||||
the tradition of the Master of Orion games.
|
||||
|
||||
WWW: http://www.freeorion.org/
|
9
games/freeorion/pkg-message
Normal file
9
games/freeorion/pkg-message
Normal file
@ -0,0 +1,9 @@
|
||||
==============================================================================
|
||||
|
||||
FreeOrion has been installed.
|
||||
|
||||
To run in full-screen mode use "--fullscreen 1".
|
||||
|
||||
Some "Done" buttons do not work, in that case use the "Esc" key instead.
|
||||
|
||||
==============================================================================
|
1115
games/freeorion/pkg-plist
Normal file
1115
games/freeorion/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user