#!/bin/bash
# Copyright (c) 2000-2015 Synology Inc. All rights reserved.

if ! checkPlatformFunction SYNO_FEA_ROUTER_COMMON; then
	SkipThisProject
	return
fi

case "$PLATFORM_FAMILY" in
	SYNOPLAT_F_PPC|SYNOPLAT_F_ARMV5)
		SkipThisProject
		return
		;;
	*)
		;;
esac

make install PREFIX="/usr" DESTDIR="$TmpInstDir"

clean_unnecessary_files()
{
   rm -fr ${TmpInstDir}/{usr/share,usr/local,usr/include,usr/lib/pkgconfig,usr/lib/{*.a,*.la}}
}
strip_binary()
{
	if [ "x$NOSTRIP" != "xNOSTRIP" ]; then
		${STRIP} ${TmpInstDir}/usr/lib/*
		${STRIP} ${TmpInstDir}/usr/bin/*
	fi
}

clean_unnecessary_files
strip_binary
