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:
Maxim Sobolev 2000-09-11 12:58:15 +00:00
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

View file

@ -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

View 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;

View file

@ -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

View 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;