2013-05-31 16:40:56 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2009-01-05 00:02:42 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= numptyphysics
|
|
|
|
DISTVERSION= 0.3.r20090104
|
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
2019-07-26 22:46:53 +02:00
|
|
|
PORTREVISION= 11
|
2009-01-05 00:02:42 +01:00
|
|
|
CATEGORIES= games
|
2014-12-15 13:37:54 +01:00
|
|
|
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
|
2009-01-05 00:02:42 +01:00
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Drawing physics-based puzzle game
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv3+
|
2014-12-15 13:37:54 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2019-11-08 11:47:01 +01:00
|
|
|
USES= compiler:c++11-lang desktop-file-utils gnome sdl tar:bzip2 xorg
|
2009-01-05 00:02:42 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_SDL= sdl image
|
2018-06-22 22:33:55 +02:00
|
|
|
USE_XORG= x11
|
2009-01-05 00:02:42 +01:00
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= AUTOMAKE="${TRUE}" ACLOCAL="${TRUE}" MISSING="${TRUE}"
|
2015-08-21 17:59:43 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lpthread
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -DINSTALL_BASE_PATH=\"\\\"${DATADIR}\\\"\"
|
2009-01-05 00:02:42 +01:00
|
|
|
|
2018-06-22 22:33:55 +02:00
|
|
|
CXXFLAGS+= -Wno-c++11-narrowing
|
|
|
|
|
2009-01-05 00:02:42 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
OPTIONS_DEFINE= MOREFPS
|
2014-05-11 03:40:05 +02:00
|
|
|
OPTIONS_DEFAULT=MOREFPS
|
2013-05-31 16:40:56 +02:00
|
|
|
MOREFPS_DESC= Smoother graphics support
|
2009-01-18 01:28:13 +01:00
|
|
|
|
2009-01-05 00:02:42 +01:00
|
|
|
post-patch:
|
|
|
|
@${CHMOD} a+x ${WRKSRC}/install-sh
|
|
|
|
@${REINPLACE_CMD} -e 's|\(desktopentrydir=\).*|\1${PREFIX}/share/applications|' \
|
2015-08-21 17:59:43 +02:00
|
|
|
-e '/stdc++/ d' \
|
2009-01-05 00:02:42 +01:00
|
|
|
${WRKSRC}/configure ${WRKSRC}/configure.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^Exec=.*|Exec=${PORTNAME}|; /^X-Icon-Path/ d' \
|
|
|
|
${WRKSRC}/data/${PORTNAME}.desktop
|
|
|
|
|
2015-08-21 17:59:43 +02:00
|
|
|
post-patch-MOREFPS-on:
|
|
|
|
@${REINPLACE_CMD} -e '/define RENDER_RATE/ s|20|60|' \
|
|
|
|
${WRKSRC}/Config.h
|
|
|
|
|
2014-05-11 03:40:05 +02:00
|
|
|
post-build:
|
2018-06-22 22:33:55 +02:00
|
|
|
@${STRIP_CMD} ${WRKSRC}/${PORTNAME}
|
2009-01-05 00:02:42 +01:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.include <bsd.port.mk>
|