X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=prince%2FMakefile;h=ce13f43c9bc1777b1f06ef94c23df0352e7db51e;hb=3e96c851a7871f38c52c7be0e0f693b045fe0758;hp=046dc179ced7c34ab4de1ed15cb8c18c9f5b09da;hpb=3349cae2430e2e6d5d70431bc642c429b1c8464c;p=feed%2Frouting.git diff --git a/prince/Makefile b/prince/Makefile index 046dc17..ce13f43 100644 --- a/prince/Makefile +++ b/prince/Makefile @@ -8,56 +8,55 @@ include $(TOPDIR)/rules.mk PKG_NAME:=prince -PKG_VERSION:=v0.4 -PKG_RELEASE:=1 +PKG_VERSION:=0.4 +PKG_RELEASE:=3 -# out of source build -CMAKE_BINARY_SUBDIR:=build +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/AdvancedNetworkingSystems/prince/archive/refs/tags/v$(PKG_VERSION).tar.gz? +PKG_HASH:=9e3ce87343f5ea1d66757f8c704b62ff47d5eb245a191cf1e6a9ec106c5da90e -PKG_BUILD_DIR:=$(BUILD_DIR)/prince-$(PKG_VERSION) -PKG_MIRROR_HASH:=19a3cae09f28a5ef07fc0f5ff12cf62c776a94fbf1626336ab04951775c104de -PKG_INSTALL:=0 +PKG_MAINTAINER:=Gabriele Gemmi PKG_LICENSE:=MIT -PKG_SOURCE:=prince-$(PKG_VERSION).tar.xz -PKG_SOURCE_PROTO:=git -PKG_SOURCE_SUBDIR:=prince-$(PKG_VERSION) -PKG_SOURCE_URL:=https://github.com/AdvancedNetworkingSystems/prince.git -PKG_SOURCE_VERSION:=v0.4 -PKG_USE_MIPS16:=0 +PKG_LICENSE_FILES:=LICENSE + +PKG_BUILD_FLAGS:=no-mips16 + +# out of source build +CMAKE_BINARY_SUBDIR:=build include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk define Package/prince - SECTION :=net - CATEGORY :=Network - SUBMENU :=Routing and Redirection - Mantainer :=Gabriele Gemmi - TITLE :=Prince - URL :=https://github.com/AdvancedNetworkingSystems/prince - MENU :=0 - DEPENDS := +libjson-c +libpthread + SECTION:=net + CATEGORY:=Network + SUBMENU:=Routing and Redirection + TITLE:=Prince + URL:=https://github.com/AdvancedNetworkingSystems/prince + DEPENDS:=+libjson-c +libpthread endef define Package/prince/description - Prince is an open source implementation of the PopRouting Algorithm. - It has been developed as a Google Summer of Code Project in collaboration with Freifunk and the University of Trento. + Prince is an open source implementation of the PopRouting Algorithm. + It has been developed as a Google Summer of Code Project in collaboration with Freifunk and the University of Trento. - Prince fetches topology data from a Link State routing daemon (OONF, OLSR, OSPF, etc), - calculates the betweenness centrality using the topology and then computes the - the timers' optimal values using these data. At the end of the computation the timers are pushed back to the routing daemon. - Since v0.4 it supports both OONF and OLSRd. + Prince fetches topology data from a Link State routing daemon (OONF, OLSR, OSPF, etc), + calculates the betweenness centrality using the topology and then computes the + the timers' optimal values using these data. At the end of the computation the timers are pushed back to the routing daemon. + Since v0.4 it supports both OONF and OLSRd. endef define Package/prince/install $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/prince $(1)/usr/bin/prince + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_DATA) $(PKG_BUILD_DIR)/build/libprince_oonf.so $(1)/usr/lib + $(INSTALL_DATA) $(PKG_BUILD_DIR)/build/libprince_olsr.so $(1)/usr/lib + $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/prince $(1)/usr/bin/prince $(INSTALL_BIN) ./files/prince.init $(1)/etc/init.d/prince $(INSTALL_DATA) ./files/prince.conf $(1)/etc/prince.conf - $(INSTALL_DATA) $(PKG_BUILD_DIR)/build/libprince_oonf.so $(1)/usr/lib - $(INSTALL_DATA) $(PKG_BUILD_DIR)/build/libprince_olsr.so $(1)/usr/lib endef CFLAGS += $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)