View | Details | Raw Unified | Return to bug 214651
Collapse All | Expand All

(-)Makefile (-12 / +7 lines)
Lines 11-23 Link Here
11
COMMENT=	Emilia Pinball is a free pinball game
11
COMMENT=	Emilia Pinball is a free pinball game
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
15
15
USES=		gmake libtool:keepla # .la needed for plugin loading
16
USES=		gmake localbase:ldflags libtool:keepla # .la needed for plugin loading
16
USE_GL=		gl
17
USE_GL=		gl glu
17
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
19
CONFIGURE_ARGS=	--without-debug
18
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
19
21
20
CONFIGURE_ARGS=	--prefix=${PREFIX} --without-debug
22
CPPFLAGS+=	-DRZR_LIBSTATIC
21
23
22
OPTIONS_DEFINE=	DOCS
24
OPTIONS_DEFINE=	DOCS
23
25
Lines 29-41 Link Here
29
.else
31
.else
30
USE_SDL=	image mixer sdl
32
USE_SDL=	image mixer sdl
31
.endif
33
.endif
32
33
CPPFLAGS+=	-I${LOCALBASE}/include -DRZR_LIBSTATIC
34
LDFLAGS+=	-L${LOCALBASE}/lib
35
#MAKE_JOBS_UNSAFE=	yes
34
#MAKE_JOBS_UNSAFE=	yes
36
35
37
DOCS=		README
38
39
# For gmake>=3.82
36
# For gmake>=3.82
40
pre-configure:
37
pre-configure:
41
	@${FIND} ${WRKSRC} -name Makefile.in -print | ${XARGS} \
38
	@${FIND} ${WRKSRC} -name Makefile.in -print | ${XARGS} \
Lines 49-57 Link Here
49
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pinball/lib*.so*
46
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pinball/lib*.so*
50
47
51
post-install-DOCS-on:
48
post-install-DOCS-on:
52
	${MKDIR} ${STAGEDIR}${DOCSDIR}
49
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
53
.for FILE in ${DOCS}
50
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
54
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
55
.endfor
56
51
57
.include <bsd.port.mk>
52
.include <bsd.port.mk>
(-)files/patch-base_Config.cpp (+13 lines)
Line 0 Link Here
1
--- base/Config.cpp.orig	2003-11-21 07:59:09 UTC
2
+++ base/Config.cpp
3
@@ -423,8 +423,8 @@ void Config::setPaths(char const * const
4
   m_sDataDir = string(EM_DATADIR) + "/";
5
   m_sExeDir = "./";
6
   if ( *( m_sDataDir.c_str() ) != '/' ) {
7
-    char* ptr=0; 
8
-    char* ptrw = 0;
9
+    const char* ptr=0; 
10
+    const char* ptrw = 0;
11
     //cout<<"relative to exe file"<<endl;
12
     ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32 
13
 #ifdef WIN32

Return to bug 214651