View | Details | Raw Unified | Return to bug 227084 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-16 / +16 lines)
Lines 2-16 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	nxengine
4
PORTNAME=	nxengine
5
PORTVERSION=	1.0.0.6
5
PORTVERSION=	2.6.2
6
DISTVERSIONPREFIX=	v
6
CATEGORIES=	games
7
CATEGORIES=	games
7
MASTER_SITES=	http://nxengine.sourceforge.net/dl/ \
8
MASTER_SITES+=	https://www.cavestory.org/downloads/:data \
8
		http://www.cavestory.org/downloads/:data \
9
		SF/lifanov-ports-distfiles/games/${PORTNAME}/:icons
9
		SF/lifanov-ports-distfiles/games/${PORTNAME}/:icons
10
DISTFILES=	nx-src-${DISTVERSION:S/.//g}.tar.bz2 \
10
DISTFILES+=	${PORTNAME}.png:icons \
11
		cavestoryen.zip:data \
11
		cavestoryen.zip:data
12
		${PORTNAME}.png:icons
12
EXTRACT_ONLY=	${DISTFILES:[2..3]:S/:data//}
13
EXTRACT_ONLY=	${DISTFILES:[1..2]:S/:data//}
14
13
15
MAINTAINER=	lifanov@FreeBSD.org
14
MAINTAINER=	lifanov@FreeBSD.org
16
COMMENT=	Engine-rewrite of the classic platformer Cave Story
15
COMMENT=	Engine-rewrite of the classic platformer Cave Story
Lines 21-48 Link Here
21
LICENSE_FILE_GPLv3=	${WRKSRC}/LICENSE
20
LICENSE_FILE_GPLv3=	${WRKSRC}/LICENSE
22
LICENSE_FILE_FREEWARE=	${WRKDIR}/CaveStory/Readme.txt
21
LICENSE_FILE_FREEWARE=	${WRKDIR}/CaveStory/Readme.txt
23
LICENSE_PERMS_FREEWARE=	dist-mirror pkg-mirror auto-accept
22
LICENSE_PERMS_FREEWARE=	dist-mirror pkg-mirror auto-accept
24
LICENSE_DISTFILES_GPLv3=	${DISTFILES:[1]}
23
LICENSE_DISTFILES_GPLv3=	${DISTFILES:[3]}
25
LICENSE_DISTFILES_FREEWARE=	${DISTFILES:[2]:S/:data//}
24
LICENSE_DISTFILES_FREEWARE=	${DISTFILES:[2]:S/:data//}
26
25
26
LIB_DEPENDS=	libpng16.so:graphics/png
27
27
DESKTOP_ENTRIES="NXEngine" "" "${PORTNAME}" \
28
DESKTOP_ENTRIES="NXEngine" "" "${PORTNAME}" \
28
		"${PORTNAME}" "Game;AdventureGame;" ""
29
		"${PORTNAME}" "Game;AdventureGame;" ""
29
30
30
WRKSRC=		${WRKDIR}/nx
31
USES=		cmake:outsource compiler:c++11-lang
31
USE_SDL=	sdl ttf
32
USE_SDL=	mixer2 sdl2
32
SUB_FILES=	${PORTNAME}
33
SUB_FILES=	${PORTNAME}
33
34
34
pre-build:
35
USE_GITHUB=	yes
35
	@${REINPLACE_CMD} -e 's!g++!${CXX}!' ${WRKSRC}/Makefile
36
GH_PROJECT=	${PORTNAME}-evo
36
37
37
do-install:
38
do-install:
38
	${MKDIR} ${STAGEDIR}${DATADIR}
39
	${MKDIR} ${STAGEDIR}${DATADIR}
39
	${INSTALL_PROGRAM} ${WRKSRC}/nx ${STAGEDIR}${DATADIR}
40
	${INSTALL_PROGRAM} ${WRKSRC}/bin/nx ${STAGEDIR}${DATADIR}
40
.for f in sprites.sif smalfont.bmp tilekey.dat font.ttf
41
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
42
.endfor
43
	${INSTALL_SCRIPT} ${WRKDIR}/nxengine ${STAGEDIR}${PREFIX}/bin
41
	${INSTALL_SCRIPT} ${WRKDIR}/nxengine ${STAGEDIR}${PREFIX}/bin
42
	(cd ${WRKSRC}/data; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/data)
44
	(cd ${WRKDIR}/CaveStory; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
43
	(cd ${WRKDIR}/CaveStory; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
45
	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
44
	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
46
		${STAGEDIR}${PREFIX}/share/pixmaps
45
		${STAGEDIR}${PREFIX}/share/pixmaps
46
	(cd ${STAGEDIR}${DATADIR}; ${WRKSRC}/bin/extract)
47
47
48
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-7 Link Here
1
TIMESTAMP = 1504880228
1
TIMESTAMP = 1521886367
2
SHA256 (nx-src-1006.tar.bz2) = cf9cbf15dfdfdc9936720a714876bb1524afbd2931e3eaa4c89984a40b21ad68
3
SIZE (nx-src-1006.tar.bz2) = 540467
4
SHA256 (cavestoryen.zip) = aa87fa30bee9b4980640c7e104791354e0f1f6411ee0d45a70af70046aa0685f
2
SHA256 (cavestoryen.zip) = aa87fa30bee9b4980640c7e104791354e0f1f6411ee0d45a70af70046aa0685f
5
SIZE (cavestoryen.zip) = 1136575
3
SIZE (cavestoryen.zip) = 1136575
6
SHA256 (nxengine.png) = d6d8866939c10342bd3feebef311648586bed38f0390acbe16fd42f5240ff4e7
4
SHA256 (nxengine.png) = d6d8866939c10342bd3feebef311648586bed38f0390acbe16fd42f5240ff4e7
7
SIZE (nxengine.png) = 536
5
SIZE (nxengine.png) = 536
6
SHA256 (nxengine-nxengine-evo-v2.6.2_GH0.tar.gz) = a09d096ee80dc29881dd532a998fd6ae9669c41eda060385aed92f7b8856c82c
7
SIZE (nxengine-nxengine-evo-v2.6.2_GH0.tar.gz) = 3230556
(-)files/patch-sound_org.cpp (-11 lines)
Lines 1-11 Link Here
1
--- sound/org.cpp.orig	2012-04-29 19:01:52 UTC
2
+++ sound/org.cpp
3
@@ -4,7 +4,7 @@
4
 #include <stdlib.h>
5
 #include <string.h>
6
 #include <math.h>
7
-#include <endian.h>
8
+#include <sys/endian.h>
9
 
10
 #include "../common/basics.h"
11
 #include "org.h"
(-)files/patch-sound_pxt.cpp (-11 lines)
Lines 1-11 Link Here
1
--- sound/pxt.cpp.orig	2012-04-29 19:01:52 UTC
2
+++ sound/pxt.cpp
3
@@ -6,7 +6,7 @@
4
 #include <math.h>			// for sin()
5
 #include <stdlib.h>
6
 #include <string.h>
7
-#include <endian.h>
8
+#include <sys/endian.h>
9
 
10
 #include "../config.h"
11
 #include "pxt.h"
(-)files/patch-src_graphics_screenshot.cpp (+11 lines)
Line 0 Link Here
1
--- src/graphics/screenshot.cpp.orig	2018-03-24 09:37:42 UTC
2
+++ src/graphics/screenshot.cpp
3
@@ -1,7 +1,7 @@
4
 #include "pngfuncs.h"
5
 #include "graphics.h"
6
 #include "../common/stat.h"
7
-#if defined(__MACH__)
8
+#if defined(__MACH__) || defined (__FreeBSD__)
9
 #include <cstdlib>
10
 #else
11
 #include <malloc.h>
(-)pkg-descr (-3 / +2 lines)
Lines 1-4 Link Here
1
NXEngine is a complete open-source clone/rewrite of the masterpiece
1
This is a somewhat upgraded/refactored version of nxengine.
2
jump-and-run platformer Doukutsu Monogatari (also known as Cave Story).
3
2
4
WWW: http://nxengine.sourceforge.net/
3
WWW: https://github.com/nxengine/nxengine-evo
(-)pkg-plist (-4 / +165 lines)
Lines 427-444 Link Here
427
%%DATADIR%%/data/bkBlue.pbm
427
%%DATADIR%%/data/bkBlue.pbm
428
%%DATADIR%%/data/bkFall.pbm
428
%%DATADIR%%/data/bkFall.pbm
429
%%DATADIR%%/data/bkFog.pbm
429
%%DATADIR%%/data/bkFog.pbm
430
%%DATADIR%%/data/bkFog480fix.pbm
430
%%DATADIR%%/data/bkGard.pbm
431
%%DATADIR%%/data/bkGard.pbm
431
%%DATADIR%%/data/bkGray.pbm
432
%%DATADIR%%/data/bkGray.pbm
432
%%DATADIR%%/data/bkGreen.pbm
433
%%DATADIR%%/data/bkGreen.pbm
433
%%DATADIR%%/data/bkMaze.pbm
434
%%DATADIR%%/data/bkMaze.pbm
434
%%DATADIR%%/data/bkMoon.pbm
435
%%DATADIR%%/data/bkMoon.pbm
436
%%DATADIR%%/data/bkMoon480fix.pbm
435
%%DATADIR%%/data/bkRed.pbm
437
%%DATADIR%%/data/bkRed.pbm
436
%%DATADIR%%/data/bkWater.pbm
438
%%DATADIR%%/data/bkWater.pbm
437
%%DATADIR%%/data/casts.pbm
439
%%DATADIR%%/data/casts.pbm
440
%%DATADIR%%/data/endpic/credit01.bmp
441
%%DATADIR%%/data/endpic/credit01m.bmp
442
%%DATADIR%%/data/endpic/credit02.bmp
443
%%DATADIR%%/data/endpic/credit02m.bmp
444
%%DATADIR%%/data/endpic/credit03.bmp
445
%%DATADIR%%/data/endpic/credit03m.bmp
446
%%DATADIR%%/data/endpic/credit04.bmp
447
%%DATADIR%%/data/endpic/credit05.bmp
448
%%DATADIR%%/data/endpic/credit06.bmp
449
%%DATADIR%%/data/endpic/credit07.bmp
450
%%DATADIR%%/data/endpic/credit08.bmp
451
%%DATADIR%%/data/endpic/credit09.bmp
452
%%DATADIR%%/data/endpic/credit10.bmp
453
%%DATADIR%%/data/endpic/credit11.bmp
454
%%DATADIR%%/data/endpic/credit12.bmp
455
%%DATADIR%%/data/endpic/credit14.bmp
456
%%DATADIR%%/data/endpic/credit15.bmp
457
%%DATADIR%%/data/endpic/credit16.bmp
458
%%DATADIR%%/data/endpic/credit17.bmp
459
%%DATADIR%%/data/endpic/credit18.bmp
460
%%DATADIR%%/data/endpic/pixel.bmp
461
%%DATADIR%%/data/font_1.fnt
462
%%DATADIR%%/data/font_1_0.png
463
%%DATADIR%%/data/font_2.fnt
464
%%DATADIR%%/data/font_2_0.png
465
%%DATADIR%%/data/font_3.fnt
466
%%DATADIR%%/data/font_3_0.png
467
%%DATADIR%%/data/font_4.fnt
468
%%DATADIR%%/data/font_4_0.png
469
%%DATADIR%%/data/font_5.fnt
470
%%DATADIR%%/data/font_5_0.png
438
%%DATADIR%%/data/npc.tbl
471
%%DATADIR%%/data/npc.tbl
439
%%DATADIR%%/font.ttf
472
%%DATADIR%%/data/org/access.org
473
%%DATADIR%%/data/org/anzen.org
474
%%DATADIR%%/data/org/balcony.org
475
%%DATADIR%%/data/org/ballos.org
476
%%DATADIR%%/data/org/bdown.org
477
%%DATADIR%%/data/org/cemetery.org
478
%%DATADIR%%/data/org/curly.org
479
%%DATADIR%%/data/org/dr.org
480
%%DATADIR%%/data/org/ending.org
481
%%DATADIR%%/data/org/escape.org
482
%%DATADIR%%/data/org/fanfale1.org
483
%%DATADIR%%/data/org/fanfale2.org
484
%%DATADIR%%/data/org/fanfale3.org
485
%%DATADIR%%/data/org/fireeye.org
486
%%DATADIR%%/data/org/gameover.org
487
%%DATADIR%%/data/org/ginsuke.org
488
%%DATADIR%%/data/org/grand.org
489
%%DATADIR%%/data/org/gravity.org
490
%%DATADIR%%/data/org/hell.org
491
%%DATADIR%%/data/org/ironh.org
492
%%DATADIR%%/data/org/jenka.org
493
%%DATADIR%%/data/org/jenka2.org
494
%%DATADIR%%/data/org/kodou.org
495
%%DATADIR%%/data/org/lastbt3.org
496
%%DATADIR%%/data/org/lastbtl.org
497
%%DATADIR%%/data/org/lastcave.org
498
%%DATADIR%%/data/org/marine.org
499
%%DATADIR%%/data/org/maze.org
500
%%DATADIR%%/data/org/mdown2.org
501
%%DATADIR%%/data/org/mura.org
502
%%DATADIR%%/data/org/oside.org
503
%%DATADIR%%/data/org/plant.org
504
%%DATADIR%%/data/org/quiet.org
505
%%DATADIR%%/data/org/requiem.org
506
%%DATADIR%%/data/org/toroko.org
507
%%DATADIR%%/data/org/vivi.org
508
%%DATADIR%%/data/org/wanpak2.org
509
%%DATADIR%%/data/org/wanpaku.org
510
%%DATADIR%%/data/org/weed.org
511
%%DATADIR%%/data/org/white.org
512
%%DATADIR%%/data/org/zonbie.org
513
%%DATADIR%%/data/pxt/fx01.pxt
514
%%DATADIR%%/data/pxt/fx02.pxt
515
%%DATADIR%%/data/pxt/fx03.pxt
516
%%DATADIR%%/data/pxt/fx04.pxt
517
%%DATADIR%%/data/pxt/fx05.pxt
518
%%DATADIR%%/data/pxt/fx06.pxt
519
%%DATADIR%%/data/pxt/fx07.pxt
520
%%DATADIR%%/data/pxt/fx0b.pxt
521
%%DATADIR%%/data/pxt/fx0c.pxt
522
%%DATADIR%%/data/pxt/fx0e.pxt
523
%%DATADIR%%/data/pxt/fx0f.pxt
524
%%DATADIR%%/data/pxt/fx10.pxt
525
%%DATADIR%%/data/pxt/fx11.pxt
526
%%DATADIR%%/data/pxt/fx12.pxt
527
%%DATADIR%%/data/pxt/fx14.pxt
528
%%DATADIR%%/data/pxt/fx15.pxt
529
%%DATADIR%%/data/pxt/fx16.pxt
530
%%DATADIR%%/data/pxt/fx17.pxt
531
%%DATADIR%%/data/pxt/fx18.pxt
532
%%DATADIR%%/data/pxt/fx19.pxt
533
%%DATADIR%%/data/pxt/fx1a.pxt
534
%%DATADIR%%/data/pxt/fx1b.pxt
535
%%DATADIR%%/data/pxt/fx1c.pxt
536
%%DATADIR%%/data/pxt/fx1d.pxt
537
%%DATADIR%%/data/pxt/fx1e.pxt
538
%%DATADIR%%/data/pxt/fx1f.pxt
539
%%DATADIR%%/data/pxt/fx20.pxt
540
%%DATADIR%%/data/pxt/fx21.pxt
541
%%DATADIR%%/data/pxt/fx22.pxt
542
%%DATADIR%%/data/pxt/fx23.pxt
543
%%DATADIR%%/data/pxt/fx25.pxt
544
%%DATADIR%%/data/pxt/fx26.pxt
545
%%DATADIR%%/data/pxt/fx27.pxt
546
%%DATADIR%%/data/pxt/fx28.pxt
547
%%DATADIR%%/data/pxt/fx29.pxt
548
%%DATADIR%%/data/pxt/fx2a.pxt
549
%%DATADIR%%/data/pxt/fx2b.pxt
550
%%DATADIR%%/data/pxt/fx2c.pxt
551
%%DATADIR%%/data/pxt/fx2d.pxt
552
%%DATADIR%%/data/pxt/fx2e.pxt
553
%%DATADIR%%/data/pxt/fx2f.pxt
554
%%DATADIR%%/data/pxt/fx30.pxt
555
%%DATADIR%%/data/pxt/fx31.pxt
556
%%DATADIR%%/data/pxt/fx32.pxt
557
%%DATADIR%%/data/pxt/fx33.pxt
558
%%DATADIR%%/data/pxt/fx34.pxt
559
%%DATADIR%%/data/pxt/fx35.pxt
560
%%DATADIR%%/data/pxt/fx36.pxt
561
%%DATADIR%%/data/pxt/fx37.pxt
562
%%DATADIR%%/data/pxt/fx38.pxt
563
%%DATADIR%%/data/pxt/fx39.pxt
564
%%DATADIR%%/data/pxt/fx3a.pxt
565
%%DATADIR%%/data/pxt/fx3b.pxt
566
%%DATADIR%%/data/pxt/fx3c.pxt
567
%%DATADIR%%/data/pxt/fx3d.pxt
568
%%DATADIR%%/data/pxt/fx3e.pxt
569
%%DATADIR%%/data/pxt/fx3f.pxt
570
%%DATADIR%%/data/pxt/fx40.pxt
571
%%DATADIR%%/data/pxt/fx41.pxt
572
%%DATADIR%%/data/pxt/fx46.pxt
573
%%DATADIR%%/data/pxt/fx47.pxt
574
%%DATADIR%%/data/pxt/fx48.pxt
575
%%DATADIR%%/data/pxt/fx64.pxt
576
%%DATADIR%%/data/pxt/fx65.pxt
577
%%DATADIR%%/data/pxt/fx66.pxt
578
%%DATADIR%%/data/pxt/fx67.pxt
579
%%DATADIR%%/data/pxt/fx68.pxt
580
%%DATADIR%%/data/pxt/fx69.pxt
581
%%DATADIR%%/data/pxt/fx6a.pxt
582
%%DATADIR%%/data/pxt/fx6b.pxt
583
%%DATADIR%%/data/pxt/fx6c.pxt
584
%%DATADIR%%/data/pxt/fx6d.pxt
585
%%DATADIR%%/data/pxt/fx6e.pxt
586
%%DATADIR%%/data/pxt/fx6f.pxt
587
%%DATADIR%%/data/pxt/fx70.pxt
588
%%DATADIR%%/data/pxt/fx71.pxt
589
%%DATADIR%%/data/pxt/fx72.pxt
590
%%DATADIR%%/data/pxt/fx73.pxt
591
%%DATADIR%%/data/pxt/fx74.pxt
592
%%DATADIR%%/data/pxt/fx75.pxt
593
%%DATADIR%%/data/pxt/fx96.pxt
594
%%DATADIR%%/data/pxt/fx97.pxt
595
%%DATADIR%%/data/pxt/fx98.pxt
596
%%DATADIR%%/data/pxt/fx99.pxt
597
%%DATADIR%%/data/pxt/fx9a.pxt
598
%%DATADIR%%/data/pxt/fx9b.pxt
599
%%DATADIR%%/data/sprites.sif
600
%%DATADIR%%/data/stage.dat
601
%%DATADIR%%/data/system.json
602
%%DATADIR%%/data/tilekey.dat
603
%%DATADIR%%/data/wavetable.dat
440
%%DATADIR%%/nx
604
%%DATADIR%%/nx
441
%%DATADIR%%/smalfont.bmp
442
%%DATADIR%%/sprites.sif
443
%%DATADIR%%/tilekey.dat
444
share/pixmaps/nxengine.png
605
share/pixmaps/nxengine.png

Return to bug 227084