mirror of https://git.wownero.com/dsc/mxe.git
termcap: install *.pc file
This commit is contained in:
parent
03ba05e2d8
commit
f9ff614bf9
|
@ -20,15 +20,25 @@ endef
|
||||||
|
|
||||||
define $(PKG)_BUILD
|
define $(PKG)_BUILD
|
||||||
# configure script is ancient and lacks cross-compiling support
|
# configure script is ancient and lacks cross-compiling support
|
||||||
cd '$(1)' && autoreconf -fi
|
cd '$(SOURCE_DIR)' && autoreconf -fi
|
||||||
cd '$(1)' && ./configure \
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
||||||
$(MXE_CONFIGURE_OPTS)
|
$(MXE_CONFIGURE_OPTS)
|
||||||
$(MAKE) -C '$(1)' -j '$(JOBS)' \
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' \
|
||||||
AR='$(TARGET)-ar' \
|
AR='$(TARGET)-ar' \
|
||||||
oldincludedir= \
|
oldincludedir= \
|
||||||
install
|
install
|
||||||
|
|
||||||
|
# create pkg-config file
|
||||||
|
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
|
||||||
|
(echo 'Name: $(PKG)'; \
|
||||||
|
echo 'Version: $($(PKG)_VERSION)'; \
|
||||||
|
echo 'Description: $($(PKG)_DESCR)'; \
|
||||||
|
echo 'Requires:'; \
|
||||||
|
echo 'Libs: -l$(PKG)'; \
|
||||||
|
echo 'Cflags.private:';) \
|
||||||
|
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'
|
||||||
|
|
||||||
# no shared support in configure/Makefile
|
# no shared support in configure/Makefile
|
||||||
$(if $(BUILD_SHARED), \
|
$(if $(BUILD_SHARED), \
|
||||||
$(MAKE_SHARED_FROM_STATIC) '$(1)/libtermcap.a')
|
$(MAKE_SHARED_FROM_STATIC) '$(BUILD_DIR)/libtermcap.a')
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in New Issue