diff --git a/libs/libtasn1/Makefile b/libs/libtasn1/Makefile index 67280715..d471c6ec 100644 --- a/libs/libtasn1/Makefile +++ b/libs/libtasn1/Makefile @@ -8,25 +8,29 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libtasn1 -PKG_VERSION:=4.12 +PKG_VERSION:=4.16.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@GNU/$(PKG_NAME) -PKG_HASH:=6753da2e621257f33f5b051cc114d417e5206a0818fe0b1ecfd6153f70934753 -PKG_LICENSE:=LGPLv2.1+ +PKG_HASH:=0e0fb0903839117cb6e3b56e68222771bebf22ad7fc2295a0ed7d576e8d4329d + +PKG_MAINTAINER:=Nikos Mavrogiannopoulos +PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE_FILES:=COPYING.LIB +PKG_CPE_ID:=cpe:/a:gnu:libtasn1 #PKG_FIXUP:=autoreconf PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk define Package/libtasn1 SECTION:=libs CATEGORY:=Libraries TITLE:=An ASN.1 and DER structures manipulation library - MAINTAINER:=Nikos Mavrogiannopoulos URL:=https://www.gnu.org/software/libtasn1/ endef @@ -35,15 +39,18 @@ define Package/libtasn1/description Distinguish Encoding Rules (DER) manipulation. endef -TARGET_CFLAGS += $(FPIC) +TARGET_CFLAGS += -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections CONFIGURE_ARGS += \ - --enable-shared \ - --disable-gcc-warnings \ - --enable-static + --disable-doc \ + --disable-gcc-warnings \ + --disable-ld-version-script \ + --disable-valgrind-tests define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/bin + # $(INSTALL_DIR) $(1)/usr/bin + # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib @@ -57,4 +64,5 @@ define Package/libtasn1/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/ endef +$(eval $(call HostBuild)) $(eval $(call BuildPackage,libtasn1)) diff --git a/libs/rpcsvc-proto/Makefile b/libs/rpcsvc-proto/Makefile new file mode 100644 index 00000000..b392fcca --- /dev/null +++ b/libs/rpcsvc-proto/Makefile @@ -0,0 +1,53 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=rpcsvc-proto +PKG_RELEASE:=2 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/thkukuk/rpcsvc-proto.git +PKG_SOURCE_DATE:=2020-01-16 +PKG_SOURCE_VERSION:=daba1f3aa715551bd83770053a15153f0e40d27f +PKG_MIRROR_HASH:=38ac6ad69327d4498cebc5b97519210f0643a8c47a3a3409cbae01806631694b + +PKG_MAINTAINER:=Andy Walsh +PKG_LICENSE:=BSD-3-clause +PKG_LICENSE_FILES:=COPYING + +PKG_FIXUP:=autoreconf +PKG_REMOVE_FILES:=autogen.sh +PKG_INSTALL:=1 + +HOST_BUILD_DEPENDS:=gettext-full/host +PKG_BUILD_DEPENDS:=rpcsvc-proto/host + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk +include $(INCLUDE_DIR)/host-build.mk + +define Package/rpcsvc-proto + SECTION:=libs + CATEGORY:=Libraries + TITLE:=rpcgen and rpcsvc proto.x files from glibc + URL:=https://github.com/thkukuk/rpcsvc-proto + DEPENDS:=$(INTL_DEPENDS) + BUILDONLY:=1 +endef + +define Package/rpcsvc-proto/description + This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc. + Additional it contains rpcgen, which is needed to create header files and sources from protocol files. +endef + +# need to use host tool +define Build/Prepare + $(Build/Prepare/Default) + $(SED) 's,.*/rpcgen/rpcgen,\t$(STAGING_DIR_HOSTPKG)/bin/rpcgen,' $(PKG_BUILD_DIR)/rpcsvc/Makefile.am +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsvc $(1)/usr/include/ +endef + +$(eval $(call HostBuild)) +$(eval $(call BuildPackage,rpcsvc-proto))