cake
/
libp7
Archived
1
0
Fork 1

Corrected configure scripts

This commit is contained in:
Thomas Touhey 2017-02-20 00:11:52 +01:00
parent 8adb0dc9c5
commit 0fbc0e2fb8
4 changed files with 23 additions and 6 deletions

View File

@ -176,16 +176,17 @@ $(eval $(call make-moduleobj-rule,$(mod))))
$(call imsg,Installing the configuration tool.)
$(call qcmd,$(INST) -m 755 -d "$(IBINDIR)")
$(call qcmd,tools/write-config \
--name=$(NAME) --version=$(VERSION) \
--name=$(NAME) --version=$(VERSION) --target="$(TARGET)" \
--runlibs="$(RLIBS)" \
--maintainer="$(MAINTAINER_NAME) <$(MAINTAINER_MAIL)>" \
--incdir="$(OIINCDIR)/lib$(NAME)-$(VERSION)" --libdir="$(OILIBDIR)" \
>"$(IBINDIR)/lib$(NAME)-config" \
&& chmod 755 "$(IBINDIR)/lib$(NAME)-config")
>"$(IBINDIR)/$(TARGET)lib$(NAME)-config" \
&& chmod 755 "$(IBINDIR)/$(TARGET)lib$(NAME)-config")
$(call imsg,Installing the pkg-config configuration.)
$(call qcmd,$(INST) -m 755 -d "$(IPKGDIR)")
$(call qcmd,tools/write-pkg-config \
--name=$(NAME) --version=$(VERSION) \
--name=$(NAME) --version=$(VERSION) --runlibs="$(RLIBS)" \
--description="$(DESCRIPTION)" \
--incdir="$(OIINCDIR)/lib$(NAME)-$(VERSION)" --libdir="$(OILIBDIR)" \
>"$(IPKGDIR)/lib$(NAME).pc" \

View File

@ -27,6 +27,12 @@
# Project version string
VERSION := $(MAJOR).$(MINOR)$(if $(INDEV),-indev)
# Runtime libs (later: libg1m and libfontcharacter)
RLIBS :=
# Compilation time libs
LIBS := zlib $(RLIBS)
#******************************************************************************#
# Project directories #
#******************************************************************************#

View File

@ -18,6 +18,8 @@ incdir=''
#******************************************************************************#
for arg ; do case "$arg" in
--name=*) name="${arg#*=}" ;;
--target=*) target="${arg#*=}" ;;
--runlibs=*) runlibs="${arg#*=}" ;;
--version=*) version="${arg#*=}" ;;
--maintainer=*) maintainer="${arg#*=}" ;;
--libdir=*) libdir="${arg#*=}" ;;
@ -74,8 +76,14 @@ for arg ; do case "\$arg" in
esac; done
# Put
[ \$put_cflags ] && echo "-I$incdir"
[ \$put_libs ] && echo "-L$libdir -l$name"
if [ \$put_cflags ]; then
echo "-I$incdir"
for rdep in ${runlibs}; do ${target}\${rdep}-config --cflags; done
fi
if [ \$put_libs ]; then
echo "-L$libdir -l$name"
for rdep in ${runlibs}; do ${target}\${rdep}-config --libs; done
fi
[ \$put_cflags\$put_libs ] || usage
# End of file

View File

@ -18,6 +18,7 @@ for arg ; do case "$arg" in
--name=*) name="${arg#*=}" ;;
--description=*) description="${arg#*=}" ;;
--version=*) version="${arg#*=}" ;;
--runlibs=*) runlibs="${arg#*=}" ;;
--libdir=*) libdir="${arg#*=}" ;;
--incdir=*) incdir="${arg#*=}" ;;
esac; done
@ -32,6 +33,7 @@ libdir=$libdir
Name: lib$name
Description: $description
Version: $version
Requires: $runlibs
Libs: -L\${libdir} -l$name
Cflags: -I\${includedir}
EOF