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

(-)openglad/Makefile (+5 lines)
Lines 19-29 Link Here
19
19
20
SDL_CONFIG=	${LOCALBASE}/bin/sdl11-config
20
SDL_CONFIG=	${LOCALBASE}/bin/sdl11-config
21
21
22
USE_REINPLACE=	yes
22
USE_GMAKE=	yes
23
USE_GMAKE=	yes
23
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
24
25
25
CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}" \
26
CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}" \
26
		CPPFLAGS="-I${X11BASE}/include"
27
		CPPFLAGS="-I${X11BASE}/include"
27
PLIST_SUB=	DOCDIR=share/doc/${PORTNAME}
28
PLIST_SUB=	DOCDIR=share/doc/${PORTNAME}
29
30
post-configure:
31
	${REINPLACE_CMD} -e 's|/path/to/data/dir|${LOCALBASE}/share/openglad|g' \
32
		${WRKSRC}/openglad.cfg
28
33
29
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)openglad/files/patch-util.cpp (+18 lines)
Line 0 Link Here
1
--- src/util.cpp.orig	Tue Oct  1 20:41:14 2002
2
+++ src/util.cpp	Tue May 13 16:10:35 2003
3
@@ -160,6 +160,7 @@
4
 	if (cfg.query("dirs", "data"))
5
 	{
6
 		filepath = cfg.query("dirs", "data");
7
+		filepath += "/";
8
 		filepath += pos_dir;
9
 		filepath += file;
10
 
11
@@ -171,6 +172,7 @@
12
 	}
13
 
14
 	filepath = DATADIR;
15
+	filepath += "/";
16
 	filepath += pos_dir;
17
 	filepath += file;
18
 

Return to bug 52178