Bug 184890 - emulators/catapult: Support CXX properly
Summary: emulators/catapult: Support CXX properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-20 23:40 UTC (History)
0 users

See Also:


Attachments
file.diff (3.29 KB, patch)
2013-12-16 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-16 18:10:25 UTC
- Support CXX properly
- Install desktop entry file
Comment 1 Pawel Pekala freebsd_committer 2013-12-20 21:53:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer 2013-12-20 23:32:23 UTC
Author: pawel
Date: Fri Dec 20 23:32:15 2013
New Revision: 337102
URL: http://svnweb.freebsd.org/changeset/ports/337102

Log:
  - Respect CXX
  - Install desktop entry file
  - Support staging
  
  PR:		ports/184890
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/emulators/catapult/Makefile
  head/emulators/catapult/pkg-plist   (contents, props changed)

Modified: head/emulators/catapult/Makefile
==============================================================================
--- head/emulators/catapult/Makefile	Fri Dec 20 23:21:05 2013	(r337101)
+++ head/emulators/catapult/Makefile	Fri Dec 20 23:32:15 2013	(r337102)
@@ -3,7 +3,7 @@
 
 PORTNAME=	catapult
 PORTVERSION=	0.9.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	emulators
 MASTER_SITES=	SF/openmsx/openmsx/${PORTVERSION}
 DISTNAME=	openmsx-${PORTNAME}-${PORTVERSION}
@@ -14,45 +14,26 @@ COMMENT=	GUI for openMSX
 LICENSE=	GPLv2
 
 BUILD_DEPENDS=	openmsx:${PORTSDIR}/emulators/openmsx
-LIB_DEPENDS=	mspack:${PORTSDIR}/archivers/libmspack \
-		pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
-		pcre:${PORTSDIR}/devel/pcre \
-		cairo:${PORTSDIR}/graphics/cairo \
-		jbig:${PORTSDIR}/graphics/jbigkit \
-		jpeg:${PORTSDIR}/graphics/jpeg \
-		png15:${PORTSDIR}/graphics/png \
-		tiff:${PORTSDIR}/graphics/tiff \
-		freetype:${PORTSDIR}/print/freetype2 \
-		expat:${PORTSDIR}/textproc/expat2 \
-		fontconfig:${PORTSDIR}/x11-fonts/fontconfig
 RUN_DEPENDS=	openmsx:${PORTSDIR}/emulators/openmsx
 
 OPTIONS_DEFINE=	DEBUG DOCS
 
-USE_GNOME=	gdkpixbuf2 glib20 gtk20 libxml2
+USES=		gmake pkgconfig
+USE_GNOME=	gtk20 libxml2
 USE_WX=		2.6+
 USE_PYTHON_BUILD=yes
-USES=		gettext gmake iconv
-USE_XORG=	ice pixman sm x11 xau xcb xcomposite xcursor xdamage xdmcp \
-		xext xfixes xi xinerama xrandr xrender xxf86vm
 MAKEFILE=	GNUmakefile
-MAKE_ARGS=	INSTALL_BASE="${PREFIX}" \
-		INSTALL_SHARE_DIR="${DATADIR}" \
+MAKE_ARGS=	INSTALL_BASE="${STAGEDIR}${PREFIX}" \
+		INSTALL_SHARE_DIR="${STAGEDIR}${DATADIR}" \
+		INSTALL_DOC_DIR="${STAGEDIR}${DOCSDIR}" \
 		CATAPULT_FLAVOUR="portbld" \
 		CATAPULT_OPENMSX_BINARY="${LOCALBASE}/bin/openmsx" \
 		CATAPULT_OPENMSX_SHARE="${LOCALBASE}/share/openmsx" \
-		SYMLINK_FOR_BINARY="false"
+		SYMLINK_FOR_BINARY="false" \
+		PYTHON="${PYTHON_CMD}"
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MDOCS}
-MAKE_ARGS+=	INSTALL_DOC_DIR="${DOCSDIR}"
-.else
-# Use dummy target rather than rewriting makefile
-MAKE_ARGS+=	INSTALL_DOC_DIR="${WRKSRC}/dummy"
-.endif
-
 .if ${PORT_OPTIONS:MDEBUG}
 CFLAGS+=	-DDEBUG
 CATAPULT_STRIP=	false
@@ -62,17 +43,26 @@ CATAPULT_STRIP=	true
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} 's|INSTALL_BASE|INSTALL_SHARE_DIR|' \
+	@${REINPLACE_CMD} 's|$$(INSTALL_BASE)|${DATADIR}|' \
 		${WRKSRC}/build/info2code.mk
 	@${REINPLACE_CMD} '/--no-strict-aliasing/s|^CXXFLAGS|#CXXFLAGS| ; \
 		 /--cxx/s|^CXX|#CXX| ; \
+		 /COMPILE=/s|g++|$$(CXX)| ; \
 		 s|@$$(CXX)|$$(CXX)|' ${WRKSRC}/build/main.mk
 	@${REINPLACE_CMD} 's|wx-config --|${WX_CONFIG:T} --|g' \
 		${WRKSRC}/build/probe.mk
+	@${REINPLACE_CMD} '/^Exec/s|%INSTALL_BASE%|${PREFIX}| ; \
+		 /^Icon/s|%INSTALL_BASE%|${DATADIR}| ; \
+		 /^DocPath/s|%INSTALL_BASE%/doc|${DOCSDIR}|' \
+		${WRKSRC}/desktop/openMSX-Catapult.desktop
 	@${ECHO_CMD} > ${WRKSRC}/build/flavour-portbld.mk
 	@${ECHO_CMD} 'CXXFLAGS+=${CXXFLAGS}' \
 		>> ${WRKSRC}/build/flavour-portbld.mk
 	@${ECHO_CMD} 'CATAPULT_STRIP:=${CATAPULT_STRIP}' \
 		>> ${WRKSRC}/build/flavour-portbld.mk
 
+post-install:
+	(cd ${WRKSRC}/desktop && ${INSTALL_DATA} openMSX-Catapult.desktop \
+		${STAGEDIR}${DESKTOPDIR})
+
 .include <bsd.port.mk>

Modified: head/emulators/catapult/pkg-plist
==============================================================================
--- head/emulators/catapult/pkg-plist	Fri Dec 20 23:21:05 2013	(r337101)
+++ head/emulators/catapult/pkg-plist	Fri Dec 20 23:32:15 2013	(r337102)
@@ -1,4 +1,5 @@
 bin/catapult
+share/applications/openMSX-Catapult.desktop
 %%DATADIR%%/resources/bitmaps/about.png
 %%DATADIR%%/resources/bitmaps/diskimage.png
 %%DATADIR%%/resources/bitmaps/eject.png
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer 2013-12-20 23:32:29 UTC
State Changed
From-To: open->closed

Committed. Thanks!