- Fix with INN's shared libraries;

- Fix WWW.
This commit is contained in:
Thierry Thomas 2018-11-13 18:39:05 +00:00
parent 15c1b86206
commit bcb83c24c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484894
3 changed files with 43 additions and 4 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= newsx
PORTVERSION= 1.6
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= news
MASTER_SITES= http://www.kvaleberg.org/pub/
@ -15,7 +15,8 @@ LICENSE= GPLv2
.if defined(WITH_CNEWS)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:news/cnews
.elif !defined(WITHOUT_INN_2-X)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:news/inn
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.so:news/inn
RUN_DEPENDS= ${LOCALBASE}/news/lib/libinn.so:news/inn
.endif
GNU_CONFIGURE= yes
@ -26,7 +27,7 @@ OPTIONS_DEFINE= DOCS
.if !defined(WITH_CNEWS)
.if !defined(WITHOUT_INN_2-X)
CPPFLAGS+= -I${LOCALBASE}/news/include
CPPFLAGS+= -I${LOCALBASE}/news/include/inn
.endif
.endif

View File

@ -42,3 +42,41 @@
INN_VERSION="$VERSION"
VERSION="$VERSION_save"
INN_NEWSUMASK=`umask`
@@ -6568,14 +6573,14 @@ fi
LIBS_save="$LIBS"
- LIBS="$LIBS -linn -lstorage"
+ LIBS="$LIBS -linn -lstorage -linnhist"
echo "$as_me:$LINENO: checking for IsToken in -lstorage" >&5
echo $ECHO_N "checking for IsToken in -lstorage... $ECHO_C" >&6
if test "${ac_cv_lib_storage_IsToken+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lstorage $LIBS"
+LIBS="-lstorage -linnhist $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -7074,7 +7079,7 @@ if test x$HAVE_GETOPT != x1; then
MORELIBS2="$MORELIBS2 ../lib/libgetopt.a"
fi
if test x$HAVE_LIBINN = x1; then
- MORELIBS1="$MORELIBS1 -L$NEWSLIB"
+ MORELIBS1="$MORELIBS1 -L$NEWSLIB -Wl,-rpath -Wl,$NEWSLIB"
MORELIBS2="$MORELIBS2 -linn"
cat >>confdefs.h <<_ACEOF
@@ -7086,9 +7091,9 @@ else
fi
if test x$HAVE_LIBSTORAGE = x1; then
if test x$HAVE_LIBINN != x1; then
- MORELIBS1="$MORELIBS1 -L$NEWSLIB"
+ MORELIBS1="$MORELIBS1 -L$NEWSLIB -Wl,-rpath -Wl,$NEWSLIB"
fi
- MORELIBS2="-lstorage $MORELIBS2 -lstorage"
+ MORELIBS2="-lstorage $MORELIBS2 -lstorage -linnhist"
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSTORAGE 1

View File

@ -12,4 +12,4 @@ distributed in the usual manner. Since newsx obeys the normal news spool
configuration file and requires little or no specific configuration, the
administrative burden should be minimized.
WWW: http://www.kvaleberg.com/newsx.html
WWW: http://www.kvaleberg.no/newsx.html