1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- STAGE-clean

- Fix segfault
This commit is contained in:
Pietro Cerutti 2014-02-05 09:26:34 +00:00
parent b0c120b644
commit 97a551d5d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342673
2 changed files with 15 additions and 8 deletions

View File

@ -27,10 +27,9 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}"
USE_AUTOTOOLS= automake autoconf
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENAL}
@ -53,9 +52,4 @@ post-patch:
pre-configure:
cd ${WRKSRC}; ${SH} autogen.sh
post-configure:
@${REINPLACE_CMD} -e \
's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -0,0 +1,13 @@
--- main.cpp.orig 2014-02-05 10:21:41.000000000 +0100
+++ main.cpp 2014-02-05 10:22:16.000000000 +0100
@@ -58,6 +58,10 @@
initsound(&argc, argv);
+ /* initialize glut here, so we have
+ * access to argv and argc */
+ glutInit (&argc, argv);
+
DoInitializations();
playsound(NewLifeSound);