*ping*
On Thu, Apr 26, 2018 at 04:50:38PM -0700, Thomas Frohwein wrote:
> Hi,
>
> Here is a patch that changes the distfiles source to a stable zip of the
> distfiles. Those stable files only come packaged with the rest of FNA. The
> download is not large and I think the benefit of having stable distfiles
> outweighs pulling in a larger set. Upstream doesn't want to provide separate
> release package for libtheorafile - we are likely the only platform that uses
> it without the rest of the FNA package (which is a game developer-facing tool
> to turn XNA games into somewhat platform-independent games).
>
> I bumped the major because of a change to an enum in the commit from March
> 22nd.
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/multimedia/libtheorafile/Makefile,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 Makefile
> --- Makefile 22 Feb 2018 07:54:51 -0000 1.1.1.1
> +++ Makefile 26 Apr 2018 23:34:50 -0000
> @@ -2,18 +2,17 @@
>
> COMMENT = Ogg Theora Video Decoder Library
>
> -V = 20170905
> +# stable release binary packages are only available as part of FNA
> +# Note that not every update of FNA releases necessarily updates
> libtheorafile
> +V = 20180401
> +FNA = 18.04
> +DISTNAME = libtheorafile-${V}{FNA-${FNA:S/.//}}
> +PKGNAME = libtheorafile-${V}
>
> -DISTNAME = libtheorafile-${V}
> -
> -GH_ACCOUNT = FNA-XNA
> -GH_PROJECT = Theorafile
> -GH_COMMIT = eb65cf7d4881dd3ca0bfd71e8ec2c54c71ffe4d2
> -
> -SHARED_LIBS = theorafile 0.0 # commit from 2017-09-05
> +SHARED_LIBS = theorafile 1.0 # from FNA 18.04
>
> CATEGORIES = multimedia
> -
> +HOMEPAGE = https://github.com/FNA-XNA/Theorafile
> MAINTAINER = Thomas Frohwein <[email protected]>
>
> # zlib
> @@ -21,6 +20,9 @@ PERMIT_PACKAGE_CDROM = Yes
>
> WANTLIB += ogg theoradec vorbis
>
> +MASTER_SITES = https://github.com/FNA-XNA/FNA/releases/download/${FNA}/
> +EXTRACT_SUFX = .zip
> +
> LIB_DEPENDS = audio/libogg \
> audio/libvorbis \
> multimedia/libtheora
> @@ -31,6 +33,8 @@ MAKE_FLAGS = TARGET=so.${LIBtheorafile_V
> # Comes with target 'test' to build binary 'theorafile-test' that can play an
> # Ogg Theora (.ogv) file. Doesn't come with an example video file, however.
> NO_TEST = Yes
> +
> +WRKDIST = ${WRKDIR}/FNA/lib/Theorafile
>
> do-install:
> ${INSTALL_DATA} ${WRKSRC}/theorafile.h ${PREFIX}/include
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/multimedia/libtheorafile/distinfo,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 distinfo
> --- distinfo 22 Feb 2018 07:54:51 -0000 1.1.1.1
> +++ distinfo 26 Apr 2018 23:34:50 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (libtheorafile-20170905-eb65cf7d.tar.gz) =
> sLCLAUNFUgPBNrTB2XLrl/dXWLVzviiHnK4hJ0AedJw=
> -SIZE (libtheorafile-20170905-eb65cf7d.tar.gz) = 13151
> +SHA256 (libtheorafile-20180401.zip) =
> BK/n2us0pUmniHojBxlvRsGXv8vC4+bLPw1vGj1CsKI=
> +SIZE (libtheorafile-20180401.zip) = 652380
> Index: patches/patch-Makefile
> ===================================================================
> RCS file: /cvs/ports/multimedia/libtheorafile/patches/patch-Makefile,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 patch-Makefile
> --- patches/patch-Makefile 22 Feb 2018 07:54:51 -0000 1.1.1.1
> +++ patches/patch-Makefile 26 Apr 2018 23:34:50 -0000
> @@ -37,5 +37,5 @@ Index: Makefile
> rm -f libtheorafile.$(TARGET)
>
> test:
> -- $(CC) -g sdl2test/sdl2test.c theorafile.c -I. `sdl2-config --cflags
> --libs` $(DEPS) -Wall
> +- $(CC) -g -o theorafile-test sdl2test/sdl2test.c theorafile.c -I.
> `sdl2-config --cflags --libs` $(DEPS) -Wall
> + $(CC) ${CFLAGS} ${LDFLAGS} -g -o theorafile-test sdl2test/sdl2test.c
> theorafile.c -I. -I${LOCALBASE}/include `sdl2-config --cflags --libs`
> -L${LOCALBASE}/lib $(DEPS) -Wall
>