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
|
2006-12-08 15:08:09 +00:00
|
|
|
build_dir_tree "${BINDIR}" || return 1
|
2006-07-25 19:00:04 +01:00
|
|
|
build_dir_tree "${INCLUDEDIR}" || return 1
|
|
|
|
|
|
|
|
# install library
|
|
|
|
echo "Installing libraries into '${LIBDIR}'"
|
2009-08-26 11:37:50 +01:00
|
|
|
source src/@NAME@/soversion
|
2006-07-25 19:00:04 +01:00
|
|
|
install_file ${@CNAME@} ${LIBDIR} 0755 || return 1
|
|
|
|
BASE="${@CNAME@_BASE}.so"
|
|
|
|
MAJOR="${BASE}.${SOMAJOR}"
|
2007-09-11 23:21:05 +01:00
|
|
|
MICRO="${MAJOR}.${SOMICRO}"
|
|
|
|
install_symlink "${BASE}" "${MICRO}" "${LIBDIR}"
|
2006-07-25 19:00:04 +01:00
|
|
|
|
|
|
|
# install header
|
|
|
|
echo "Installing header file '${@CNAME@_HEADER}' into ${INCLUDEDIR}"
|
|
|
|
install_header ${@CNAME@_HEADER} ${INCLUDEDIR} 0644 || return 1
|
|
|
|
|
2006-12-08 15:08:09 +00:00
|
|
|
# install config script
|
|
|
|
echo "Installing config script into ${BINDIR}"
|
2007-02-05 13:53:24 +00:00
|
|
|
CONFFILE="${INSTALL_PREFIX}${BINDIR}/@NAME@-config"
|
2006-12-08 15:08:09 +00:00
|
|
|
|
|
|
|
do_cmd rm -f "${CONFFILE}"
|
|
|
|
do_cmd_redir "${CONFFILE}" sed \
|
2006-07-25 19:00:04 +01:00
|
|
|
-e "s,@VERSION@,${VERSION}," \
|
2006-12-08 15:08:09 +00:00
|
|
|
-e "s,@DEP_CFLAGS@,${@CNAME@_DEP_CFLAGS}," \
|
|
|
|
-e "s,@DEP_LIBS@,${@CNAME@_DEP_LIBS}," \
|
2007-09-11 23:06:23 +01:00
|
|
|
-e "s,@LIB_DIR@,${LIBDIR}," \
|
|
|
|
-e "s,@INCLUDE_DIR@,${INCLUDEDIR}," \
|
2006-12-08 15:08:09 +00:00
|
|
|
src/@NAME@/config-script
|
|
|
|
|
|
|
|
do_cmd chmod 0755 "${CONFFILE}"
|
2006-07-25 19:00:04 +01:00
|
|
|
print_success "Done"
|
|
|
|
|
2006-07-25 19:19:59 +01:00
|
|
|
# kate: @KATE_MODELINE@
|
2007-08-08 13:03:18 +01:00
|
|
|
# vim: syntax=sh:@VIM_MODELINE@
|