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

Collapse All | Expand All

(-)games/oolite/Makefile (-5 / +14 lines)
Lines 12-20 Link Here
12
MAINTAINER=		ports@FreeBSD.org
12
MAINTAINER=		ports@FreeBSD.org
13
COMMENT=		Trade and combat space simulator, clone of Elite
13
COMMENT=		Trade and combat space simulator, clone of Elite
14
14
15
DEPRECATED=	Unmaintained, uses EOLed python27
16
EXPIRATION_DATE=	2020-01-27
17
18
LICENSE=		CC-BY-NC-SA-3.0 GPLv2 ZLIB
15
LICENSE=		CC-BY-NC-SA-3.0 GPLv2 ZLIB
19
LICENSE_COMB=		multi
16
LICENSE_COMB=		multi
20
LICENSE_FILE_CC-BY-NC-SA-3.0=	${WRKSRC}/Doc/LICENSE.TXT
17
LICENSE_FILE_CC-BY-NC-SA-3.0=	${WRKSRC}/Doc/LICENSE.TXT
Lines 27-33 Link Here
27
			libpng.so:graphics/png \
24
			libpng.so:graphics/png \
28
			libminizip.so:archivers/minizip
25
			libminizip.so:archivers/minizip
29
26
30
USES=			gl gnustep openal:al perl5 python:2.7,build sdl \
27
USES=			gl gnustep openal:al perl5 python:2.7+,build sdl \
31
			tar:bzip2 xorg
28
			tar:bzip2 xorg
32
USE_CXXSTD=		gnu++98
29
USE_CXXSTD=		gnu++98
33
USE_GL=			gl glu
30
USE_GL=			gl glu
Lines 34-39 Link Here
34
USE_SDL=		sdl
31
USE_SDL=		sdl
35
USE_XORG=		x11
32
USE_XORG=		x11
36
USE_GNUSTEP=		base build
33
USE_GNUSTEP=		base build
34
MAKE_ENV=		ac_cv_path_PYTHON=${PYTHON_CMD}
37
# Redefine DO_MAKE_BUILD, because current gnustep in USES overrides MAKEFILE
35
# Redefine DO_MAKE_BUILD, because current gnustep in USES overrides MAKEFILE
38
# without possibility to change it, as it was done in the previous implementation
36
# without possibility to change it, as it was done in the previous implementation
39
DO_MAKE_BUILD=		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} Makefile ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g}
37
DO_MAKE_BUILD=		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} Makefile ${_MAKE_JOBS} ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g}
Lines 61-66 Link Here
61
BROKEN_armv6=		fails to compile: your compiler does not follow the C++ specification for temporary object destruction order
59
BROKEN_armv6=		fails to compile: your compiler does not follow the C++ specification for temporary object destruction order
62
BROKEN_armv7=		fails to compile: your compiler does not follow the C++ specification for temporary object destruction order
60
BROKEN_armv7=		fails to compile: your compiler does not follow the C++ specification for temporary object destruction order
63
61
62
.include <bsd.port.pre.mk>
63
64
post-patch: .SILENT
64
post-patch: .SILENT
65
	${REINPLACE_CMD} -e 's/GNUSTEP_USER_ROOT/GNUSTEP_LOCAL_ROOT/ ; \
65
	${REINPLACE_CMD} -e 's/GNUSTEP_USER_ROOT/GNUSTEP_LOCAL_ROOT/ ; \
66
		s/sdl-config/$${SDL_CONFIG}/ ; \
66
		s/sdl-config/$${SDL_CONFIG}/ ; \
Lines 75-80 Link Here
75
	${REINPLACE_CMD} -e 's|oolite-saves|\.oolite-saves|' \
75
	${REINPLACE_CMD} -e 's|oolite-saves|\.oolite-saves|' \
76
		${WRKSRC}/src/Core/NSFileManagerOOExtensions.h
76
		${WRKSRC}/src/Core/NSFileManagerOOExtensions.h
77
77
78
.if ${PYTHON_VER} >= 3.0
79
pre-configure:
80
	@${REINPLACE_CMD} -i '.2to3.bak' -e "s| but not 3\.x|| ; \
81
		s| or sys\.version\[:2\] != '2\.'||" \
82
		${WRKSRC}/deps/mozilla/js/src/configure
83
	@(cd ${WRKSRC}/deps/mozilla/js/src && ${PREFIX}/bin/2to3-${PYTHON_VER} \
84
		-wn --no-diffs imacro_asm.py build/cl.py)
85
.endif
86
78
do-install:
87
do-install:
79
	(cd ${RELEASEDIR} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
88
	(cd ${RELEASEDIR} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
80
	${INSTALL_SCRIPT} ${WRKDIR}/oolite ${STAGEDIR}${PREFIX}/bin
89
	${INSTALL_SCRIPT} ${WRKDIR}/oolite ${STAGEDIR}${PREFIX}/bin
Lines 85-88 Link Here
85
		${STAGEDIR}${PREFIX}/share/pixmaps
94
		${STAGEDIR}${PREFIX}/share/pixmaps
86
	(cd ${WRKSRC}/Doc && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
95
	(cd ${WRKSRC}/Doc && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
87
96
88
.include <bsd.port.mk>
97
.include <bsd.port.post.mk>

Return to bug 242997