summaryrefslogtreecommitdiffstats
path: root/games/cultivation
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-02-08 22:33:02 +0000
committermiwi <miwi@FreeBSD.org>2007-02-08 22:33:02 +0000
commitb63075175d8b6ea55e94b431e846af22d93f9e58 (patch)
tree33ca4283576e0e59bc0732e103205acdb373a27e /games/cultivation
parent00129fc2217d79f73df4ee60d850f9dfa75b5e95 (diff)
downloadFreeBSD-ports-b63075175d8b6ea55e94b431e846af22d93f9e58.zip
FreeBSD-ports-b63075175d8b6ea55e94b431e846af22d93f9e58.tar.gz
Cultivation is quite different from most other games. It is a social
simulation, and the primary form of conflict is over land and plant resources---there is no shooting, but there are plenty of angry looks. It is also an evolution simulation. Within the world of Cultivation, you can explore a virtually infinite spectrum of different plant and gardener varieties. All of the graphics, sounds, melodies,and other content in Cultivation are 100% procedurally generated at playtime. In other words, there are no hand-painted texture maps---instead, each object has a uniquely "grown" appearance. Every time you play, Cultivation generates fresh visuals, music, and behaviors. WWW: http://cultivation.sourceforge.net/ PR: ports/108936 Submitted by: Dmitry Marakasov <amdmi3 at amdmi3.ru>
Diffstat (limited to 'games/cultivation')
-rw-r--r--games/cultivation/Makefile56
-rw-r--r--games/cultivation/distinfo3
-rw-r--r--games/cultivation/files/patch-Makefile.GnuLinux22
-rw-r--r--games/cultivation/files/patch-Makefile.common11
-rw-r--r--games/cultivation/pkg-descr14
-rw-r--r--games/cultivation/pkg-plist7
6 files changed, 113 insertions, 0 deletions
diff --git a/games/cultivation/Makefile b/games/cultivation/Makefile
new file mode 100644
index 0000000..60a89a1b
--- /dev/null
+++ b/games/cultivation/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: cultivation
+# Date created: 06 Feb 2007
+# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cultivation
+PORTVERSION= 7
+CATEGORIES= games
+MASTER_SITES= SF
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= Cultivation_${PORTVERSION}_UnixSource
+
+MAINTAINER= amdmi3@amdmi3.ru
+COMMENT= Unique game of conflict and cooperation in a gardening community
+
+LIB_DEPENDS= portaudio:${PORTSDIR}/audio/portaudio \
+ glut.4:${PORTSDIR}/graphics/libglut
+
+USE_GMAKE= yes
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/game2
+BUILD_WRKSRC= ${WRKSRC}/gameSource
+MAKE_ARGS= CXX=${CXX}
+
+PORTDOCS= changeLog.txt how_to_play.txt
+
+post-patch:
+ @cd ${WRKSRC} && ${CAT} Makefile.GnuLinux Makefile.common \
+ ../minorGems/build/Makefile.minorGems gameSource/Makefile.all \
+ ../minorGems/build/Makefile.minorGems_targets > gameSource/Makefile
+ @${REINPLACE_CMD} -e 's|font\.tga|${DATADIR}/font.tga|; \
+ s|language\.txt|${DATADIR}/language.txt|; \
+ s|features\.txt|${DATADIR}/features.txt|' \
+ ${BUILD_WRKSRC}/game.cpp
+ @${REINPLACE_CMD} -e 's|"languages"|"${DATADIR}/languages"|' \
+ ${WRKSRC}/../minorGems/util/TranslationManager.cpp
+
+do-install:
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Cultivation ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}/languages
+ ${INSTALL_DATA} ${BUILD_WRKSRC}/font.tga ${DATADIR}
+ ${INSTALL_DATA} ${BUILD_WRKSRC}/features.txt ${DATADIR}
+ ${INSTALL_DATA} ${BUILD_WRKSRC}/language.txt ${DATADIR}
+ ${INSTALL_DATA} ${BUILD_WRKSRC}/languages/* ${DATADIR}/languages
+
+.if !defined(NOPORTDOCS)
+post-install:
+ ${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/documentation/${f} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/cultivation/distinfo b/games/cultivation/distinfo
new file mode 100644
index 0000000..0aa11e1
--- /dev/null
+++ b/games/cultivation/distinfo
@@ -0,0 +1,3 @@
+MD5 (Cultivation_7_UnixSource.tar.gz) = 8a124674d5b395f15d277e4b7191f1a8
+SHA256 (Cultivation_7_UnixSource.tar.gz) = 17c3b2efcf6bf059178058a04bd0b555e257bfb9117a25445d6fbf00a70ac8b2
+SIZE (Cultivation_7_UnixSource.tar.gz) = 1117852
diff --git a/games/cultivation/files/patch-Makefile.GnuLinux b/games/cultivation/files/patch-Makefile.GnuLinux
new file mode 100644
index 0000000..a8d11b9
--- /dev/null
+++ b/games/cultivation/files/patch-Makefile.GnuLinux
@@ -0,0 +1,22 @@
+--- Makefile.GnuLinux.orig Tue Jun 27 18:14:31 2006
++++ Makefile.GnuLinux Tue Feb 6 21:58:05 2007
+@@ -12,16 +12,16 @@
+ ##
+
+
+-PLATFORM_COMPILE_FLAGS = -DLINUX
++PLATFORM_COMPILE_FLAGS = ${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include -DLINUX
+
+
+ # various GL and X windows librariesneeded for linux
+ # also need portaudio library (which in turn needs pthreads)
+-PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu ${PORT_AUDIO_PATH}/lib/libportaudio.a -lpthread
++PLATFORM_LINK_FLAGS = -L${LOCALBASE}/lib -L${X11BASE}/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu -pthread -lportaudio
+
+
+ # All platforms but OSX support g++ and need no linker hacks
+-GXX = g++
++GXX = ${CXX}
+ LINK_FLAGS =
+
+
diff --git a/games/cultivation/files/patch-Makefile.common b/games/cultivation/files/patch-Makefile.common
new file mode 100644
index 0000000..e31a22d
--- /dev/null
+++ b/games/cultivation/files/patch-Makefile.common
@@ -0,0 +1,11 @@
+--- Makefile.common.orig Wed Dec 27 08:41:51 2006
++++ Makefile.common Tue Feb 6 21:59:22 2007
+@@ -51,7 +51,7 @@
+
+
+
+-COMPILE_FLAGS = -Wall ${DEBUG_FLAG} ${PLATFORM_COMPILE_FLAGS} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} -I${ROOT_PATH} -I${PORT_AUDIO_PATH}/pa_common
++COMPILE_FLAGS = -Wall ${PLATFORM_COMPILE_FLAGS} ${PROFILE_FLAG} -I${ROOT_PATH}
+
+
+ COMPILE = ${GXX} ${COMPILE_FLAGS} -c
diff --git a/games/cultivation/pkg-descr b/games/cultivation/pkg-descr
new file mode 100644
index 0000000..dd41976
--- /dev/null
+++ b/games/cultivation/pkg-descr
@@ -0,0 +1,14 @@
+Cultivation is quite different from most other games. It is a social
+simulation, and the primary form of conflict is over land and plant
+resources---there is no shooting, but there are plenty of angry
+looks. It is also an evolution simulation. Within the world of
+Cultivation, you can explore a virtually infinite spectrum of
+different plant and gardener varieties.
+
+All of the graphics, sounds, melodies,and other content in Cultivation
+are 100% procedurally generated at playtime. In other words, there
+are no hand-painted texture maps---instead, each object has a
+uniquely "grown" appearance. Every time you play, Cultivation
+generates fresh visuals, music, and behaviors.
+
+WWW: http://cultivation.sourceforge.net/
diff --git a/games/cultivation/pkg-plist b/games/cultivation/pkg-plist
new file mode 100644
index 0000000..c2ad44b
--- /dev/null
+++ b/games/cultivation/pkg-plist
@@ -0,0 +1,7 @@
+bin/Cultivation
+%%DATADIR%%/features.txt
+%%DATADIR%%/font.tga
+%%DATADIR%%/language.txt
+%%DATADIR%%/languages/English.txt
+@dirrm %%DATADIR%%/languages
+@dirrm %%DATADIR%%
OpenPOWER on IntegriCloud