[MacPorts] #42730: pngquant @2.1.0 Portfile
#42730: pngquant @2.1.0 Portfile -------------------------+-------------------------------- Reporter: lpancescu@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: haspatch | Port: pngquant -------------------------+-------------------------------- Could you add an official port for pngquant, please? It uses advanced algorithms to create lossy, indexed PNG files, almost identical to the original, but typically 50-70% smaller (see http://pngquant.org). I managed to create a Portfile after skimming through the MacPorts documentation. I doubt it's up to the MacPorts standards, but it works for me on OS X 10.9.2, so maybe it's okay as a starting point. -- Ticket URL: <https://trac.macports.org/ticket/42730> MacPorts <http://www.macports.org/> Ports system for OS X
#42730: pngquant @2.1.0 Portfile --------------------------+-------------------------- Reporter: lpancescu@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: haspatch Port: pngquant | --------------------------+-------------------------- Changes (by ryandesign@…): * status: new => assigned * owner: macports-tickets@… => ryandesign@… Comment: Thanks, this is a good start. -- Ticket URL: <https://trac.macports.org/ticket/42730#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42730: pngquant @2.1.0 Portfile --------------------------+-------------------------- Reporter: lpancescu@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: haspatch Port: pngquant | --------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Committed in r117656 with these changes: * adjust whitespace to conform to modeline (indents at multiples of 4 spaces) * use github portgroup * download distfile from homepage, since that's where the download link takes you, and because those are bz2 files, which are smaller than the gz files github offers * patch Makefile to remove incorrect assumptions about where it should look for dependencies * ensure we're UsingTheRightCompiler and `-arch` flags * add universal variant and set `ARFLAGS` in order to add the `s` flag which makes the universal build succeed; equivalently, we could have patched lib/Makefile to run `ranlib` after running `ar` * use destroot.env instead of destroot.post_args, thereby eliminating the need to specify destroot.destdir again * all build environment variables needed to be copied to the destroot, so I used `eval` to accomplish that * add dependency on zlib, since the Makefile does use the flag `-lz` * [PortfileRecipes#doc install documentation files] -- Ticket URL: <https://trac.macports.org/ticket/42730#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts