2006-07-24 22:20:28 +01:00
|
|
|
build_target @NAME@
|
2006-07-24 20:19:15 +01:00
|
|
|
|
|
|
|
# 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}'"
|
2006-07-24 22:20:28 +01:00
|
|
|
install_file ${@PNAME@} ${LIBDIR} 0755 || return 1
|
|
|
|
BASE="${@PNAME@_BASE}.so"
|
2006-07-24 20:19:15 +01:00
|
|
|
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
|
2006-07-24 22:20:28 +01:00
|
|
|
echo "Installing header file '${@PNAME@_HEADER}' into ${INCLUDEDIR}"
|
|
|
|
install_header ${@PNAME@_HEADER} ${INCLUDEDIR} 0644 || return 1
|
2006-07-24 20:19:15 +01:00
|
|
|
|
|
|
|
# install pkgconfig file
|
|
|
|
echo "Installing package config file into ${PKGCONFDIR}"
|
2006-07-24 22:20:28 +01:00
|
|
|
PKGCONFFILE=${PKGCONFDIR}/@PNAME@.pc
|
2006-07-24 20:19:15 +01:00
|
|
|
do_cmd rm -f ${PKGCONFFILE}
|
|
|
|
do_cmd_redir ${PKGCONFFILE} sed \
|
|
|
|
-e "s,@VERSION@,${VERSION}," \
|
|
|
|
-e "s,@LIBDIR@,${FINALLIBDIR}," \
|
|
|
|
-e "s,@INCLUDEDIR@,${FINALINCLUDEDIR}," \
|
2006-07-24 21:55:12 +01:00
|
|
|
src/@NAME@/pkgconf.in
|
2006-07-24 20:19:15 +01:00
|
|
|
do_cmd chmod 0644 ${PKGCONFFILE}
|
|
|
|
print_success "Done"
|
|
|
|
|
2006-07-24 21:55:12 +01:00
|
|
|
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
|
|
|
|
# vim: expandtab:ts=4:sw=4
|