On 2021/10/17 01:40, Omar Polo wrote:
> @@ -24,7 +24,8 @@ MODULES=    devel/scons \
>  MODSCONS_FLAGS=      CPPPATH="${LOCALBASE}/include ${X11BASE}/include" \
>               opengl=1
>  
> -BUILD_DEPENDS=       devel/sdl-image
> +BUILD_DEPENDS=       devel/sdl-image \
> +             graphics/optipng
>  LIB_DEPENDS= devel/sdl \
>               multimedia/libtheora \
>               audio/libvorbis \
> @@ -34,6 +35,12 @@ LIB_DEPENDS=       devel/sdl \
>  NO_TEST=     Yes
>  
>  DATA_DIR=    campaigns graphics intro languages maps patches scripts sounds 
> units
> +
> +post-extract:
> +.for f in maps/antarticum.map/terrain.png graphics/ui/ui_*.png \
> +             units/radar/radar*.png units/tree*/tree*.png
> +     optipng -force -fix ${WRKSRC}/${f}
> +.endfor
>  
>  pre-configure:
>       @${SUBST_CMD} ${WRKSRC}/SConstruct \

For extract stages, please stick to just things which unpack files
rather than doing any processsing (especially any which requires
dependenxies beyond common archive tools), it makes it harder to unpack
the ports tree (e.g. to search source, which is done with NO_DEPENDS
set). Running it from pre-configure would be ok.

Reply via email to