Fix a place where Mesa looks for mesa.conf - it should be ${PREFIX}/etc/mesa.conf,
not /etc/mesa.conf. PR: 17678 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
This commit is contained in:
parent
44af1c525c
commit
6bea222dd5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32516
4 changed files with 28 additions and 0 deletions
|
@ -53,6 +53,9 @@ MAKE_ENV+= SUB_GL=${SUB_GL} \
|
|||
pre-patch:
|
||||
@${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
|
||||
|
||||
post-configure:
|
||||
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/config.c
|
||||
|
||||
post-install:
|
||||
.for lib in GL GLU
|
||||
@${LN} -sf ${PREFIX}/lib/lib${lib}.so ${PREFIX}/lib/libMesa${lib}.so
|
||||
|
|
11
graphics/Mesa3/files/patch-ae
Normal file
11
graphics/Mesa3/files/patch-ae
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/config.c 2000/09/11 12:25:04 1.1
|
||||
+++ src/config.c 2000/09/11 12:25:27
|
||||
@@ -406,7 +406,7 @@
|
||||
#if defined(__WIN32__) || defined(__MSDOS__)
|
||||
const char *filename = "mesa.cnf";
|
||||
#else
|
||||
- const char *filename = "/etc/mesa.conf";
|
||||
+ const char *filename = "%%PREFIX%%/etc/mesa.conf";
|
||||
#endif
|
||||
FILE *file;
|
||||
struct cnode *list;
|
|
@ -53,6 +53,9 @@ MAKE_ENV+= SUB_GL=${SUB_GL} \
|
|||
pre-patch:
|
||||
@${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
|
||||
|
||||
post-configure:
|
||||
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/config.c
|
||||
|
||||
post-install:
|
||||
.for lib in GL GLU
|
||||
@${LN} -sf ${PREFIX}/lib/lib${lib}.so ${PREFIX}/lib/libMesa${lib}.so
|
||||
|
|
11
graphics/mesagl/files/patch-ae
Normal file
11
graphics/mesagl/files/patch-ae
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/config.c 2000/09/11 12:25:04 1.1
|
||||
+++ src/config.c 2000/09/11 12:25:27
|
||||
@@ -406,7 +406,7 @@
|
||||
#if defined(__WIN32__) || defined(__MSDOS__)
|
||||
const char *filename = "mesa.cnf";
|
||||
#else
|
||||
- const char *filename = "/etc/mesa.conf";
|
||||
+ const char *filename = "%%PREFIX%%/etc/mesa.conf";
|
||||
#endif
|
||||
FILE *file;
|
||||
struct cnode *list;
|
Loading…
Reference in a new issue