diff --git a/utils/gpsd/Makefile b/utils/gpsd/Makefile index 083a22b4c..ae24b8e90 100644 --- a/utils/gpsd/Makefile +++ b/utils/gpsd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gpsd PKG_VERSION:=3.21 -PKG_RELEASE:=2 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME) @@ -70,6 +70,18 @@ define Package/gpsd-clients/description testing the GPS daemon. endef +define Package/gpsd-utils + $(call Package/gpsd/Default) + SECTION:=utils + CATEGORY:=Utilities + TITLE:=GPS daemon utils +endef + +define Package/gpsd-utils/description + $(call Package/gpsd/Default/description) + This package contains utilities for interacting with GPS daemon. +endef + define Package/libgps $(call Package/gpsd/Default) SECTION:=libs @@ -83,6 +95,7 @@ define Package/libgps/description endef SCONS_VARS += \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) -L$(STAGING_DIR)/usr/lib" \ LINKFLAGS="$(TARGET_LDFLAGS)" SCONS_OPTIONS += \ @@ -104,7 +117,7 @@ SCONS_OPTIONS += \ implicit_link=no \ chrpath=no \ manbuild=no \ - sysroot="$(STAGING_DIR)" \ + sysroot="$(TOOLCHAIN_DIR)" \ target="$(TARGET_CROSS:-=)" define Build/InstallDev @@ -137,6 +150,11 @@ define Package/gpsd-clients/install $(1)/usr/bin/ endef +define Package/gpsd-utils/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsdctl $(1)/usr/sbin/ +endef + define Package/libgps/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/ @@ -144,4 +162,5 @@ endef $(eval $(call BuildPackage,gpsd)) $(eval $(call BuildPackage,gpsd-clients)) +$(eval $(call BuildPackage,gpsd-utils)) $(eval $(call BuildPackage,libgps))