svn commit: r394968 - head/games/numptyphysics
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Aug 21 15:59:44 UTC 2015
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}
More information about the svn-ports-all
mailing list