Re: [UPDATE] emulators/virtualjaguar to 2.1.3
ok rsadowski@ Cheers, Rafael On Fri Oct 20, 2017 at 09:40:53PM +0200, Frederic Cambus wrote: > On Sun, Oct 08, 2017 at 11:59:13AM +0200, Rafael Sadowski wrote: > > > first I ran into the following issue: > > > > -SHA256 (virtualjaguar-2.1.3.tar.bz2) = > > WyyPztHfVkYko33R0CCYlHcFkdaXY4c8/rcUQ1n+Xw4= > > -SIZE (virtualjaguar-2.1.3.tar.bz2) = 2921212 > > +SHA256 (virtualjaguar-2.1.3.tar.bz2) = > > E9DDh6ZZH9I8nOzYQxg0ytRVIjdJRee8zAJ286cgHOo= > > +SIZE (virtualjaguar-2.1.3.tar.bz2) = 292 > > Indeed, upstream rerolled tarball as they got the release version wrong. > > > and then into: > > > > -- > > |$OpenBSD: patch-Makefile,v 1.1 2017/03/14 10:43:23 fcambus Exp $ > > |Index: Makefile > > |--- Makefile.orig > > |+++ Makefile > > -- > > Patching file Makefile using Plan A... > > Hunk #1 succeeded at 24. > > Hunk #2 failed at 56. > > Hunk #3 succeeded at 65. > > 1 out of 3 hunks failed--saving rejects to Makefile.rej > > done > > ***> patch-Makefile did not apply cleanly > > Consequently, there is no need to patch this in Makefile anymore :) > > Here is an updated diff: > > Index: Makefile > === > RCS file: /cvs/ports/emulators/virtualjaguar/Makefile,v > retrieving revision 1.8 > diff -u -p -r1.8 Makefile > --- Makefile 26 Jul 2017 22:45:20 - 1.8 > +++ Makefile 19 Oct 2017 20:55:37 - > @@ -2,8 +2,8 @@ > > COMMENT =Atari Jaguar emulator > > -DISTNAME = virtualjaguar-2.1.2 > -REVISION = 1 > +V = 2.1.3 > +DISTNAME = virtualjaguar-${V} > EXTRACT_SUFX = .tar.bz2 > > CATEGORIES = emulators games > @@ -15,16 +15,17 @@ MAINTAINER = Frederic Cambus# GPLv3+ > PERMIT_PACKAGE_CDROM = Yes > > -WANTLIB += GL ICE QtGui QtOpenGL SDL SM X11 Xext Xi Xinerama Xrender > -WANTLIB += c fontconfig freetype m pthread ${COMPILER_LIBCXX} z > +WANTLIB += ${COMPILER_LIBCXX} GL Qt5Core Qt5Gui Qt5OpenGL Qt5Widgets > +WANTLIB += SDL c cdio iconv m z > > MASTER_SITES=https://icculus.org/virtualjaguar/tarballs/ > > -MODULES =x11/qt4 > +MODULES =x11/qt5 > > -LIB_DEPENDS =devel/sdl > +LIB_DEPENDS =audio/libcdio \ > + devel/sdl > > -WRKDIST =${WRKDIR}/virtualjaguar > +WRKDIST =${WRKDIR}/linux-${V} > > USE_GMAKE = Yes > MAKE_FLAGS = CC="${CC}" \ > @@ -37,9 +38,6 @@ MAKE_FLAGS =CC="${CC}" \ > MAKE_ENV = CXXFLAGS="${CXXFLAGS}" > > NO_TEST =Yes > - > -pre-configure: > - @ln -s ${LOCALBASE}/bin/qmake4 ${WRKDIR}/bin/qmake > > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/virtualjaguar ${PREFIX}/bin > Index: distinfo > === > RCS file: /cvs/ports/emulators/virtualjaguar/distinfo,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 distinfo > --- distinfo 1 Aug 2016 00:16:53 - 1.1.1.1 > +++ distinfo 19 Oct 2017 20:55:37 - > @@ -1,2 +1,2 @@ > -SHA256 (virtualjaguar-2.1.2.tar.bz2) = > BNrFGYV++euiTibBq3xz2LlFmcYTqSJZCCYiiWYXU2g= > -SIZE (virtualjaguar-2.1.2.tar.bz2) = 2917041 > +SHA256 (virtualjaguar-2.1.3.tar.bz2) = > E9DDh6ZZH9I8nOzYQxg0ytRVIjdJRee8zAJ286cgHOo= > +SIZE (virtualjaguar-2.1.3.tar.bz2) = 292 > Index: patches/patch-Makefile > === > RCS file: /cvs/ports/emulators/virtualjaguar/patches/patch-Makefile,v > retrieving revision 1.1 > diff -u -p -r1.1 patch-Makefile > --- patches/patch-Makefile14 Mar 2017 10:43:23 - 1.1 > +++ patches/patch-Makefile19 Oct 2017 20:55:37 - > @@ -1,6 +1,7 @@ > $OpenBSD: patch-Makefile,v 1.1 2017/03/14 10:43:23 fcambus Exp $ > Makefile.origFri Oct 10 15:54:48 2014 > -+++ Makefile Mon Mar 13 17:25:21 2017 > +Index: Makefile > +--- Makefile.orig > Makefile > @@ -24,8 +24,8 @@ QMAKE_EXTRA := -spec macx-g++ > endif > > @@ -12,3 +13,12 @@ $OpenBSD: patch-Makefile,v 1.1 2017/03/1 > > # Add CPPFLAGS > CFLAGS += $(CPPFLAGS) > +@@ -65,7 +65,7 @@ virtualjaguar: sources libs makefile-qt > + > + makefile-qt: virtualjaguar.pro > + @echo -e "\033[01;33m***\033[00;32m Creating Qt makefile...\033[00m" > +-$(Q)$(CROSS)qmake -qt=5 $(QMAKE_EXTRA) virtualjaguar.pro -o makefile-qt > ++$(Q)$(CROSS)qmake-qt5 $(QMAKE_EXTRA) virtualjaguar.pro -o makefile-qt > + > + libs: obj/libm68k.a obj/libjaguarcore.a > + @echo -e "\033[01;33m***\033[00;32m Libraries successfully > made.\033[00m" > Index: patches/patch-src_cdintf_cpp > === > RCS file: patches/patch-src_cdintf_cpp > diff -N patches/patch-src_cdintf_cpp > --- /dev/null 1 Jan 1970 00:00:00 - > +++ patches/patch-src_cdintf_cpp 19 Oct 2017 20:55:37 - > @@ -0,0 +1,23 @@ > +$OpenBSD$ > + > +Index: src/cdintf.cpp > +--- src/cdintf.cpp.orig > src/cdintf.cpp > +@@ -36,7 +36,7 @@ > + > + > + #ifdef
Re: [UPDATE] emulators/virtualjaguar to 2.1.3
On Sun, Oct 08, 2017 at 11:59:13AM +0200, Rafael Sadowski wrote: > first I ran into the following issue: > > -SHA256 (virtualjaguar-2.1.3.tar.bz2) = > WyyPztHfVkYko33R0CCYlHcFkdaXY4c8/rcUQ1n+Xw4= > -SIZE (virtualjaguar-2.1.3.tar.bz2) = 2921212 > +SHA256 (virtualjaguar-2.1.3.tar.bz2) = > E9DDh6ZZH9I8nOzYQxg0ytRVIjdJRee8zAJ286cgHOo= > +SIZE (virtualjaguar-2.1.3.tar.bz2) = 292 Indeed, upstream rerolled tarball as they got the release version wrong. > and then into: > > -- > |$OpenBSD: patch-Makefile,v 1.1 2017/03/14 10:43:23 fcambus Exp $ > |Index: Makefile > |--- Makefile.orig > |+++ Makefile > -- > Patching file Makefile using Plan A... > Hunk #1 succeeded at 24. > Hunk #2 failed at 56. > Hunk #3 succeeded at 65. > 1 out of 3 hunks failed--saving rejects to Makefile.rej > done > ***> patch-Makefile did not apply cleanly Consequently, there is no need to patch this in Makefile anymore :) Here is an updated diff: Index: Makefile === RCS file: /cvs/ports/emulators/virtualjaguar/Makefile,v retrieving revision 1.8 diff -u -p -r1.8 Makefile --- Makefile26 Jul 2017 22:45:20 - 1.8 +++ Makefile19 Oct 2017 20:55:37 - @@ -2,8 +2,8 @@ COMMENT = Atari Jaguar emulator -DISTNAME = virtualjaguar-2.1.2 -REVISION = 1 +V =2.1.3 +DISTNAME = virtualjaguar-${V} EXTRACT_SUFX = .tar.bz2 CATEGORIES = emulators games @@ -15,16 +15,17 @@ MAINTAINER =Frederic Cambus
Re: [UPDATE] emulators/virtualjaguar to 2.1.3
Hi Frederic, first I ran into the following issue: -SHA256 (virtualjaguar-2.1.3.tar.bz2) = WyyPztHfVkYko33R0CCYlHcFkdaXY4c8/rcUQ1n+Xw4= -SIZE (virtualjaguar-2.1.3.tar.bz2) = 2921212 +SHA256 (virtualjaguar-2.1.3.tar.bz2) = E9DDh6ZZH9I8nOzYQxg0ytRVIjdJRee8zAJ286cgHOo= +SIZE (virtualjaguar-2.1.3.tar.bz2) = 292 and then into: -- |$OpenBSD: patch-Makefile,v 1.1 2017/03/14 10:43:23 fcambus Exp $ |Index: Makefile |--- Makefile.orig |+++ Makefile -- Patching file Makefile using Plan A... Hunk #1 succeeded at 24. Hunk #2 failed at 56. Hunk #3 succeeded at 65. 1 out of 3 hunks failed--saving rejects to Makefile.rej done ***> patch-Makefile did not apply cleanly ===> Ignoring patchfile patch-Makefile.orig ===> Applying OpenBSD patch patch-jaguarcore_mak Hmm... Looks like a unified diff to me... The text leading up to this was: -- |$OpenBSD: patch-jaguarcore_mak,v 1.1.1.1 2016/08/01 00:16:53 awolk Exp $ |--- jaguarcore.mak.origSat Jun 4 17:22:32 2016 |+++ jaguarcore.mak Sat Jun 4 17:22:42 2016 -- Patching file jaguarcore.mak using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-src_cdintf_cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -- |$OpenBSD$ | |Index: src/cdintf.cpp |--- src/cdintf.cpp.orig |+++ src/cdintf.cpp -- Patching file src/cdintf.cpp using Plan A... Hunk #1 succeeded at 36. Hunk #2 succeeded at 54. done ===> Ignoring patchfile patch-src_cdintf_cpp.orig ===> Applying OpenBSD patch patch-virtualjaguar_pro Hmm... Looks like a unified diff to me... The text leading up to this was: -- |$OpenBSD: patch-virtualjaguar_pro,v 1.1 2017/03/14 10:43:23 fcambus Exp $ |Index: virtualjaguar.pro |--- virtualjaguar.pro.orig |+++ virtualjaguar.pro -- Patching file virtualjaguar.pro using Plan A... Hunk #1 succeeded at 53. done ===> Ignoring patchfile patch-virtualjaguar_pro.orig *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2635 '/usr/ports/pobj/virtualjaguar-2.1.3/.patch_done': @if cd /usr/ports/mystuff...) *** Error 1 in /usr/ports/mystuff/openbsd-wip/emulators/virtualjaguar (/usr/ports/infrastructure/mk/bsd.port.mk:2425 'patch') On Thu Sep 21, 2017 at 07:34:46PM +, Frederic Cambus wrote: > Hi ports@, > > Here is a diff to update virtualjaguar to 2.1.3. > > Notable changes: > > - GUI now uses Qt 5 > - Add new LIB_DEPENDS on audio/libcdio > > Comments? OK? > > Index: Makefile > === > RCS file: /cvs/ports/emulators/virtualjaguar/Makefile,v > retrieving revision 1.8 > diff -u -p -r1.8 Makefile > --- Makefile 26 Jul 2017 22:45:20 - 1.8 > +++ Makefile 19 Sep 2017 09:40:43 - > @@ -2,8 +2,8 @@ > > COMMENT =Atari Jaguar emulator > > -DISTNAME = virtualjaguar-2.1.2 > -REVISION = 1 > +V = 2.1.3 > +DISTNAME = virtualjaguar-${V} > EXTRACT_SUFX = .tar.bz2 > > CATEGORIES = emulators games > @@ -15,16 +15,17 @@ MAINTAINER = Frederic Cambus# GPLv3+ > PERMIT_PACKAGE_CDROM = Yes > > -WANTLIB += GL ICE QtGui QtOpenGL SDL SM X11 Xext Xi Xinerama Xrender > -WANTLIB += c fontconfig freetype m pthread ${COMPILER_LIBCXX} z > +WANTLIB += ${COMPILER_LIBCXX} GL Qt5Core Qt5Gui Qt5OpenGL Qt5Widgets > +WANTLIB += SDL c cdio iconv m z > > MASTER_SITES=https://icculus.org/virtualjaguar/tarballs/ > > -MODULES =x11/qt4 > +MODULES =x11/qt5 > > -LIB_DEPENDS =devel/sdl > +LIB_DEPENDS =audio/libcdio \ > + devel/sdl > > -WRKDIST =${WRKDIR}/virtualjaguar > +WRKDIST =${WRKDIR}/linux-${V} > > USE_GMAKE = Yes > MAKE_FLAGS = CC="${CC}" \ > @@ -37,9 +38,6 @@ MAKE_FLAGS =CC="${CC}" \ > MAKE_ENV = CXXFLAGS="${CXXFLAGS}" > > NO_TEST =Yes > - > -pre-configure: > - @ln -s ${LOCALBASE}/bin/qmake4 ${WRKDIR}/bin/qmake > > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/virtualjaguar ${PREFIX}/bin > Index: distinfo > === > RCS file: /cvs/ports/emulators/virtualjaguar/distinfo,v > retrieving revision 1.1.1.1 > diff -u -p -r1.1.1.1 distinfo > --- distinfo 1 Aug 2016 00:16:53 - 1.1.1.1 > +++ distinfo 19 Sep 2017 09:40:43 - > @@ -1,2 +1,2 @@ > -SHA256 (virtualjaguar-2.1.2.tar.bz2) = > BNrFGYV++euiTibBq3xz2LlFmcYTqSJZCCYiiWYXU2g= > -SIZE (virtualjaguar-2.1.2.tar.bz2) = 2917041 > +SHA256 (virtualjaguar-2.1.3.tar.bz2) = > WyyPztHfVkYko33R0CCYlHcFkdaXY4c8/rcUQ1n+Xw4= > +SIZE (virtualjaguar-2.1.3.tar.bz2) = 2921212 > Index: patches/patch-Makefile > === > RCS file: /cvs/ports/emulators/virtualjaguar/patches/patch-Makefile,v > retrieving revision 1.1 > diff -u -p -r1.1 patch-Makefile >
Re: [UPDATE] emulators/virtualjaguar to 2.1.3
On Thu, Sep 21, 2017 at 09:34:46PM +0200, Frederic Cambus wrote: > Here is a diff to update virtualjaguar to 2.1.3. > > Notable changes: > > - GUI now uses Qt 5 > - Add new LIB_DEPENDS on audio/libcdio > > Comments? OK? Ping. Now that the ports tree is unlocked, anyone willing to test this?
[UPDATE] emulators/virtualjaguar to 2.1.3
Hi ports@, Here is a diff to update virtualjaguar to 2.1.3. Notable changes: - GUI now uses Qt 5 - Add new LIB_DEPENDS on audio/libcdio Comments? OK? Index: Makefile === RCS file: /cvs/ports/emulators/virtualjaguar/Makefile,v retrieving revision 1.8 diff -u -p -r1.8 Makefile --- Makefile26 Jul 2017 22:45:20 - 1.8 +++ Makefile19 Sep 2017 09:40:43 - @@ -2,8 +2,8 @@ COMMENT = Atari Jaguar emulator -DISTNAME = virtualjaguar-2.1.2 -REVISION = 1 +V =2.1.3 +DISTNAME = virtualjaguar-${V} EXTRACT_SUFX = .tar.bz2 CATEGORIES = emulators games @@ -15,16 +15,17 @@ MAINTAINER =Frederic Cambussrc/version.h + # @echo "#define VJ_RELEASE_SUBVERSION \"Final\"" >> src/version.h + # @echo "#define VJ_REMOVE_DEV_CODE" >> src/version.h +- @echo "#define VJ_RELEASE_VERSION \"GIT `git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`\"" > src/version.h +- @echo "#define VJ_RELEASE_SUBVERSION \"2.1.4 Prerelease\"" >> src/version.h ++ @echo "#define VJ_RELEASE_VERSION \"v2.1.3\"" > src/version.h ++ @echo "#define VJ_RELEASE_SUBVERSION \"Final\"" >> src/version.h + + virtualjaguar: sources libs makefile-qt + @echo -e "\033[01;33m***\033[00;32m Making Virtual Jaguar GUI...\033[00m" +@@ -65,7 +65,7 @@ virtualjaguar: sources libs makefile-qt + + makefile-qt: virtualjaguar.pro + @echo -e "\033[01;33m***\033[00;32m Creating Qt makefile...\033[00m" +- $(Q)$(CROSS)qmake -qt=5 $(QMAKE_EXTRA) virtualjaguar.pro -o makefile-qt ++ $(Q)$(CROSS)qmake-qt5 $(QMAKE_EXTRA) virtualjaguar.pro -o makefile-qt + + libs: obj/libm68k.a obj/libjaguarcore.a + @echo -e "\033[01;33m***\033[00;32m Libraries successfully made.\033[00m" Index: patches/patch-src_cdintf_cpp === RCS file: patches/patch-src_cdintf_cpp diff -N patches/patch-src_cdintf_cpp --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-src_cdintf_cpp19 Sep 2017 09:40:43 - @@ -0,0 +1,23 @@ +$OpenBSD$ + +Index: src/cdintf.cpp +--- src/cdintf.cpp.orig src/cdintf.cpp +@@ -36,7 +36,7 @@ + + + #ifdef HAVE_LIB_CDIO +-static CdIo_t * cdHandle = NULL; ++static CdIo_t * cdHandle = (CdIo_t *)NULL; + #endif + + // Exported vars +@@ -54,7 +54,7 @@ bool CDIntfInit(void) + // fails, the emulated CD-ROM will not use any of the other CDIntf* + // functions. Those functions all operate under the assumption that the open + // call was successful. +- cdHandle = cdio_open(NULL, DRIVER_DEVICE); ++ cdHandle = cdio_open((const char *)NULL,