Merge pull request #1143 from teh-jazzman/ncurses
ncurses: .pc file creation for devel package
This commit is contained in:
commit
7d95e06247
@ -1,7 +1,7 @@
|
|||||||
# Template build file for 'ncurses'.
|
# Template build file for 'ncurses'.
|
||||||
pkgname=ncurses
|
pkgname=ncurses
|
||||||
version=5.9
|
version=5.9
|
||||||
revision=9
|
revision=10
|
||||||
short_desc="A System V Release 4.0 curses emulation library"
|
short_desc="A System V Release 4.0 curses emulation library"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.gnu.org/software/ncurses/"
|
homepage="http://www.gnu.org/software/ncurses/"
|
||||||
@ -24,17 +24,22 @@ do_configure() {
|
|||||||
# Override config.sub with ours.
|
# Override config.sub with ours.
|
||||||
cp -f ${XBPS_CROSSPFDIR}/config.sub ${wrksrc}
|
cp -f ${XBPS_CROSSPFDIR}/config.sub ${wrksrc}
|
||||||
|
|
||||||
|
# Make sure .pc files are generated
|
||||||
|
mkdir -p /usr/lib/pkgconfig
|
||||||
|
|
||||||
# widec build
|
# widec build
|
||||||
export CFLAGS="$CFLAGS -fPIC"
|
export CFLAGS="$CFLAGS -fPIC"
|
||||||
../configure ${configure_args} \
|
../configure ${configure_args} \
|
||||||
--enable-widec --with-shared --without-debug \
|
--enable-widec --with-shared --without-debug \
|
||||||
--with-manpage-symlinks --without-ada --enable-ext-colors \
|
--with-manpage-symlinks --without-ada --enable-ext-colors \
|
||||||
--without-tests --with-manpage-format=gzip
|
--without-tests --with-manpage-format=gzip \
|
||||||
|
--enable-pc-files PKG_CONFIG=/usr/bin/pkg-config
|
||||||
|
|
||||||
cd ${wrksrc}/ncurses-build
|
cd ${wrksrc}/ncurses-build
|
||||||
# non-widec build
|
# non-widec build
|
||||||
../configure ${configure_args} --with-shared \
|
../configure ${configure_args} --with-shared \
|
||||||
--without-debug --without-ada --without-tests
|
--without-debug --without-ada --without-tests \
|
||||||
|
--enable-pc-files PKG_CONFIG=/usr/bin/pkg-config
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
@ -100,6 +105,7 @@ ncurses-devel_package() {
|
|||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/bin/ncurses*-config"
|
vmove "usr/bin/ncurses*-config"
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/share/man/man3
|
vmove usr/share/man/man3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user