Bug 114539 - [NEW PORT] games/memonix: Brain teasers, puzzle and memory games for kids in one pack
Summary: [NEW PORT] games/memonix: Brain teasers, puzzle and memory games for kids in ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 21:30 UTC by Dmitry Marakasov
Modified: 2007-08-19 15:10 UTC (History)
0 users

See Also:


Attachments
memonix-1.6.070712.shar (4.26 KB, text/plain)
2007-07-12 21:30 UTC, Dmitry Marakasov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov 2007-07-12 21:30:16 UTC
Port of memonix, which was opensourced yesterday.

---
Brain teasers, puzzle and memory games for kid's in one pack!

Memonix is the latest version of a wonderful collection of four
brain twisters, including Mosaic, Builder, Pair and Jig-Saw. While
being amazingly addictive and fun to play, these games can be used
to improve your child's memory, thinking and reaction. Five difficulty
levels from normal to obscene plus the timer mean that the challenge
will never run away. Joyful music and brightly-colored visuals
maximize the excitement from the gameplay.

Requirements:
CPU 300+ Mhz, 64 MB RAM, 3D acceleration video card with OpenGL, mouse.
Recommended: sound card.

WWW: http://www.viewizard.com/
Comment 1 Dmitry Marakasov 2007-07-13 11:48:45 UTC
* FreeBSD-gnats-submit@FreeBSD.org (FreeBSD-gnats-submit@FreeBSD.org) wrote:

Here's an update. Author included my CMakeLists.txt into archive.

--- memonix.patch begins here ---
diff -ruN memonix.orig/Makefile memonix/Makefile
--- memonix.orig/Makefile	Fri Jul 13 00:24:49 2007
+++ memonix/Makefile	Fri Jul 13 14:44:24 2007
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	memonix
-PORTVERSION=	1.6.070712
+PORTVERSION=	1.6.070713
 CATEGORIES=	games
 MASTER_SITES=	http://www.viewizard.com/download/ \
 		http://www.amdmi3.ru/distfiles/
@@ -33,12 +33,13 @@
 		-DCMAKE_C_FLAGS:STRING="${CFLAGS} ${PTHREAD_CFLAGS}" \
 		-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} ${PTHREAD_CFLAGS}"
 
+WRKSRC=		${WRKDIR}/MemonixSourceCode
+
 PLIST_FILES=	Memonix %%DATADIR%%/gamedata.vfs
 PLIST_DIRS=	%%DATADIR%%
 
 post-extract:
 	@${TAR} -C ${WRKDIR} -xzf ${DISTDIR}/memx16.tar.gz
-	@${CP} ${FILESDIR}/CMakeLists.txt ${WRKSRC}/
 
 post-patch:
 	@${REINPLACE_CMD} -e '/strcpy(ProgrammDir,/ s|\./|${DATADIR}/|' \
diff -ruN memonix.orig/distinfo memonix/distinfo
--- memonix.orig/distinfo	Fri Jul 13 00:24:06 2007
+++ memonix/distinfo	Fri Jul 13 14:43:28 2007
@@ -1,6 +1,6 @@
-MD5 (MemonixSourceCode_1.6_070712.zip) = aa4ba2f45140598d6cd2d5c51bf9d03e
-SHA256 (MemonixSourceCode_1.6_070712.zip) = b61fff319f8437d3dc4e5a5b7ae0129e41f07cfc964ea857283ff709e1c31990
-SIZE (MemonixSourceCode_1.6_070712.zip) = 186846
+MD5 (MemonixSourceCode_1.6_070713.zip) = dc39f1f51c137beef19a33c61db52af5
+SHA256 (MemonixSourceCode_1.6_070713.zip) = 1e9e950c0a0bc78afde6c116fb3867dde6c9ad6d7560f80ab10ae65c18d5ac62
+SIZE (MemonixSourceCode_1.6_070713.zip) = 188826
 MD5 (memx16.tar.gz) = bb94afdc6f6cb7ba8799fcb1429241ee
 SHA256 (memx16.tar.gz) = bc1ce3d17fb129b58bc6357942879697a62cc16db6e65c3d2b08bf64da2f88dd
 SIZE (memx16.tar.gz) = 6858043
