Attempt to nail down strange problems people are reporting usially

around new release. Apparently, those problem steam from the fact
that those users doesn't update their kernels along with userland,
so that CONFIGURE_TARGET supplied by bsd.port.mk doesn't match
OS version detected by configure script, making it believe that
it is in the cross-compile environment. The same problem observed
on bento.

Use USE_REINPLACE while I'm here.
This commit is contained in:
Maxim Sobolev 2003-04-14 15:39:50 +00:00
parent 74e08dd702
commit 68d7cdcd02
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78966
3 changed files with 18 additions and 10 deletions

View file

@ -26,6 +26,7 @@ USE_BZIP2= yes
USE_X_PREFIX= yes
USE_MESA= yes
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_GNOMENG= yes
USE_GNOME= gtk12
@ -34,7 +35,9 @@ CONFIGURE_ARGS= --with-libpng=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--with-zlib=builtin \
--with-opengl
--with-opengl \
--host=${CONFIGURE_TARGET} \
--build=${CONFIGURE_TARGET}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} \
-I${WRKSRC}/include \
-I${LOCALBASE}/include \
@ -45,8 +48,7 @@ CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} \
GTK_CONFIG_2_0="no"
pre-patch:
@${PERL} -pi -e 's|-l\$$THREADS_LIB|${PTHREAD_LIBS}|g ; \
s|-l\$$THREADS_LINK|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|[$$]THREADS_LINK|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
.include <bsd.port.mk>

View file

@ -23,6 +23,7 @@ USE_BZIP2= yes
USE_X_PREFIX= yes
USE_MESA= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GNOMENG= yes
USE_GNOME= gtk12
GNU_CONFIGURE= yes
@ -31,7 +32,9 @@ CONFIGURE_ARGS= --with-libpng=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--with-zlib=sys \
--with-opengl
--with-opengl \
--host=${CONFIGURE_TARGET} \
--build=${CONFIGURE_TARGET}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} \
-I${WRKSRC}/include \
-I${LOCALBASE}/include \
@ -40,8 +43,8 @@ CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} \
-L${X11BASE}/lib -lm"
pre-patch:
@${PERL} -pi -e 's|-l\$$THREADS_LIB|${PTHREAD_LIBS}|g ; \
s|-l\$$THREADS_LINK|${PTHREAD_LIBS}|g' \
@${REINPLACE_CMD} -e 's|-l[$$]THREADS_LIB|${PTHREAD_LIBS}|g ; \
s|-l[$$]THREADS_LINK|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
post-install:

View file

@ -23,6 +23,7 @@ USE_BZIP2= yes
USE_X_PREFIX= yes
USE_MESA= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GNOMENG= yes
USE_GNOME= gtk12
GNU_CONFIGURE= yes
@ -31,7 +32,9 @@ CONFIGURE_ARGS= --with-libpng=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--with-zlib=sys \
--with-opengl
--with-opengl \
--host=${CONFIGURE_TARGET} \
--build=${CONFIGURE_TARGET}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} \
-I${WRKSRC}/include \
-I${LOCALBASE}/include \
@ -40,8 +43,8 @@ CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} \
-L${X11BASE}/lib -lm"
pre-patch:
@${PERL} -pi -e 's|-l\$$THREADS_LIB|${PTHREAD_LIBS}|g ; \
s|-l\$$THREADS_LINK|${PTHREAD_LIBS}|g' \
@${REINPLACE_CMD} -e 's|-l[$$]THREADS_LIB|${PTHREAD_LIBS}|g ; \
s|-l[$$]THREADS_LINK|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
post-install: