Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2015 15:59:44 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r394968 - head/games/numptyphysics
Message-ID:  <201508211559.t7LFxitA048060@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Aug 21 15:59:43 2015
New Revision: 394968
URL: https://svnweb.freebsd.org/changeset/ports/394968

Log:
  - Use correct pthread library
  - Switch to options helpers
  - Don't try to link with libstdc++

Modified:
  head/games/numptyphysics/Makefile

Modified: head/games/numptyphysics/Makefile
==============================================================================
--- head/games/numptyphysics/Makefile	Fri Aug 21 15:59:22 2015	(r394967)
+++ head/games/numptyphysics/Makefile	Fri Aug 21 15:59:43 2015	(r394968)
@@ -19,7 +19,7 @@ USE_SDL=	sdl image
 INSTALLS_ICONS=	yes
 
 CONFIGURE_ENV=	AUTOMAKE="${TRUE}" ACLOCAL="${TRUE}" MISSING="${TRUE}"
-LDFLAGS+=	-L${LOCALBASE}/lib -pthread
+LDFLAGS+=	-L${LOCALBASE}/lib -lpthread
 CPPFLAGS+=	-I${LOCALBASE}/include -DINSTALL_BASE_PATH=\"\\\"${DATADIR}\\\"\"
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
@@ -28,19 +28,18 @@ OPTIONS_DEFINE=	MOREFPS
 OPTIONS_DEFAULT=MOREFPS
 MOREFPS_DESC=	Smoother graphics support
 
-.include <bsd.port.options.mk>
-
 post-patch:
-.if ${PORT_OPTIONS:MMOREFPS}
-	@${REINPLACE_CMD} -e '/define RENDER_RATE/ s|20|60|' \
-		${WRKSRC}/Config.h
-.endif
 	@${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}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508211559.t7LFxitA048060>