diff -ruN memonix.orig/files/CMakeLists.txt memonix/files/CMakeLists.txt
--- memonix.orig/files/CMakeLists.txt	Thu Jul 12 21:51:40 2007
+++ memonix/files/CMakeLists.txt	Thu Jan  1 03:00:00 1970
@@ -1,25 +0,0 @@
-# project name
-PROJECT(memonix)
-
-# depends
-set(SDL_CONFIG "sdl-config" CACHE STRING "Path to sdl-config script")
-
-FIND_PACKAGE(OpenGL REQUIRED)
-IF(OPENGL_FOUND)
-	INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
-ELSE(OPENGL_FOUND)
-	MESSAGE(FATAL "OpenGL not found")
-ENDIF(OPENGL_FOUND)
-
-FIND_PACKAGE(GLU REQUIRED)
-FIND_PACKAGE(SDL REQUIRED)
-FIND_PACKAGE(SDL_image REQUIRED)
-FIND_PACKAGE(SDL_mixer REQUIRED)
-
-# sources
-FILE(GLOB_RECURSE memonix_SRCS *.cpp)
-
-# targets
-ADD_DEFINITIONS(`${SDL_CONFIG} --cflags`)
-ADD_EXECUTABLE(Memonix ${memonix_SRCS})
-TARGET_LINK_LIBRARIES(Memonix `${SDL_CONFIG} --libs` ${SDLIMAGE_LIBRARY} ${SDLMIXER_LIBRARY} ${OPENGL_gl_LIBRARY} ${GLU_LIBRARY})
--- memonix.patch ends here ---

-- 
Best regards,
  Dmitry Marakasov               mailto:amdmi3@amdmi3.ru
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2007-07-16 09:38:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2007-07-16 09:39:10 UTC
State Changed
From-To: open->feedback

Ask for maintainer fix.
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2007-08-05 23:36:29 UTC
State Changed
From-To: feedback->closed

Submitter timeout.  Please feel free to submit a follow-up for this PR 
ticket if you can come up with a solution. Thanks.
Comment 5 Dmitry Marakasov 2007-08-07 22:46:57 UTC
* miwi@FreeBSD.org (miwi@FreeBSD.org) wrote:
> Submitter timeout.  Please feel free to submit a follow-up for this PR
> ticket if you can come up with a solution. Thanks.
Sorry, I was on a vacation. Here's the updated version of this port with
corrected plist. Now make package doesn't fail.

