2006-07-25 19:00:04 +01:00
|
|
|
build_target @NAME@
|
|
|
|
|
|
|
|
# make paths (this is for Gentoo in particular)
|
|
|
|
build_dir_tree "${LIBDIR}" || return 1
|
|
|
|
build_dir_tree "${PKGCONFDIR}" || return 1
|
|
|
|
build_dir_tree "${INCLUDEDIR}" || return 1
|
|
|
|
|
|
|
|
# install library
|
|
|
|
echo "Installing libraries into '${LIBDIR}'"
|
|
|
|
install_file ${@CNAME@} ${LIBDIR} 0755 || return 1
|
|
|
|
BASE="${@CNAME@_BASE}.so"
|
|
|
|
MAJOR="${BASE}.${SOMAJOR}"
|
|
|
|
MINOR="${MAJOR}.${SOMINOR}"
|
|
|
|
MICRO="${MINOR}.${SOMICRO}"
|
|
|
|
install_symlink "${MINOR}" "${MICRO}" "${LIBDIR}"
|
|
|
|
install_symlink "${MAJOR}" "${MINOR}" "${LIBDIR}"
|
|
|
|
install_symlink "${BASE}" "${MAJOR}" "${LIBDIR}"
|
|
|
|
|
|
|
|
# install header
|
|
|
|
echo "Installing header file '${@CNAME@_HEADER}' into ${INCLUDEDIR}"
|
|
|
|
install_header ${@CNAME@_HEADER} ${INCLUDEDIR} 0644 || return 1
|
|
|
|
|
|
|
|
# install pkgconfig file
|
|
|
|
echo "Installing package config file into ${PKGCONFDIR}"
|
2006-07-31 17:13:00 +01:00
|
|
|
PKGCONFFILE=${PKGCONFDIR}/@NAME@.pc
|
2006-07-25 19:00:04 +01:00
|
|
|
do_cmd rm -f ${PKGCONFFILE}
|
|
|
|
do_cmd_redir ${PKGCONFFILE} sed \
|
|
|
|
-e "s,@VERSION@,${VERSION}," \
|
|
|
|
-e "s,@LIBDIR@,${FINALLIBDIR}," \
|
|
|
|
-e "s,@INCLUDEDIR@,${FINALINCLUDEDIR}," \
|
|
|
|
src/@NAME@/pkgconf.in
|
|
|
|
do_cmd chmod 0644 ${PKGCONFFILE}
|
|
|
|
print_success "Done"
|
|
|
|
|
2006-07-25 19:19:59 +01:00
|
|
|
# kate: @KATE_MODELINE@
|
|
|
|
# vim: @VIM_MODELINE@
|