pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add advancemame.
Module Name: pkgsrc-wip
Committed By: nia <nia%NetBSD.org@localhost>
Pushed By: nee
Date: Thu May 2 18:19:30 2019 +0100
Changeset: b77288546926821082a7c6bb95737ded09b1ada7
Modified Files:
Makefile
Added Files:
advancemame/DESCR
advancemame/MESSAGE
advancemame/Makefile
advancemame/PLIST
advancemame/TODO
advancemame/distinfo
advancemame/files/advancemame.desktop
advancemame/options.mk
Log Message:
Add advancemame.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b77288546926821082a7c6bb95737ded09b1ada7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
advancemame/DESCR | 11 ++++
advancemame/MESSAGE | 9 +++
advancemame/Makefile | 121 ++++++++++++++++++++++++++++++++++
advancemame/PLIST | 41 ++++++++++++
advancemame/TODO | 1 +
advancemame/distinfo | 6 ++
advancemame/files/advancemame.desktop | 10 +++
advancemame/options.mk | 38 +++++++++++
9 files changed, 238 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 5538ce9eca..e3af4fce07 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,7 @@ SUBDIR+= adjustmtu
SUBDIR+= adms
SUBDIR+= admsmb
SUBDIR+= adobe-source-sans-pro-ttf-otf
+SUBDIR+= advancemame
SUBDIR+= ae-fonts-decorative
SUBDIR+= aegis-devel
SUBDIR+= aegisub
diff --git a/advancemame/DESCR b/advancemame/DESCR
new file mode 100644
index 0000000000..da932f2343
--- /dev/null
+++ b/advancemame/DESCR
@@ -0,0 +1,11 @@
+AdvanceMAME is an unofficial port of the arcade game emulator MAME
+0.106 and multi-system emulator MESS 0.106 for Arcade Monitors and
+TVs but also for LCDs and PC monitors.
+
+The main difference compared with the official emulators is that
+the Advance versions are able to program directly the video board
+to always get a video mode with the correct size and frequency.
+
+Generally the Advance emulators are able to use a video mode which
+doesn't require any stretching or other unneeded effects to match
+the original arcade display.
diff --git a/advancemame/MESSAGE b/advancemame/MESSAGE
new file mode 100644
index 0000000000..512c890814
--- /dev/null
+++ b/advancemame/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.2 2018/10/15 17:53:23 nia Exp $
+
+AdvanceMENU expects ROMs to be installed to
+${PREFIX}/share/advance/rom or ${HOME}/.advance/rom.
+
+If none are installed it will not be able to launch.
+
+===========================================================================
diff --git a/advancemame/Makefile b/advancemame/Makefile
new file mode 100644
index 0000000000..edd47a54a3
--- /dev/null
+++ b/advancemame/Makefile
@@ -0,0 +1,121 @@
+# $NetBSD$
+
+DISTNAME= advancemame-3.9
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_GITHUB:=amadvance/}
+GITHUB_PROJECT= advancemame
+GITHUB_RELEASE= v${PKGVERSION_NOREV}
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= http://www.advancemame.it/
+COMMENT= Arcade game emulator with advanced video support
+LICENSE= gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= egrep zip gzip pkg-config ksh gmake
+USE_LANGUAGES= c c++
+
+CONFIG_SHELL= ksh
+
+BUILD_DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
+
+CONFIGURE_ARGS+= --enable-expat
+CONFIGURE_ARGS+= --enable-zlib
+CONFIGURE_ARGS+= --enable-sdl2
+CONFIGURE_ARGS+= --disable-sdl
+
+# i386-only, probably requires an external assembler
+# not tested
+CONFIGURE_ARGS+= --disable-asm
+CONFIGURE_ARGS+= --disable-asm-mips3
+
+CONFIGURE_ARGS+= --prefix=${DESTDIR}${PREFIX}
+
+.include "../../mk/pthread.buildlink3.mk"
+
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
+CONFIGURE_ARGS+= --enable-pthread
+.else
+CONFIGURE_ARGS+= --disable-pthread
+.endif
+
+.include "../../mk/oss.buildlink3.mk"
+
+.if defined(OSS_TYPE) && ${OSS_TYPE} != "none"
+CONFIGURE_ARGS+= --enable-oss
+.else
+CONFIGURE_ARGS+= --disable-oss
+.endif
+
+ICON_SIZES= 16 32 48 256
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/doc/advancemame
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+INSTALLATION_DIRS+= share/advance
+INSTALLATION_DIRS+= share/advance/rom
+INSTALLATION_DIRS+= share/advance/sample
+INSTALLATION_DIRS+= share/advance/artwork
+INSTALLATION_DIRS+= share/advance/image
+INSTALLATION_DIRS+= share/advance/image/ti99_4a
+INSTALLATION_DIRS+= share/advance/crc
+INSTALLATION_DIRS+= share/advance/snap
+INSTALLATION_DIRS+= share/advance/snap/ti99_4a
+INSTALLATION_DIRS+= share/applications
+.for size in ${ICON_SIZES}
+INSTALLATION_DIRS+= share/icons/hicolor/${size}x${size}/apps
+.endfor
+
+MANPAGES= advcfg.1 advdev.1 advj.1 advk.1 advm.1 advmame.1 \
+ advmenu.1 advs.1 advv.1
+
+HTMLDOCS= authors.html build.html carddos.html cardlinx.html \
+ cardwin.html cost.html faq.html history.html install.html \
+ readme.html release.html script.html svgawin.html
+
+post-configure:
+ ${PREFIX}/bin/convert ${WRKSRC}/contrib/logo/megaman.ico[2] \
+ ${WRKDIR}/advancemame-48.png
+ ${PREFIX}/bin/convert ${WRKSRC}/contrib/logo/megaman.ico[3] \
+ ${WRKDIR}/advancemame-32.png
+ ${PREFIX}/bin/convert ${WRKSRC}/contrib/logo/megaman.ico[4] \
+ ${WRKDIR}/advancemame-16.png
+ ${PREFIX}/bin/convert ${WRKSRC}/contrib/logo/megaman.ico[5] \
+ ${WRKDIR}/advancemame-256.png
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj/mame/generic/blend/advmame \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj/mess/generic/blend/advmess \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj/menu/generic/blend/advmenu \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj/s/generic/blend/advs \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj/k/generic/blend/advk \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj/j/generic/blend/advj \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj/m/generic/blend/advm \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${FILESDIR}/advancemame.desktop \
+ ${DESTDIR}${PREFIX}/share/applications
+.for size in ${ICON_SIZES}
+ ${INSTALL_DATA} ${WRKDIR}/advancemame-${size}.png \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/${size}x${size}/apps/advancemame.png
+.endfor
+.for file in ${MANPAGES}
+ ${INSTALL_MAN} ${WRKSRC}/doc/${file} \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+.endfor
+.for file in ${HTMLDOCS}
+ ${INSTALL_MAN} ${WRKSRC}/doc/${file} \
+ ${DESTDIR}${PREFIX}/share/doc/advancemame
+.endfor
+
+.include "options.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/advancemame/PLIST b/advancemame/PLIST
new file mode 100644
index 0000000000..1035597ef9
--- /dev/null
+++ b/advancemame/PLIST
@@ -0,0 +1,41 @@
+@comment $NetBSD$
+bin/advj
+bin/advk
+bin/advm
+bin/advmame
+bin/advmenu
+bin/advmess
+bin/advs
+man/man1/advcfg.1
+man/man1/advdev.1
+man/man1/advj.1
+man/man1/advk.1
+man/man1/advm.1
+man/man1/advmame.1
+man/man1/advmenu.1
+man/man1/advs.1
+man/man1/advv.1
+share/applications/advancemame.desktop
+share/doc/advancemame/authors.html
+share/doc/advancemame/build.html
+share/doc/advancemame/carddos.html
+share/doc/advancemame/cardlinx.html
+share/doc/advancemame/cardwin.html
+share/doc/advancemame/cost.html
+share/doc/advancemame/faq.html
+share/doc/advancemame/history.html
+share/doc/advancemame/install.html
+share/doc/advancemame/readme.html
+share/doc/advancemame/release.html
+share/doc/advancemame/script.html
+share/doc/advancemame/svgawin.html
+share/icons/hicolor/16x16/apps/advancemame.png
+share/icons/hicolor/256x256/apps/advancemame.png
+share/icons/hicolor/32x32/apps/advancemame.png
+share/icons/hicolor/48x48/apps/advancemame.png
+@pkgdir share/advance/snap/ti99_4a
+@pkgdir share/advance/sample
+@pkgdir share/advance/rom
+@pkgdir share/advance/image/ti99_4a
+@pkgdir share/advance/crc
+@pkgdir share/advance/artwork
diff --git a/advancemame/TODO b/advancemame/TODO
new file mode 100644
index 0000000000..30fd3fd526
--- /dev/null
+++ b/advancemame/TODO
@@ -0,0 +1 @@
+test on rpi
diff --git a/advancemame/distinfo b/advancemame/distinfo
new file mode 100644
index 0000000000..e836f0ecbf
--- /dev/null
+++ b/advancemame/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (advancemame-3.9.tar.gz) = 6f0d1d961d97d4661e3a131aed12a081c9624e8d
+RMD160 (advancemame-3.9.tar.gz) = 3348f4ee90b84ec237e9ec22deac88f388df26ca
+SHA512 (advancemame-3.9.tar.gz) = 43f9ba746f222b17ade2d213d6af7cc8fe6b3ee6008633f02b8877f4c7f75628bdf1cc9718db09f5f9a482d194c8ba94f9047334e8012d23c598454e5dab2eb3
+Size (advancemame-3.9.tar.gz) = 27287755 bytes
diff --git a/advancemame/files/advancemame.desktop b/advancemame/files/advancemame.desktop
new file mode 100644
index 0000000000..1bb2f45d15
--- /dev/null
+++ b/advancemame/files/advancemame.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=AdvanceMAME
+GenericName=Arcade Game Emulator
+Comment=Arcade game and multi-system emulator with advanced video support
+Icon=advancemame
+Exec=advmenu
+Terminal=false
+Categories=Game;Emulator;
diff --git a/advancemame/options.mk b/advancemame/options.mk
new file mode 100644
index 0000000000..d3831a027b
--- /dev/null
+++ b/advancemame/options.mk
@@ -0,0 +1,38 @@
+# $NetBSD: options.mk,v 1.1 2018/12/18 17:08:20 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.advancemame
+
+PKG_SUPPORTED_OPTIONS+= freetype curses slang alsa
+PKG_SUGGESTED_OPTIONS+= freetype curses
+PKG_SUGGESTED_OPTIONS.Linux+= alsa
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Malsa)
+CONFIGURE_ARGS+= --enable-alsa
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mfreetype)
+CONFIGURE_ARGS+= --enable-freetype
+.include "../../graphics/freetype2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-freetype
+.endif
+
+.if !empty(PKG_OPTIONS:Mcurses)
+FAKE_NCURSES= yes
+CONFIGURE_ARGS+= --enable-ncurses
+.include "../../mk/curses.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-ncurses
+.endif
+
+.if !empty(PKG_OPTIONS:Mslang)
+CONFIGURE_ARGS+= --enable-slang
+.include "../../devel/libslang/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-slang
+.endif
Home |
Main Index |
Thread Index |
Old Index