--- memonix-1.6.070713.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	memonix
#	memonix/distinfo
#	memonix/Makefile
#	memonix/pkg-descr
#
echo c - memonix
mkdir -p memonix > /dev/null 2>&1
echo x - memonix/distinfo
sed 's/^X//' >memonix/distinfo << 'END-of-memonix/distinfo'
XMD5 (MemonixSourceCode_1.6_070713.zip) = dc39f1f51c137beef19a33c61db52af5
XSHA256 (MemonixSourceCode_1.6_070713.zip) = 1e9e950c0a0bc78afde6c116fb3867dde6c9ad6d7560f80ab10ae65c18d5ac62
XSIZE (MemonixSourceCode_1.6_070713.zip) = 188826
XMD5 (memx16.tar.gz) = bb94afdc6f6cb7ba8799fcb1429241ee
XSHA256 (memx16.tar.gz) = bc1ce3d17fb129b58bc6357942879697a62cc16db6e65c3d2b08bf64da2f88dd
XSIZE (memx16.tar.gz) = 6858043
END-of-memonix/distinfo
echo x - memonix/Makefile
sed 's/^X//' >memonix/Makefile << 'END-of-memonix/Makefile'
X# New ports collection makefile for:	memonix
X# Date created:		12 Jul 2007
X# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	memonix
XPORTVERSION=	1.6.070713
XCATEGORIES=	games
XMASTER_SITES=	http://www.viewizard.com/download/ \
X		http://www.amdmi3.ru/distfiles/
XDISTNAME=	MemonixSourceCode_${PORTVERSION:S/./_/g:S/_/./}
XDISTFILES=	${DISTNAME}${EXTRACT_SUFX} memx16.tar.gz
XEXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
X
XMAINTAINER=	amdmi3@amdmi3.ru
XCOMMENT=	Brain teasers, puzzle and memory games for kids in one pack
X
XBUILD_DEPENDS=	${CMAKE}:${PORTSDIR}/devel/cmake
X
XCMAKE?=		${LOCALBASE}/bin/cmake
X
XUSE_ZIP=	yes
XUSE_SDL=	sdl mixer image
XUSE_GL=		yes
X
XCMAKE_DEFS=	-DCMAKE_EXE_LINKER_FLAGS:STRING="${LINKERFLAGS} ${PTHREAD_LIBS}" \
X		-DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}"\
X		-DCMAKE_USE_PTHREADS:BOOL=ON \
X		-DCMAKE_C_COMPILER:STRING="${CC}" \
X		-DCMAKE_CXX_COMPILER:STRING="${CXX}" \
X		-DCMAKE_C_FLAGS:STRING="${CFLAGS} ${PTHREAD_CFLAGS}" \
X		-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} ${PTHREAD_CFLAGS}"
X
XWRKSRC=		${WRKDIR}/MemonixSourceCode
X
XPLIST_FILES=	bin/Memonix %%DATADIR%%/gamedata.vfs
XPLIST_DIRS=	%%DATADIR%%
X
Xpost-extract:
X	@${TAR} -C ${WRKDIR} -xzf ${DISTDIR}/memx16.tar.gz
X
Xpost-patch:
X	@${REINPLACE_CMD} -e '/strcpy(ProgrammDir,/ s|\./|${DATADIR}/|' \
X		 ${WRKSRC}/src/Main.cpp
X
Xdo-configure:
X	cd ${WRKSRC} && ${CMAKE} . ${CMAKE_DEFS}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/Memonix ${PREFIX}/bin
X	${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKDIR}/Memonix/gamedata.vfs ${DATADIR}
X
X.include <bsd.port.mk>
END-of-memonix/Makefile
echo x - memonix/pkg-descr
sed 's/^X//' >memonix/pkg-descr << 'END-of-memonix/pkg-descr'
XBrain teasers, puzzle and memory games for kid's in one pack!
X
XMemonix is the latest version of a wonderful collection of four
Xbrain twisters, including Mosaic, Builder, Pair and Jig-Saw. While
Xbeing amazingly addictive and fun to play, these games can be used
Xto improve your child's memory, thinking and reaction. Five difficulty
Xlevels from normal to obscene plus the timer mean that the challenge
Xwill never run away. Joyful music and brightly-colored visuals
Xmaximize the excitement from the gameplay.
X
XRequirements:
XCPU 300+ Mhz, 64 MB RAM, 3D acceleration video card with OpenGL, mouse.
XRecommended: sound card.
X
XWWW: http://www.viewizard.com/
END-of-memonix/pkg-descr
exit

--- memonix-1.6.070713.shar ends here ---

-- 
Best regards,
  Dmitry Marakasov               mailto:amdmi3@amdmi3.ru
Comment 6 Martin Wilke freebsd_committer freebsd_triage 2007-08-19 12:15:18 UTC
State Changed
From-To: closed->open

reopen.
Comment 7 dfilter service freebsd_committer freebsd_triage 2007-08-19 15:06:49 UTC
miwi        2007-08-19 14:06:42 UTC

  FreeBSD ports repository

  Modified files:
    games                Makefile 
  Added files:
    games/memonix        Makefile distinfo pkg-descr 
  Log:
  Brain teasers, puzzle and memory games for kid's in one pack!
  
  Memonix is the latest version of a wonderful collection of four
  brain twisters, including Mosaic, Builder, Pair and Jig-Saw. While
  being amazingly addictive and fun to play, these games can be used
  to improve your child's memory, thinking and reaction. Five difficulty
  levels from normal to obscene plus the timer mean that the challenge
  will never run away. Joyful music and brightly-colored visuals
  maximize the excitement from the gameplay.
  
  WWW: http://www.viewizard.com/
  
  PR:             ports/114539
  Submitted by:   Dmitry Marakasov <amdmi3 at amdmi3.ru>
  
  Revision  Changes    Path
  1.1136    +1 -0      ports/games/Makefile
  1.1       +56 -0     ports/games/memonix/Makefile (new)
  1.1       +6 -0      ports/games/memonix/distinfo (new)
  1.1       +11 -0     ports/games/memonix/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 8 Martin Wilke freebsd_committer freebsd_triage 2007-08-19 15:07:20 UTC
State Changed
From-To: open->closed

New port added. Thanks!