Opened 16 years ago

Closed 6 years ago

#14354 closed submission (fixed)

enigma needs a port

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: nox@…, kurthindenburg (Kurt Hindenburg)
Port: enigma

Description

I want to make a portfile for the puzzle game enigma.

This requires a change to the xercesc port as described (with patch) in #14317.

I'm having some other trouble with the various SDL frameworks and will attach my portfile so far; maybe the maintainer of the SDL framework portfiles can help.

Attachments (2)

Portfile (1.2 KB) - added by ryandesign (Ryan Carsten Schmidt) 16 years ago.
in-progress portfile
enigma.diff (4.7 KB) - added by nox@… 14 years ago.

Download all attachments as: .zip

Change History (13)

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile added

in-progress portfile

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

I have these versions of the dependencies installed:

$ port installed gettext libpng libsdl libsdl-framework libsdl_image-framework libsdl_mixer-framework libsdl_ttf-framework xercesc zlib
The following ports are currently installed:
  gettext @0.17_3+universal (active)
  libpng @1.2.24_0+darwin_8+universal (active)
  libsdl @1.2.13_1+darwin_8 (active)
  libsdl-framework @1.2.13_0+universal (active)
  libsdl_image-framework @1.2.6_0 (active)
  libsdl_mixer-framework @1.2.8_0 (active)
  libsdl_ttf-framework @2.0.9_0 (active)
  xercesc @2.8.0_1+darwin_8 (active)
  zlib @1.2.3_1+universal (active)
$

The problem I get with the attached portfile (after applying the patch in #14317 to xercesc) is this:

$ sudo port install
--->  Fetching enigma
--->  Verifying checksum(s) for enigma
--->  Extracting enigma
--->  Configuring enigma
--->  Building enigma with target all macapp
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_games_enigma/work/enigma-1.01" && make all macapp " returned error 2
Command output: installing sv as ../etc/macfiles/Enigma.app/Contents/Resources/locale/sv/LC_MESSAGES/enigma.mo
installing ru as ../etc/macfiles/Enigma.app/Contents/Resources/locale/ru/LC_MESSAGES/enigma.mo
installing hu as ../etc/macfiles/Enigma.app/Contents/Resources/locale/hu/LC_MESSAGES/enigma.mo
installing pt as ../etc/macfiles/Enigma.app/Contents/Resources/locale/pt/LC_MESSAGES/enigma.mo
installing fi as ../etc/macfiles/Enigma.app/Contents/Resources/locale/fi/LC_MESSAGES/enigma.mo
/usr/bin/g++-4.0 -L/opt/local/lib -o enigma-fw actors.o client.o DOMErrorReporter.o DOMSchemaResolver.o d_models.o display.o editor.o enigma.o file.o file_zip.o floors.o game.o Inventory.o items.o laser.o LocalToXML.o lua.o lua-display.o lua-editor.o lua-enigma.o lua-global.o lua-ecl.o main.o netgame.o network.o nls.o objects.o oxyd.o ox_extra.o ox_magnum.o ox_oxyd1.o ox_peroxyd.o options.o player.o PreferenceManager.o PropertyManager.o server.o sound.o StateManager.o stones.o stones_simple.o stones_complex.o st_switches.o Utf8ToXML.o util.o utilXML.o video.o world.o XMLtoLocal.o XMLtoUtf8.o ErrorMenu.o GameMenu.o HelpMenu.o InfoMenu.o LevelInspector.o LevelMenu.o LevelPackComposer.o LevelPackConfig.o LevelPackMenu.o LevelPreviewCache.o LevelWidget.o LPGroupConfig.o MainMenu.o Menu.o MonospacedLabel.o OptionsMenu.o ScreenshotViewer.o SearchMenu.o TextField.o widgets.o Index.o RatingManager.o PersistentIndex.o Proxy.o ScoreManager.o VolatileIndex.o ../lib-src/enigma-core/libecl.a ../lib-src/lua/liblua.a ../lib-src/enet/libenet.a ../lib-src/oxydlib/liboxyd.a ../lib-src/zipios++/src/libzipios.a  `/opt/local/bin/sdl-config --prefix`/lib/libintl.a `/opt/local/bin/sdl-config --prefix`/lib/libxerces-c.a /usr/lib/libiconv.dylib -L`/opt/local/bin/sdl-config --prefix`/lib -lsdlmain -lz -framework SDL -framework SDL_image -framework SDL_mixer -framework Cocoa -framework OpenGL -framework SDL_ttf `/opt/local/bin/sdl-config --prefix`/lib/libpng.a 
/usr/bin/ld: warning can't open dynamic library: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL referenced from: /Library/Frameworks/SDL_mixer.framework/SDL_mixer (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: Undefined symbols:
_SDL_BuildAudioCVT referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_CloseAudio referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_ConvertAudio referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_FreeWAV referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_GetTicks referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_LoadWAV_RW referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_LockAudio referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_MixAudio referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_OpenAudio referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_PauseAudio referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_ReadLE32 referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_SetError referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_UnlockAudio referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_Error referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_RWFromFile referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_Delay referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_RWFromFP referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_ReadBE16 referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
_SDL_ReadBE32 referenced from /Library/Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
collect2: ld returned 1 exit status
make[1]: *** [enigma-fw-mosx] Error 1
make: *** [macapp] Error 2

Error: Status 1 encountered during processing.
$

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Type: enhancementrequest

comment:3 Changed 15 years ago by (none)

Milestone: Port Requests

Milestone Port Requests deleted

comment:4 Changed 14 years ago by nox@…

Cc: nox@… added

Cc Me!

Changed 14 years ago by nox@…

Attachment: enigma.diff added

comment:5 Changed 14 years ago by nox@…

I just attached some patch to your Portfile to make it work.

comment:6 Changed 14 years ago by jmroot (Joshua Root)

Port: enigma added
Type: requestsubmission
Version: 1.6.0

comment:7 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:8 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

trying to get 1.2 to build, I'm currently getting:

:info:build In file included from tolua.c:18:
:info:build /opt/local/include/lualib.h:15:1: error: unknown type name 'LUAMOD_API'
:info:build LUAMOD_API int (luaopen_base) (lua_State *L);

comment:9 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Probably not compatible with the current version of lua. We do have ports for older versions of lua as well.

comment:10 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

It works using lua51 - I notice lua51 doesn't conflict w/ lua or lua50 which is really needs.

comment:11 Changed 6 years ago by ken-cunningham-webuse

Resolution: fixed
Status: newclosed

In f1cbac7b9f343cf8affe3c931bf8f0aad0bb60ba/macports-ports:

enigma / enigma-devel: new port

puzzle game inspired by Oxyd and Rock'n'Roll
closes: #14354

Note: See TracTickets for help on using tickets.