View | Details | Raw Unified | Return to bug 184890
Collapse All | Expand All

(-)emulators/catapult/Makefile (-27 / +17 lines)
Lines 14-58 Link Here
14
LICENSE=	GPLv2
14
LICENSE=	GPLv2
15
15
16
BUILD_DEPENDS=	openmsx:${PORTSDIR}/emulators/openmsx
16
BUILD_DEPENDS=	openmsx:${PORTSDIR}/emulators/openmsx
17
LIB_DEPENDS=	mspack:${PORTSDIR}/archivers/libmspack \
18
		pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
19
		pcre:${PORTSDIR}/devel/pcre \
20
		cairo:${PORTSDIR}/graphics/cairo \
21
		jbig:${PORTSDIR}/graphics/jbigkit \
22
		jpeg:${PORTSDIR}/graphics/jpeg \
23
		png15:${PORTSDIR}/graphics/png \
24
		tiff:${PORTSDIR}/graphics/tiff \
25
		freetype:${PORTSDIR}/print/freetype2 \
26
		expat:${PORTSDIR}/textproc/expat2 \
27
		fontconfig:${PORTSDIR}/x11-fonts/fontconfig
28
RUN_DEPENDS=	openmsx:${PORTSDIR}/emulators/openmsx
17
RUN_DEPENDS=	openmsx:${PORTSDIR}/emulators/openmsx
29
18
30
OPTIONS_DEFINE=	DEBUG DOCS
19
OPTIONS_DEFINE=	DEBUG DOCS
31
20
32
USE_GNOME=	gdkpixbuf2 glib20 gtk20 libxml2
21
USES=		gmake pkgconfig
22
USE_GNOME=	gtk20 libxml2
33
USE_WX=		2.6+
23
USE_WX=		2.6+
34
USE_PYTHON_BUILD=yes
24
USE_PYTHON_BUILD=yes
35
USES=		gettext gmake iconv
36
USE_XORG=	ice pixman sm x11 xau xcb xcomposite xcursor xdamage xdmcp \
37
		xext xfixes xi xinerama xrandr xrender xxf86vm
38
MAKEFILE=	GNUmakefile
25
MAKEFILE=	GNUmakefile
39
MAKE_ARGS=	INSTALL_BASE="${PREFIX}" \
26
MAKE_ARGS=	INSTALL_BASE="${STAGEDIR}${PREFIX}" \
40
		INSTALL_SHARE_DIR="${DATADIR}" \
27
		INSTALL_SHARE_DIR="${STAGEDIR}${DATADIR}" \
28
		INSTALL_DOC_DIR="${STAGEDIR}${DOCSDIR}" \
41
		CATAPULT_FLAVOUR="portbld" \
29
		CATAPULT_FLAVOUR="portbld" \
42
		CATAPULT_OPENMSX_BINARY="${LOCALBASE}/bin/openmsx" \
30
		CATAPULT_OPENMSX_BINARY="${LOCALBASE}/bin/openmsx" \
43
		CATAPULT_OPENMSX_SHARE="${LOCALBASE}/share/openmsx" \
31
		CATAPULT_OPENMSX_SHARE="${LOCALBASE}/share/openmsx" \
44
		SYMLINK_FOR_BINARY="false"
32
		SYMLINK_FOR_BINARY="false" \
33
		PYTHON="${PYTHON_CMD}"
45
34
46
NO_STAGE=	yes
47
.include <bsd.port.options.mk>
35
.include <bsd.port.options.mk>
48
36
49
.if ${PORT_OPTIONS:MDOCS}
50
MAKE_ARGS+=	INSTALL_DOC_DIR="${DOCSDIR}"
51
.else
52
# Use dummy target rather than rewriting makefile
53
MAKE_ARGS+=	INSTALL_DOC_DIR="${WRKSRC}/dummy"
54
.endif
55
56
.if ${PORT_OPTIONS:MDEBUG}
37
.if ${PORT_OPTIONS:MDEBUG}
57
CFLAGS+=	-DDEBUG
38
CFLAGS+=	-DDEBUG
58
CATAPULT_STRIP=	false
39
CATAPULT_STRIP=	false
Lines 62-78 Link Here
62
.endif
43
.endif
63
44
64
post-patch:
45
post-patch:
65
	@${REINPLACE_CMD} 's|INSTALL_BASE|INSTALL_SHARE_DIR|' \
