mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
a9f015d155
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. 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, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= numptyphysics
|
|
DISTVERSION= 0.3.r20090104
|
|
PORTREVISION= 10
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Drawing physics-based puzzle game
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= compiler:c++11-lang tar:bzip2 desktop-file-utils
|
|
GNU_CONFIGURE= yes
|
|
USE_SDL= sdl image
|
|
USE_XORG= x11
|
|
INSTALLS_ICONS= yes
|
|
|
|
CONFIGURE_ENV= AUTOMAKE="${TRUE}" ACLOCAL="${TRUE}" MISSING="${TRUE}"
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lpthread
|
|
CPPFLAGS+= -I${LOCALBASE}/include -DINSTALL_BASE_PATH=\"\\\"${DATADIR}\\\"\"
|
|
|
|
CXXFLAGS+= -Wno-c++11-narrowing
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= MOREFPS
|
|
OPTIONS_DEFAULT=MOREFPS
|
|
MOREFPS_DESC= Smoother graphics support
|
|
|
|
post-patch:
|
|
@${CHMOD} a+x ${WRKSRC}/install-sh
|
|
@${REINPLACE_CMD} -e 's|\(desktopentrydir=\).*|\1${PREFIX}/share/applications|' \
|
|
-e '/stdc++/ d' \
|
|
${WRKSRC}/configure ${WRKSRC}/configure.in
|
|
@${REINPLACE_CMD} -e 's|^Exec=.*|Exec=${PORTNAME}|; /^X-Icon-Path/ d' \
|
|
${WRKSRC}/data/${PORTNAME}.desktop
|
|
|
|
post-patch-MOREFPS-on:
|
|
@${REINPLACE_CMD} -e '/define RENDER_RATE/ s|20|60|' \
|
|
${WRKSRC}/Config.h
|
|
|
|
post-build:
|
|
@${STRIP_CMD} ${WRKSRC}/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|