PKG_NAME="gpio_lib_c" PKG_VERSION="0.1" #PKG_SHA256="953be622e88323c6f43fad61ffd05bebe73b9fd9863a46d68b052d2aa7d71ce2" PKG_ARCH="arm" PKG_LICENSE="MIT" PKG_SITE="https://github.com/TinkerBoard/gpio_lib_c" PKG_URL="https://github.com/TinkerBoard/gpio_lib_c/archive/sbc/tinkerboard/c.zip" PKG_SOURCE_DIR="gpio_lib_c-sbc-tinkerboard-c" PKG_DEPENDS_TARGET="toolchain" PKG_SECTION="system" PKG_SHORTDESC="TinkerBoard c gpio library" PKG_LONGDESC="TinkerBoard c gpio library" PKG_TOOLCHAIN="manual" #PKG_MAKE_OPTS="" make_target() { echo echo "WiringPi Library" echo cd $(get_build_dir gpio_lib_c)/wiringPi make -j5 DEFS='-D_GNU_SOURCE -DTINKER_BOARD' echo echo "WiringPi Devices Library" echo cd ../devLib make -j5 echo echo "GPIO Utility" echo cd ../gpio make -j5 DEFS='-D_GNU_SOURCE -DTINKER_BOARD' } makeinstall_target() { mkdir -p $INSTALL/usr/lib cd $(get_build_dir gpio_lib_c)/wiringPi echo echo "WiringPi Install" install -m 0755 libwiringPi.so.2.31 $INSTALL/usr/lib/libwiringPi.so.2.31 ln -sf $INSTALL/usr/lib/libwiringPi.so.2.31 $INSTALL/usr/lib/libwiringPi.so cd ../devLib echo "WiringPi Devices Install" install -m 0755 libwiringPiDev.so.2.31 $INSTALL/usr/lib/libwiringPiDev.so.2.31 ln -sf $INSTALL/usr/lib/libwiringPiDev.so.2.31 $INSTALL/usr/lib/libwiringPiDev.so echo "GPIO Install" cd ../gpio mkdir -p $INSTALL/usr/bin cp gpio $INSTALL/usr/bin }