diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-09-19 22:16:27 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-10-05 22:49:59 +0900 |
| commit | 158d00fa47d008bc9dcede42a8045edb77680007 (patch) | |
| tree | a643434d60261e1de920334b3a8eb171686ed756 /gnu | |
| parent | a7281abc64de0a7c88e6a04b2558765e5c92b2ac (diff) | |
gnu: Add jgrf.
* gnu/packages/emulators.scm (jgrf): New variable.
Change-Id: I0cf706e66977ceb96902dcd54f9175031e129445
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/emulators.scm | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 6368ccbe43d..8f18e6bb5f3 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm | |||
| @@ -2286,6 +2286,72 @@ The Jolly Good API is a shared object or plugin @acronym{API, Application | |||
| 2286 | Programming Interface} for emulators.") | 2286 | Programming Interface} for emulators.") |
| 2287 | (license license:zlib))) | 2287 | (license license:zlib))) |
| 2288 | 2288 | ||
| 2289 | (define-public jgrf | ||
| 2290 | (package | ||
| 2291 | (name "jgrf") | ||
| 2292 | (version "1.2.0") | ||
| 2293 | (source (origin | ||
| 2294 | (method git-fetch) | ||
| 2295 | (uri (git-reference | ||
| 2296 | (url "https://gitlab.com/jgemu/jgrf") | ||
| 2297 | (commit version))) | ||
| 2298 | (file-name (git-file-name name version)) | ||
| 2299 | (snippet '(begin | ||
| 2300 | ;; TODO: Package md5.h and md5.c from | ||
| 2301 | ;; http://openwall.info/wiki/people/solar/software | ||
| 2302 | ;; /public-domain-source-code/md5, | ||
| 2303 | ;; remove these bundled files and set the | ||
| 2304 | ;; USE_EXTERNAL_MD5 Make flag to 1. | ||
| 2305 | ;; (delete-file "deps/md5.h") | ||
| 2306 | ;; (delete-file "deps/md5.c") | ||
| 2307 | (use-modules (guix build utils)) | ||
| 2308 | (delete-file-recursively "deps/miniz"))) | ||
| 2309 | (sha256 | ||
| 2310 | (base32 | ||
| 2311 | "1ivc8jj0majvgi0rj9nn429bmh7wp2nf87hq8xg05fjqwalfy3bl")))) | ||
| 2312 | (build-system gnu-build-system) | ||
| 2313 | (arguments | ||
| 2314 | (list #:tests? #f ;no test suite | ||
| 2315 | #:make-flags | ||
| 2316 | #~(list (string-append "AR=" #$(ar-for-target)) | ||
| 2317 | (string-append "CC=" #$(cc-for-target)) | ||
| 2318 | (string-append "CXX=" #$(cxx-for-target)) | ||
| 2319 | (string-append "PREFIX=" #$output)) | ||
| 2320 | #:phases #~(modify-phases %standard-phases | ||
| 2321 | (delete 'configure)))) | ||
| 2322 | (native-inputs (list jg-api pkg-config)) | ||
| 2323 | (inputs | ||
| 2324 | (list flac | ||
| 2325 | libepoxy | ||
| 2326 | libsamplerate | ||
| 2327 | lzo | ||
| 2328 | miniz | ||
| 2329 | sdl2 | ||
| 2330 | soxr | ||
| 2331 | speexdsp | ||
| 2332 | zlib | ||
| 2333 | `(,zstd "lib"))) | ||
| 2334 | (native-search-paths | ||
| 2335 | (list (search-path-specification | ||
| 2336 | (variable "JOLLYGOOD_CORE_DIRS") | ||
| 2337 | (files '("lib/jollygood"))) | ||
| 2338 | (search-path-specification | ||
| 2339 | (variable "JOLLYGOOD_ASSET_DIRS") | ||
| 2340 | (files '("share/jollygood"))))) | ||
| 2341 | (home-page "https://gitlab.com/jgemu/jgrf") | ||
| 2342 | (synopsis "Jolly Good Reference Frontend") | ||
| 2343 | (description "The Jolly Good Reference Frontend (accessible via the | ||
| 2344 | @command{jollygood} command) aims to be the simplest possible frontend to The | ||
| 2345 | Jolly Good API. It may be used to run emulators built as shared objects, or | ||
| 2346 | as a \"white-label\" frontend for statically linked standalone emulators.") | ||
| 2347 | ;; The main license is BSD-3; the bundled source licenses are also listed | ||
| 2348 | ;; below. | ||
| 2349 | (license (list license:bsd-3 ;this software, gltext.h, lodepng.c, lodepng.h | ||
| 2350 | license:expat ;ezmenu.h source, musl_memmem.c, | ||
| 2351 | ;parson.h, parson.c, tconfig.h, tconfig.c | ||
| 2352 | license:public-domain ;md5.h, md5.c, parg.h, parg.c | ||
| 2353 | license:cc0)))) | ||
| 2354 | |||
| 2289 | (define-public zsnes | 2355 | (define-public zsnes |
| 2290 | (package | 2356 | (package |
| 2291 | (name "zsnes") | 2357 | (name "zsnes") |
