2012-11-02 10:42:08 +00:00
|
|
|
# Created by: Martin Tournoij <carpetsmoker@xs4all.nl>
|
2008-02-15 08:49:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= catapult
|
2016-08-16 10:51:32 +00:00
|
|
|
PORTVERSION= 0.13.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.
This includes ports
- featuring USE_GCC=yes or USE_GCC=any,
- featuring USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and those
- with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.
PR: 222542
2018-07-29 22:18:44 +00:00
|
|
|
PORTREVISION= 5
|
2008-02-15 08:49:44 +00:00
|
|
|
CATEGORIES= emulators
|
2015-09-21 19:09:01 +00:00
|
|
|
MASTER_SITES= https://github.com/openMSX/openMSX/releases/download/RELEASE_${PORTVERSION:S/./_/g}/
|
2009-11-20 06:06:52 +00:00
|
|
|
DISTNAME= openmsx-${PORTNAME}-${PORTVERSION}
|
2008-02-15 08:49:44 +00:00
|
|
|
|
2014-01-10 12:14:56 +00:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2008-02-15 08:49:44 +00:00
|
|
|
COMMENT= GUI for openMSX
|
|
|
|
|
2012-02-19 23:24:55 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 14:00:51 +00:00
|
|
|
BUILD_DEPENDS= openmsx:emulators/openmsx
|
|
|
|
RUN_DEPENDS= openmsx:emulators/openmsx
|
2008-02-15 08:49:44 +00:00
|
|
|
|
2012-11-02 10:42:08 +00:00
|
|
|
OPTIONS_DEFINE= DEBUG DOCS
|
|
|
|
|
2017-12-12 18:35:32 +00:00
|
|
|
USES= gmake pkgconfig python:2.7,build
|
2014-03-03 23:30:56 +00:00
|
|
|
USE_GCC= yes
|
2014-01-10 12:14:56 +00:00
|
|
|
USE_CXXSTD= gnu++0x
|
2013-12-20 23:32:15 +00:00
|
|
|
USE_GNOME= gtk20 libxml2
|
2014-03-24 15:25:35 +00:00
|
|
|
USE_WX= 2.8
|
2008-02-15 08:49:44 +00:00
|
|
|
MAKEFILE= GNUmakefile
|
2014-05-06 07:05:27 +00:00
|
|
|
MAKE_ARGS= INSTALL_BASE="${PREFIX}" \
|
|
|
|
INSTALL_SHARE_DIR="${DATADIR}" \
|
|
|
|
INSTALL_DOC_DIR="${DOCSDIR}" \
|
2009-11-20 06:06:52 +00:00
|
|
|
CATAPULT_FLAVOUR="portbld" \
|
|
|
|
CATAPULT_OPENMSX_BINARY="${LOCALBASE}/bin/openmsx" \
|
|
|
|
CATAPULT_OPENMSX_SHARE="${LOCALBASE}/share/openmsx" \
|
2013-12-28 05:15:57 +00:00
|
|
|
CATAPULT_NO_DESKTOP_HOOKS="true" \
|
2013-12-20 23:32:15 +00:00
|
|
|
SYMLINK_FOR_BINARY="false" \
|
|
|
|
PYTHON="${PYTHON_CMD}"
|
2012-11-02 10:42:08 +00:00
|
|
|
|
2014-10-04 16:24:30 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2017-05-01 19:24:00 +00:00
|
|
|
BROKEN_aarch64= fails to link: fails to detect libxml2 even though it is installed
|
|
|
|
BROKEN_armv6= fails to link: fails to detect libxml2 even though it is installed
|
2017-11-30 06:13:34 +00:00
|
|
|
BROKEN_armv7= fails to link: fails to detect libxml2 even though it is installed
|
2017-05-01 19:24:00 +00:00
|
|
|
|
2012-11-02 10:42:08 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2008-02-15 08:49:44 +00:00
|
|
|
|
2012-11-02 10:42:08 +00:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2009-11-20 06:06:52 +00:00
|
|
|
CFLAGS+= -DDEBUG
|
|
|
|
CATAPULT_STRIP= false
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DNDEBUG
|
|
|
|
CATAPULT_STRIP= true
|
|
|
|
.endif
|
|
|
|
|
2013-12-28 05:15:57 +00:00
|
|
|
post-extract:
|
|
|
|
${CP} ${WRKSRC}/build/platform-freebsd.mk \
|
|
|
|
${WRKSRC}/build/platform-dragonfly.mk
|
|
|
|
|
2014-01-10 12:14:56 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-11-20 06:06:52 +00:00
|
|
|
post-patch:
|
2013-12-20 23:32:15 +00:00
|
|
|
@${REINPLACE_CMD} 's|$$(INSTALL_BASE)|${DATADIR}|' \
|
2009-11-20 06:06:52 +00:00
|
|
|
${WRKSRC}/build/info2code.mk
|
2014-01-10 12:14:56 +00:00
|
|
|
@${REINPLACE_CMD} '/-Wno-literal/s|^CXXFLAGS|#CXXFLAGS| ; \
|
2012-11-02 10:42:08 +00:00
|
|
|
/--cxx/s|^CXX|#CXX| ; \
|
2013-12-20 23:32:15 +00:00
|
|
|
/COMPILE=/s|g++|$$(CXX)| ; \
|
2012-11-02 10:42:08 +00:00
|
|
|
s|@$$(CXX)|$$(CXX)|' ${WRKSRC}/build/main.mk
|
|
|
|
@${REINPLACE_CMD} 's|wx-config --|${WX_CONFIG:T} --|g' \
|
|
|
|
${WRKSRC}/build/probe.mk
|
2013-12-20 23:32:15 +00:00
|
|
|
@${REINPLACE_CMD} '/^Exec/s|%INSTALL_BASE%|${PREFIX}| ; \
|
|
|
|
/^Icon/s|%INSTALL_BASE%|${DATADIR}| ; \
|
|
|
|
/^DocPath/s|%INSTALL_BASE%/doc|${DOCSDIR}|' \
|
|
|
|
${WRKSRC}/desktop/openMSX-Catapult.desktop
|
2009-11-20 06:06:52 +00:00
|
|
|
@${ECHO_CMD} > ${WRKSRC}/build/flavour-portbld.mk
|
|
|
|
@${ECHO_CMD} 'CXXFLAGS+=${CXXFLAGS}' \
|
|
|
|
>> ${WRKSRC}/build/flavour-portbld.mk
|
2014-01-10 12:14:56 +00:00
|
|
|
@${ECHO_CMD} 'LINK_FLAGS+=${LDFLAGS}' \
|
|
|
|
>> ${WRKSRC}/build/flavour-portbld.mk
|
2009-11-20 06:06:52 +00:00
|
|
|
@${ECHO_CMD} 'CATAPULT_STRIP:=${CATAPULT_STRIP}' \
|
|
|
|
>> ${WRKSRC}/build/flavour-portbld.mk
|
|
|
|
|
2013-12-20 23:32:15 +00:00
|
|
|
post-install:
|
2015-09-21 19:09:01 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/resources/icons
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/catapult.xpm \
|
2013-12-28 05:15:57 +00:00
|
|
|
${STAGEDIR}${DATADIR}/resources/icons
|
2015-09-21 19:09:01 +00:00
|
|
|
cd ${WRKSRC}/desktop && ${INSTALL_DATA} openMSX-Catapult.desktop \
|
2014-01-10 12:14:56 +00:00
|
|
|
${STAGEDIR}${DESKTOPDIR}
|
2013-12-20 23:32:15 +00:00
|
|
|
|
2014-01-10 12:14:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|