debian/0000755000000000000000000000000012166213015007163 5ustar debian/patches/0000755000000000000000000000000012166212722010616 5ustar debian/patches/paths.patch0000644000000000000000000000247311476400724012770 0ustar Author: Paul Wise Description: Allow Linux distros to specify an absolute path to the graphics and use ~/.primrose for settings. Forwarded: http://sf.net/support/tracker.php?aid=2740890 --- a/tilePlacementGames/game1/gameSource/common.cpp +++ b/tilePlacementGames/game1/gameSource/common.cpp @@ -12,7 +12,7 @@ Image *readTGA( char *inFileName ) { - return readTGA( "graphics", inFileName ); + return readTGA( DATADIR"graphics", inFileName ); } --- a/tilePlacementGames/game1/gameSource/game.cpp +++ b/tilePlacementGames/game1/gameSource/game.cpp @@ -23,6 +23,10 @@ #include +#include +#include +#include +#include #include "minorGems/util/random/CustomRandomSource.h" #include "minorGems/util/SettingsManager.h" @@ -491,6 +495,19 @@ #endif + #define SETTINGS "/.primrose" + char* home = getenv( "HOME" ); + size_t len = strlen( home ); + size_t len2 = sizeof( SETTINGS ); + char* dir = (char*)malloc( len + len2 ); + if( dir ){ + strcpy( dir, home ); + if( dir[len-1] == '/') strcpy( dir + len - 1, SETTINGS ); + else strcpy( dir + len, SETTINGS ); + mkdir( dir, 0777 ); + SettingsManager::setDirectoryName( dir ); + } + // don't use the same salt every time debian/patches/series0000644000000000000000000000001411167073473012036 0ustar paths.patch debian/primrose.60000644000000000000000000000002411476410614011115 0ustar .so man6/Primrose.6 debian/watch0000644000000000000000000000015111166572001010213 0ustar version=3 opts=dversionmangle=s/\+dfsg[0-9]*// http://sf.net/primrose/Primrose_v(.*)_UnixSource\.tar\.gz debian/install0000644000000000000000000000060712166200612010556 0ustar 128x128/*.png usr/share/icons/hicolor/128x128/apps 256x256/*.png usr/share/icons/hicolor/256x256/apps 32x32/*.png usr/share/icons/hicolor/32x32/apps 32x32/*.xpm usr/share/pixmaps 64x64/*.png usr/share/icons/hicolor/64x64/apps debian/*.desktop usr/share/applications tilePlacementGames/game1/gameSource/Primrose usr/games tilePlacementGames/game1/gameSource/graphics usr/share/games/primrose debian/copyright0000644000000000000000000000657012166200612011125 0ustar This package was debianized by Paul Wise on 2008-03-19 It was downloaded from http://primrose.sourceforge.net/download.php Upstream Author: Jason Rohrer Copyright: None, placed in the public domain Some files have different authors/copyright/licences: minorGems/crypto/hashes/sha*.h: No copyright (public domain) minorGems/io/file/win32/dirent.*: Copyright 1997 Kevlin Henney minorGems/io/serialPort/win32/COMPort.*: Copyright 2000 UAB BBDSoft minorGems/util/development/leakTracer/: No copyright (public domain) minorGems/network/linux/gnut_*: Copyright 2000 Josh Pieper License: None, placed in the public domain sha1: Originally witten by Steve Reid Modified by Aaron D. Gifford NO COPYRIGHT - THIS IS 100% IN THE PUBLIC DOMAIN The original unmodified version is available at: ftp://ftp.funet.fi/pub/crypt/hash/sha/sha1.c THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. dirent: POSIX directory browsing functions and types for Win32. Kevlin Henney (mailto:kevlin@acm.org), March 1997. Copyright Kevlin Henney, 1997. All rights reserved. Permission to use, copy, modify, and distribute this software and its documentation for any purpose is hereby granted without fee, provided that this copyright and permissions notice appear in all copies and derivatives, and that no charge may be made for the software and its documentation except to cover cost of distribution. This software is supplied "as is" without express or implied warranty. COMPort: General component library for WIN32 Copyright (C) 2000, UAB BBDSoft ( http://www.bbdsoft.com/ ) This material is provided "as is", with absolutely no warranty expressed or implied. Any use is at your own risk. Permission to use or copy this software for any purpose is hereby granted without fee, provided the above notices are retained on all copies. Permission to modify the code and to distribute modified code is granted, provided the above notices are retained, and a notice that the code was modified is included with the above copyright notice. The author of this program may be contacted at developers@bbdsoft.com leakTracer: Authors: Erwin S. Andreasen Henner Zeller This program is Public Domain gnut: Josh Pieper, (c) 2000 This file is distributed under the GPL, see file COPYING for details On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-*'. debian/primrose.desktop0000644000000000000000000000050112166204447012423 0ustar # From http://aur.archlinux.org/packages/primrose/primrose/primrose.desktop # Forwarded to http://sf.net/support/tracker.php?aid=2672210 [Desktop Entry] Name=Primrose Exec=primrose Icon=primrose Type=Application Comment=Captivating tile-clearing puzzle game Categories=Game;LogicGame; Keywords=puzzle;game;tile;clearing; debian/menu0000644000000000000000000000032511476400745010065 0ustar ?package(primrose):needs="X11" \ section="Games/Puzzles" \ title="Primrose" \ description="Captivating tile-clearing puzzle game" \ command="/usr/games/primrose" \ icon="/usr/share/pixmaps/primrose.xpm" debian/Primrose.60000644000000000000000000000375611476411352011074 0ustar .\" Placed in the public domain by Paul Wise .\" and Christoph Egger .\" Forwarded to http://sf.net/support/tracker.php?aid=2744610 .TH "primrose" "6" "March 2008" "" "Games" .SH "NAME" primrose \- a compelling tile-placement puzzle game .SH "SYNOPSIS" .B primrose .SH "DESCRIPTION" Primrose is a video game written by Jason Rohrer. .PP Unlike his previous work, primrose is an not art game. Despite the departure from art games to a puzzle game, primrose is still beautiful and captivating in its own way. .PP The player places pairs of coloured tiles on a 7x7 grid. Tiles are cleared by surrounding one colour group with another colour group, scoring points. The cleared tiles change the colour of the surrounding colour group, allowing for chain reactions that give more points. More colours are added as more tiles have been placed on the grid and eventually the game will end when the grid fills up. .PP The rush of a long chain reaction and the huge numbers of points that can be obtained from them is the counterpoint to playing it safe until the bitter grey (but slightly more colourful) end. .PP There are many strategies to be explored within that continuum. Your smartphone with wireless internet access is a great place to review and explore the continuum as Primrose includes a networked high scores list with instant replay. .SH "USAGE" Primrose has no command-line options. .PP Primrose is primarily controlled with the mouse. .PP The escape and q/Q keys quit the game. .PP Pressing P in the games brings up the menu. This menu has instructions on how to play the game, high scores, a dialog to set the name used for high scores as well as toggles for colorblind mode and sound. .PP Primrose connects to the web for synchronizing high scores. .SH "FILES" ~/.primrose/ is used to store settings and as a cache. .SH "SEE ALSO" The website and description: http://primrose.sourceforge.net/ .PP An interview with the creator: http://pc.ign.com/articles/955/955949p1.html debian/manpages0000644000000000000000000000004411476410614010706 0ustar debian/Primrose.6 debian/primrose.6 debian/changelog0000644000000000000000000000241712166212670011047 0ustar primrose (6+dfsg1-3) unstable; urgency=low * Wrap and sort various files * Switch to debhelper compat 9 * Fix and use canonical Vcs-* URLs * Fix dpkg-buildflags use, add more hardening * Bump Standards-Version * Add some keywords to the freedesktop menu file -- Paul Wise Sun, 07 Jul 2013 15:15:52 +0800 primrose (6+dfsg1-2) unstable; urgency=low * Switch to dpkg-source v3 * Clean up patch headers * Add missing build-dep on OpenGL headers * Switch to debhelper dh rules.tiny style * Keep upstream capitalization, add symlinks * Improve situation with icons * Drop README.Debian, it is not useful to users * Bump Standards-Version, no changes needed -- Paul Wise Thu, 10 Feb 2011 17:31:18 +0800 primrose (6+dfsg1-1) unstable; urgency=low * New upstream release * Fix default permissions in the settings patch * Some improvements to the get-orig-source target * Drop the use of dh_desktop since it was replaced by a trigger -- Paul Wise Sun, 17 May 2009 18:45:59 +0800 primrose (5+dfsg1-1) unstable; urgency=low [ Paul Wise ] * Initial release (Closes: #522753) [ Christoph Egger ] * Search for date in /usr/share -- Paul Wise Mon, 06 Apr 2009 19:26:56 +0800 debian/source/0000755000000000000000000000000012166212722010467 5ustar debian/source/format0000644000000000000000000000001411476400506011677 0ustar 3.0 (quilt) debian/control0000644000000000000000000000330012166204356010572 0ustar Source: primrose Section: games Priority: extra Maintainer: Debian Games Team Uploaders: Paul Wise , Christoph Egger Build-Depends: debhelper (>= 9), imagemagick, libgl1-mesa-dev | libgl-dev, libsdl1.2-dev Standards-Version: 3.9.4 Homepage: http://primrose.sourceforge.net/ Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/primrose/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/primrose/ Package: primrose Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: compelling tile-placement puzzle game Primrose is a puzzle game by Jason Rohrer and a departure from his previous games. . Primrose is an exploration into deep gameplay in single-player games. It is a tile clearing and placement game with chain reactions and without gravity or timing elements. The audio is limited to minimal but dynamic sound effects that change with game events and progress. It was designed as a casual but engaging and intelligent game for mobile phones. . The player places pairs of coloured tiles on a 7x7 grid. Tiles are cleared by surrounding one colour group with another colour group, scoring points. The cleared tiles change the colour of the surrounding colour group, allowing for chain reactions that give more points. More colours are added as more tiles have been placed on the grid and eventually the game will end when the grid fills up. . Primrose features a networked high score board with instant replay of the high scores, a comprehensive tutorial with animated examples, a colourblind mode, glowing, pulsating, retro graphics and synth-inspired sound effects. debian/links0000644000000000000000000000004611476410614010235 0ustar usr/games/Primrose usr/games/primrose debian/rules0000755000000000000000000000375012166205656010264 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+all %: dh $@ --parallel override_dh_auto_configure: chmod u+x tilePlacementGames/game1/configure cd tilePlacementGames/game1 && platformSelection=1 ./configure override_dh_auto_build: mkdir -p 256x256 128x128 64x64 32x32 convert -scale 256x256 tilePlacementGames/game1/gameSource/iPhone/largeIcon2.png 256x256/primrose.png cp -f tilePlacementGames/game1/build/macOSX/iconColor.png 128x128/primrose.png convert -background None -gravity center -extent 64x64 tilePlacementGames/game1/gameSource/iPhone/icon.png 64x64/primrose.png cp -f tilePlacementGames/game1/build/win32/icon.png 32x32/primrose.png convert 32x32/primrose.png 32x32/primrose.xpm $(MAKE) -C tilePlacementGames/game1/gameSource PLATFORM_LINK_FLAGS="-lGL -lSDL -lpthread $(LDFLAGS)" PLATFORM_COMPILE_FLAGS="$(CXXFLAGS) $(CPPFLAGS) -DETCDIR=\\\"/etc/primrose\\\" -DDATADIR=\\\"/usr/share/games/primrose/\\\"" override_dh_auto_clean: [ ! -f tilePlacementGames/game1/gameSource/Makefile ] || $(MAKE) -C tilePlacementGames/game1/gameSource clean rm -f tilePlacementGames/game1/gameSource/Makefile rm -f tilePlacementGames/game1/gameSource/Makefile.minorGems_dependencies rm -rf 256x256 128x128 64x64 32x32 override_dh_installchangelogs: dh_installchangelogs tilePlacementGames/game1/documentation/changeLog.txt V=6 P=Primrose p=primrose sfp=primrose/primrose-game get-orig-source: wget -c http://downloads.sourceforge.net/project/$(sfp)/v$(V)/$(P)_$(V)_UnixSource.tar.gz tar zxf $(P)_$(V)_UnixSource.tar.gz # Pre-built Windows libraries, unused rm $(P)_$(V)_UnixSource/tilePlacementGames/game1/build/win32/*.dll # non-free, unused rm -r $(P)_$(V)_UnixSource/minorGems/util/development/fortify rm $(P)_$(V)_UnixSource/minorGems/graphics/openGL/tga.* rm $(P)_$(V)_UnixSource/minorGems/graphics/openGL/texture.* mv $(P)_$(V)_UnixSource $(p)-$(V)+dfsg1.orig tar zcf ../$(p)_$(V)+dfsg1.orig.tar.gz $(p)-$(V)+dfsg1.orig rm -r $(P)_$(V)_UnixSource.tar.gz $(p)-$(V)+dfsg1.orig debian/compat0000644000000000000000000000000212166201116010360 0ustar 9