reset cflags and change config
This commit is contained in:
1 parent
988265d430
commit
5143e7e464
1 file changed
+26
-20
+26
-20
@@ -7,21 +7,23 @@ md5sums=(a2736befde5fee7d2b7eb45eb281cdbe)
|
|||||||
depends=(glibc)
|
depends=(glibc)
|
||||||
so_ver=6
|
so_ver=6
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
unset CFLAGS
|
||||||
|
unset CXXFLAGS
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
# prefix is / libdir is /lib/ncurses
|
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--enable-widec \
|
--libdir=/lib64 \
|
||||||
--enable-pc-files \
|
--without-ada \
|
||||||
--mandir=/usr/share/man \
|
--without-tests \
|
||||||
--with-cxx-binding \
|
--disable-termcap \
|
||||||
--with-cxx-shared \
|
--disable-rpath-hack \
|
||||||
--with-manpage-format=normal \
|
--disable-stripping \
|
||||||
--libdir=/lib \
|
--with-pkg-config-libdir=/usr/lib64/pkgconfig \
|
||||||
--with-shared \
|
--without-cxx-binding \
|
||||||
--with-versioned-syms \
|
--with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo:/lib/terminfo:/usr/lib/terminfo" \
|
||||||
--with-xterm-kbs=del \
|
--enable-pc-files \
|
||||||
--without-ada
|
--with-shared \
|
||||||
|
--enable-widec
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
@@ -29,25 +31,29 @@ build(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
package(){
|
package(){
|
||||||
make install -j$(nproc)
|
make install
|
||||||
|
|
||||||
for lib in ncurses ncurses++ form panel menu; do
|
for lib in ncurses ncurses++ form panel menu; do
|
||||||
printf "INPUT(-l%sw)\n" "${lib}" > "$DESTDIR/lib/lib${lib}.so"
|
printf "INPUT(-l%sw)\n" "${lib}" > "$DESTDIR/lib64/lib${lib}.so"
|
||||||
ln -sv ${lib}w.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
ln -sv ${lib}w.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
||||||
done
|
done
|
||||||
ln -s libncurses.so.6 "$DESTDIR/lib/libtinfo.so.${so_ver}"
|
ln -s libncurses.so.6 "$DESTDIR/lib64/libtinfo.so.${so_ver}"
|
||||||
|
|
||||||
# some packages look for -lcurses during build
|
# some packages look for -lcurses during build
|
||||||
printf 'INPUT(-lncursesw)\n' > "$DESTDIR/lib/libcursesw.so"
|
printf 'INPUT(-lncursesw)\n' > "$DESTDIR/lib64/libcursesw.so"
|
||||||
ln -sv libncurses.so "$DESTDIR/lib/libcurses.so"
|
ln -sv libncurses.so "$DESTDIR/lib64/libcurses.so"
|
||||||
|
|
||||||
# tic and ticinfo functionality is built in by default
|
# tic and ticinfo functionality is built in by default
|
||||||
# make sure that anything linking against it links against libncursesw.so instead
|
# make sure that anything linking against it links against libncursesw.so instead
|
||||||
for lib in tic tinfo; do
|
for lib in tic tinfo; do
|
||||||
printf "INPUT(libncursesw.so.%s)\n" "${so_ver}" > "$DESTDIR/lib/lib${lib}.so"
|
printf "INPUT(libncursesw.so.%s)\n" "${so_ver}" > "$DESTDIR/lib64/lib${lib}.so"
|
||||||
if ! ls $DESTDIR/lib/lib${lib}.so.${so_ver} ; then
|
if ! ls $DESTDIR/lib64/lib${lib}.so.${so_ver} ; then
|
||||||
ln -sv libncursesw.so.${so_ver} "$DESTDIR/lib/lib${lib}.so.${so_ver}"
|
ln -sv libncursesw.so.${so_ver} "$DESTDIR/lib64/lib${lib}.so.${so_ver}"
|
||||||
ln -sv ncursesw.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
ln -sv ncursesw.pc "$DESTDIR/usr/lib64/pkgconfig/${lib}.pc"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# legacy binary support
|
||||||
|
for lib in libncursesw libncurses libtinfo libpanelw libformw libmenuw ; do
|
||||||
|
ln -sv ${lib}.${so_ver} "$DESTDIR"/lib64/${lib}.5
|
||||||
|
done
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user