diff options
author | tsutsui <tsutsui@pkgsrc.org> | 2017-01-15 11:11:01 +0000 |
---|---|---|
committer | tsutsui <tsutsui@pkgsrc.org> | 2017-01-15 11:11:01 +0000 |
commit | 97d0fa153491a4ba8f2ada560475f3f31f95704d (patch) | |
tree | da25efda91af218c2b4f8e6f5d9c9ab38207170c /emulators/PC6001VX | |
parent | 1e178c2deb468c1df01f357272c9bff4e8b00dc0 (diff) | |
download | pkgsrc-97d0fa153491a4ba8f2ada560475f3f31f95704d.tar.gz |
Import PC6001VX-2.30.0 as emulators/PC6001VX.
PC6001VX is cross platform PC-6001 emulator based on "PC6001V" for Windows.
Diffstat (limited to 'emulators/PC6001VX')
-rw-r--r-- | emulators/PC6001VX/DESCR | 1 | ||||
-rw-r--r-- | emulators/PC6001VX/Makefile | 33 | ||||
-rw-r--r-- | emulators/PC6001VX/PLIST | 3 | ||||
-rw-r--r-- | emulators/PC6001VX/distinfo | 7 | ||||
-rw-r--r-- | emulators/PC6001VX/patches/patch-PC6001VX.pro | 113 |
5 files changed, 157 insertions, 0 deletions
diff --git a/emulators/PC6001VX/DESCR b/emulators/PC6001VX/DESCR new file mode 100644 index 00000000000..ec017d4e51c --- /dev/null +++ b/emulators/PC6001VX/DESCR @@ -0,0 +1 @@ +PC6001VX is cross platform PC-6001 emulator based on "PC6001V" for Windows. diff --git a/emulators/PC6001VX/Makefile b/emulators/PC6001VX/Makefile new file mode 100644 index 00000000000..710cc8295e7 --- /dev/null +++ b/emulators/PC6001VX/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1 2017/01/15 11:11:01 tsutsui Exp $ + +VERSION= 2.30.0 +DISTNAME= PC6001VX_${VERSION}_src +PKGNAME= ${DISTNAME:S/_src//:S/_/-/} +CATEGORIES= emulators +MASTER_SITES= http://eighttails.up.seesaa.net/bin/ + +MAINTAINER= tsutsui@NetBSD.org +HOMEPAGE= http://eighttails.seesaa.net/ +COMMENT= Cross platform PC-6001 emulator +LICENSE= gnu-lgpl-v2.1 + +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ + +INSTALLATION_DIRS+= bin share/doc/PC6001VX + +do-configure: + cd ${WRKSRC} && ${QTDIR}/bin/qmake -o Makefile PC6001VX.pro + +do-install: + cd ${WRKSRC} && ${INSTALL_PROGRAM} ${WRKSRC}/PC6001VX \ + ${DESTDIR}${PREFIX}/bin + cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/README.html \ + ${DESTDIR}${PREFIX}/share/doc/PC6001VX + +.include "../../devel/SDL2/buildlink3.mk" +.include "../../x11/qt5-qtbase/buildlink3.mk" +.include "../../x11/qt5-qtmultimedia/buildlink3.mk" +.include "../../x11/qt5-qtx11extras/buildlink3.mk" +.include "../../multimedia/ffmpeg3/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/PC6001VX/PLIST b/emulators/PC6001VX/PLIST new file mode 100644 index 00000000000..c1b93e36afc --- /dev/null +++ b/emulators/PC6001VX/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2017/01/15 11:11:01 tsutsui Exp $ +bin/PC6001VX +share/doc/PC6001VX/README.html diff --git a/emulators/PC6001VX/distinfo b/emulators/PC6001VX/distinfo new file mode 100644 index 00000000000..c90d6ba7f08 --- /dev/null +++ b/emulators/PC6001VX/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2017/01/15 11:11:01 tsutsui Exp $ + +SHA1 (PC6001VX_2.30.0_src.tar.gz) = e6be8c003b5247ea57502f55974a332bf2ab0588 +RMD160 (PC6001VX_2.30.0_src.tar.gz) = 14ef360a479de18c88e8f2cba30ff9dec88869ed +SHA512 (PC6001VX_2.30.0_src.tar.gz) = 813a1c0d34263e91ace6c34ba5931e8cd8cc981385990eaece9c32ad8288ca1d4b94acbd62bad76add41f0941ad3410aaab5251977e010cf43403ab528f9d683 +Size (PC6001VX_2.30.0_src.tar.gz) = 1639761 bytes +SHA1 (patch-PC6001VX.pro) = b2cef4eb1457e2101d780db17ae9cc232180764d diff --git a/emulators/PC6001VX/patches/patch-PC6001VX.pro b/emulators/PC6001VX/patches/patch-PC6001VX.pro new file mode 100644 index 00000000000..467acd4bb9d --- /dev/null +++ b/emulators/PC6001VX/patches/patch-PC6001VX.pro @@ -0,0 +1,113 @@ +$NetBSD: patch-PC6001VX.pro,v 1.1 2017/01/15 11:11:01 tsutsui Exp $ + +- pull following updates (use pkg-config more properly) from the upstream: + https://github.com/eighttails/PC6001VX/commit/19367cdbaf4b624a64a962168767ae9fb1aef8c4 + https://github.com/eighttails/PC6001VX/commit/d4a7179f34a6eb454bce898815ab4f5ab767577b + https://github.com/eighttails/PC6001VX/commit/fd695b875266be21fe6be22a918be6ea7cdc7f53 + https://github.com/eighttails/PC6001VX/commit/179408dc05377ea3c19f504f382436874466efa5 + +--- PC6001VX.pro.orig 2016-08-27 12:19:26.000000000 +0000 ++++ PC6001VX.pro +@@ -4,7 +4,7 @@ + #
+ #-------------------------------------------------
+
+-QT += core gui widgets network
++QT += core gui widgets network
+
+ TARGET = PC6001VX
+ TEMPLATE = app
+@@ -16,24 +16,30 @@ + #Define for Qt dependent code
+ DEFINES += QTP6VX
+
+-#Disable joystick support.If joystick support is disabled, PC6001VX does not depend on SDL2.
++#Disable joystick support.If uncommented below, PC6001VX does not depend on SDL2.
+ #DEFINES += NOJOYSTICK
+
++#Disable joystick support.If uncommented below, PC6001VX does not depend on ffmpeg.
++#DEFINES += NOAVI
++
++#Disable debug features.For low performance machine.
++#DEFINES += NOMONITOR
++
+ #Other feature control flags.
+ #DEFINES += NOSINGLEAPP
+ #DEFINES += NOOPENGL
+ #DEFINES += NOSOUND
+-#DEFINES += NOAVI
+ #DEFINES += REPLAYDEBUG
+ #DEFINES += AUTOSUSPEND
+
+ debug:DEFINES += DEBUG
+ INCLUDEPATH += src/Qt src/Qt/qtsingleapplication
+
+-linux{
++#Configuration for UNIX variants
++unix {
+ #Configuration for Android
+-android{
+-DEFINES += NOSINGLEAPP NOJOYSTICK NOMONITOR NOAVI ALWAYSFULLSCREEN AUTOSUSPEND USE_QGLWIDGET
++android {
++DEFINES += NOSINGLEAPP NOJOYSTICK NOMONITOR NOAVI ALWAYSFULLSCREEN AUTOSUSPEND
+ #Set "ROM Path in target device" to "CUSTOM_ROM_PATH environment variable on build host"
+ debug:DEFINES += CUSTOMROMPATH=\\\"$$(CUSTOM_ROM_PATH)\\\"
+ }
+@@ -56,24 +62,24 @@ + #Configuration for X11(XCB)
+ DEFINES += USE_X11
+ QT += x11extras
+-LIBS += -lX11
++QMAKE_CXXFLAGS += $$system(pkg-config --cflags x11)
++LIBS += $$system(pkg-config --libs x11)
+ }
+ }
+
+ #Configuration for Windows
+-win32:{
++win32 {
+ DEFINES += WIN32
+ #On Windows, links libraries statically as long as possible.
+ QMAKE_LFLAGS += -static -lpthread
+ RC_ICONS += src/win32/PC6001VX.ico
++}
+
+ !contains(DEFINES, NOJOYSTICK) {
+-#On Windows, referes SDL_DIR environment variable to search SDL2
+-QMAKE_CXXFLAGS += -I$$(SDL_DIR)/include -Dmain=SDL_main
+-LIBS += -L$$(SDL_DIR)/lib -lmingw32 -lSDL2main -lSDL2 -mwindows -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion -luuid
++win32 {
++LIBS += -lmingw32 -lSDL2main -lSDL2 -lversion -mwindows
+ }
+-} else {
+-!contains(DEFINES, NOJOYSTICK) {
++unix {
+ QMAKE_CXXFLAGS += $$system(sdl2-config --cflags)
+ LIBS += $$system(sdl2-config --libs)
+ }
+@@ -82,16 +88,23 @@ + !contains(DEFINES, NOOPENGL) {
+ QT += opengl
+ }
++
+ !contains(DEFINES, NOSOUND) {
+ QT += multimedia
+ SOURCES += \
+ src/Qt/wavfile.cpp \
+ src/Qt/utils.cpp
+ }
++
+ !contains(DEFINES, NOAVI) {
+ DEFINES += __STDC_CONSTANT_MACROS __STDC_FORMAT_MACROS
+-LIBS += -lavformat -lavcodec -lswscale -lavutil -lswresample
+-win32:LIBS += -lvorbisenc -lvorbis -logg -lvpx
++win32 {
++LIBS += -lavformat -lavcodec -lswscale -lavutil -lswresample -lvorbisenc -lvorbis -logg -lvpx
++}
++unix {
++QMAKE_CXXFLAGS += $$system(pkg-config --cflags libavformat libavcodec libswscale libavutil libswresample)
++LIBS += $$system(pkg-config --libs libavformat libavcodec libswscale libavutil libswresample)
++}
+ }
+
+ SOURCES += \
|