46
	@${REINPLACE_CMD} 's|$$(INSTALL_BASE)|${DATADIR}|' \
66
		${WRKSRC}/build/info2code.mk
47
		${WRKSRC}/build/info2code.mk
67
	@${REINPLACE_CMD} '/--no-strict-aliasing/s|^CXXFLAGS|#CXXFLAGS| ; \
48
	@${REINPLACE_CMD} '/--no-strict-aliasing/s|^CXXFLAGS|#CXXFLAGS| ; \
68
		 /--cxx/s|^CXX|#CXX| ; \
49
		 /--cxx/s|^CXX|#CXX| ; \
50
		 /COMPILE=/s|g++|$$(CXX)| ; \
69
		 s|@$$(CXX)|$$(CXX)|' ${WRKSRC}/build/main.mk
51
		 s|@$$(CXX)|$$(CXX)|' ${WRKSRC}/build/main.mk
70
	@${REINPLACE_CMD} 's|wx-config --|${WX_CONFIG:T} --|g' \
52
	@${REINPLACE_CMD} 's|wx-config --|${WX_CONFIG:T} --|g' \
71
		${WRKSRC}/build/probe.mk
53
		${WRKSRC}/build/probe.mk
54
	@${REINPLACE_CMD} '/^Exec/s|%INSTALL_BASE%|${PREFIX}| ; \
55
		 /^Icon/s|%INSTALL_BASE%|${DATADIR}| ; \
56
		 /^DocPath/s|%INSTALL_BASE%/doc|${DOCSDIR}|' \
57
		${WRKSRC}/desktop/openMSX-Catapult.desktop
72
	@${ECHO_CMD} > ${WRKSRC}/build/flavour-portbld.mk
58
	@${ECHO_CMD} > ${WRKSRC}/build/flavour-portbld.mk
73
	@${ECHO_CMD} 'CXXFLAGS+=${CXXFLAGS}' \
59
	@${ECHO_CMD} 'CXXFLAGS+=${CXXFLAGS}' \
74
		>> ${WRKSRC}/build/flavour-portbld.mk
60
		>> ${WRKSRC}/build/flavour-portbld.mk
75
	@${ECHO_CMD} 'CATAPULT_STRIP:=${CATAPULT_STRIP}' \
61
	@${ECHO_CMD} 'CATAPULT_STRIP:=${CATAPULT_STRIP}' \
76
		>> ${WRKSRC}/build/flavour-portbld.mk
62
		>> ${WRKSRC}/build/flavour-portbld.mk
77
63
64
post-install:
65
	(cd ${WRKSRC}/desktop && ${INSTALL_DATA} openMSX-Catapult.desktop \
66
		${STAGEDIR}${DESKTOPDIR})
67
78
.include <bsd.port.mk>
68
.include <bsd.port.mk>
(-)emulators/catapult/pkg-plist (+1 lines)
Lines 1-4 Link Here
1
bin/catapult
1
bin/catapult
2
share/applications/openMSX-Catapult.desktop
2
%%DATADIR%%/resources/bitmaps/about.png
3
%%DATADIR%%/resources/bitmaps/about.png
3
%%DATADIR%%/resources/bitmaps/diskimage.png
4
%%DATADIR%%/resources/bitmaps/diskimage.png
4
%%DATADIR%%/resources/bitmaps/eject.png
5
%%DATADIR%%/resources/bitmaps/eject.png

Return to bug 184890