pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: games/enigma broken
On Sun, 22 Sep 2019, John D. Baker wrote:
> On Sun, 22 Sep 2019, John D. Baker wrote:
>
> > On Sun, 22 Sep 2019, John D. Baker wrote:
> >
> > > Perhaps there is a newer distfile which doesn't have corrupt graphic
> > > elements?
>
> Playing with 'pngfix', I was able to repair the corrupt PNG files and
> the game runs properly now with no error indications.
>
> Perhaps this can be done to the mirrored distfiles, or worked into
> the post-extract process?
The following patch accomplishes this:
+Index: games/enigma/Makefile
+===================================================================
+RCS file: /cvsroot/pkgsrc/games/enigma/Makefile,v
+retrieving revision 1.36
+diff -u -p -r1.36 Makefile
+--- games/enigma/Makefile 12 Mar 2018 20:51:30 -0000 1.36
++++ games/enigma/Makefile 22 Sep 2019 22:32:14 -0000
+@@ -27,6 +27,10 @@ BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.
+ BUILDLINK_API_DEPENDS.png+= png>=1.2.7
+ BUILDLINK_API_DEPENDS.xerces-c+= xerces-c>=2.7.0
+
++post-extract:
++ @echo "==> Fixing broken PNG files..."
++ @pngfix ${WRKSRC}/data/gfx*/*.png | awk '$$2 != "OK" {print $$NF}' | sh -c 'while read f ; do pngfix -q --out=$$f.fix $$f ; rm $$f ; mv $$f.fix $$f ; done'
++
+ .include "../../audio/SDL_mixer/buildlink3.mk"
+ .include "../../devel/SDL/buildlink3.mk"
+ .include "../../devel/SDL_ttf/buildlink3.mk"
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index