On Wed, Apr 27, 2016 at 02:51:42PM +0200, Dmitrij D. Czarkoff wrote: > Hi! > > Imv is a minimalist command-line image viewer with support for over 30 > image formats including Adobe Photoshop .psd files, animated GIFs and > various raw formats.
Compiles and runs fine on amd64. Tested it lightly, no issues so far, will keep it installed as it works nicely in tiling WMs. I noticed you uses lang/clang in MODULES which will prevent it from being built notably on Loongson as this platform currently doesn't have Clang. Unless I overlooked something, I believe we could compile it using base GCC just by tweaking a few flags as it appears to compile fine in C99 mode. Here is a patch for testing : --- Makefile.orig Wed Apr 27 14:33:00 2016 +++ Makefile Fri Apr 29 17:33:41 2016 @@ -13,8 +13,6 @@ WANTLIB += SDL2 SDL2_ttf c fontconfig freeimage pthread -MODULES = lang/clang -MODCLANG_ARCHS = * LIB_DEPENDS = devel/sdl2 \ devel/sdl2-ttf \ graphics/freeimage @@ -27,10 +25,15 @@ .if !empty(DEBUG) ALL_TARGET = debug +CFLAGS += -fPIC .else ALL_TARGET = ${WRKDIR}/build-${ARCH}/imv .endif TEST_TARGET = check + +do-patch: + @sed -i 's/gnu11/c99/' ${WRKSRC}/Makefile + @sed -i 's/Wpedantic/pedantic/' ${WRKSRC}/Makefile .include <bsd.port.mk>