[MacPorts] #38240: Port request: Tiled
#38240: Port request: Tiled ---------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: tiled ---------------------+-------------------------------- Tiled is an open-source, Qt-based map editor for 2D video games, using the custom .tmx map format. Links: Homepage: http://www.mapeditor.org SourceForge: http://sourceforge.net/projects/tiled/ GitHub: https://github.com/bjorn/tiled I had started writing a portfile for it myself, but I gave up on it because I find the Qt portgroup too difficult. I suppose I can paste what I have so far though: {{{ # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c -basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup qt4 1.0 name tiled version 0.9.0 revision 0 categories devel games aqua platforms darwin license {BSD GPL-2 LGPLv2} maintainers nomaintainer description ${name} is a general purpose tile map editor, built to be flexible and easy to use. long_description \ ${description} In addition to its own map format, Tiled supports read/write plugins for using it with \ proprietary map formats or formats used by other editors. homepage http://www.mapeditor.org # sourceforge project name is different from port name, so not using sourceforge fetch group master_sites http://sourceforge.net/projects/tiled/files/tiled- qt/${version}/ # Have to specify the .tar.gz dist because otherwise it might grab the .dmg binary # (note: haven't actually tested this; just speculating) distname ${name}-qt-${version}.tar.gz checksums md5 e2e21a54ff17e34b49b8a330cc8b657e \ sha1 389c846bf81adf411cb004329028924432b4b2cd \ rmd160 3faf36f22187b82943640bfb833d14c617487c01 \ sha256 ffc8831be72eede7a2fca64909560124452370457214d811d6c7030e057a1a33 }}} (I did'''n't''' make this an attachment because it's incomplete and I do'''n't''' want anyone to try using it as an actual portfile as is) -- Ticket URL: <https://trac.macports.org/ticket/38240> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: tiled | ----------------------+-------------------------------- Comment (by ryandesign@…): Replying to [ticket:38240 egall@…]:
{{{ license {BSD GPL-2 LGPLv2} }}}
The separator between license name and version should be "-" not "v".
{{{ # sourceforge project name is different from port name, so not using sourceforge fetch group master_sites http://sourceforge.net/projects/tiled/files/tiled- qt/${version}/ }}}
It looks the same. If it isn't, you use "sourceforce:projectname". Better yet, use the complete path within SourceForge as explained in wiki:howto/AvoidRedirects.
{{{ # Have to specify the .tar.gz dist because otherwise it might grab the .dmg binary # (note: haven't actually tested this; just speculating) distname ${name}-qt-${version}.tar.gz }}}
`distname` must be without suffix. To construct `distfiles`, `extract.suffix` is appended to each `distname`. There isn't any ambiguity about what MacPorts will do; it's quite straightforward.
(I did'''n't''' make this an attachment because it's incomplete and I do'''n't''' want anyone to try using it as an actual portfile as is)
If you could let us know what problems you encountered that might help us finish the port. -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: tiled | ----------------------+-------------------------------- Comment (by egall@…): Replying to [comment:1 ryandesign@…]:
Replying to [ticket:38240 egall@…]:
(I did'''n't''' make this an attachment because it's incomplete and I do'''n't''' want anyone to try using it as an actual portfile as is)
If you could let us know what problems you encountered that might help us finish the port.
Well I was using the portfile I wrote for Valkyrie in #38090 as a template, and for that I had to use all sorts of dirty hacks just to get `qmake` to behave, so I didn't really want to go through all that again here... -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: tiled | ----------------------+-------------------------------- Comment (by ryandesign@…): Ah yes, this software configures using qmake. Yes unfortunately qmake seems to suck quite badly, or at least make it very difficult to be told how to use the archs and compilers we want it to, hence lots of jumping through hoops. Maybe a portgroup could alleviate some of the tedium. Someone who understands something about qmake would have to lead that effort. -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: tiled | ----------------------+-------------------------------- Comment (by ryandesign@…): I attached a slightly improved portfile. It builds and installs. It doesn't run. Several outstanding problems are pointed out in the comments. -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: tiled | ----------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * status: new => closed * resolution: => fixed Comment: Fixed and committed in r103590. (I just had to rip out all their Mac- specific packaging ideas which didn't seem ideal within the context of MacPorts.) -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: tiled | ----------------------+-------------------------------- Comment (by egall@…): Wow, that's a lot of patches! Thanks for all your work so far on getting this port added! -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: tiled | ----------------------+-------------------------------- Comment (by ryandesign@…): Yes but they're all patching the same thing. The developers were trying to be clever and put the libtiled library inside the tiled application bundle. This is desirable for standalone drag-and-drop installs, but that's not what MacPorts is, and users who want that can use the dylibbundler program. And it didn't quite make sense either, since they actually install three applications, but only the main tiled application contained the library; the other two apps were trying to use the library inside the main one. I think one of the settings in the cmake portgroup was interacting badly with the way they were setting the install_name. And also the install process was managing to install two copies of the library: one in the application bundle, and one in ${prefix}/lib. I decided to just stick with the one in ${prefix}/lib. -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38240: Port request: Tiled ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: request | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: tiled | ----------------------+-------------------------------- Comment (by egall@…): Now that there's a qmake portgroup as of r106912, this port can now use it -- Ticket URL: <https://trac.macports.org/ticket/38240#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts