libgpg-error: fix riscv64
[openadk.git] / package / olsrd / Makefile
blobc940d7ac33e03a1952a01724ef1814060e7311c0
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= olsrd
7 PKG_VERSION:= 0.9.8
8 PKG_RELEASE:= 1
9 PKG_HASH:= ee9e524224e5d5304dcf61f1dc5485c569da09d382934ff85b233be3e24821a3
10 PKG_DESCR:= optimized link state routing protocol daemon
11 PKG_SECTION:= net/wifi
12 PKG_BUILDDEP:= gpsd
13 PKG_DEPENDS:= gpsd
14 PKG_SITES:= https://github.com/OLSR/olsrd/archive/refs/tags/
15 PKG_NOPARALLEL:= 1
17 DISTFILES:= v${PKG_VERSION}.tar.gz
19 PKG_SUBPKGS:= OLSRD OLSRD_MOD_DYN_GW OLSRD_MOD_HTTPINFO
20 PKG_SUBPKGS+= OLSRD_MOD_NAMESERVICE OLSRD_MOD_TAS
22 PKGSD_OLSRD_MOD_DYN_GW:= support for dynamic gateway
23 PKGSN_OLSRD_MOD_DYN_GW:= olsrd
24 PKGSD_OLSRD_MOD_HTTPINFO:= support for httpinfo
25 PKGSN_OLSRD_MOD_HTTPINFO:= olsrd
26 PKGSD_OLSRD_MOD_NAMESERVICE:= nameservice support
27 PKGSN_OLSRD_MOD_NAMESERVICE:= olsrd
28 PKGSD_OLSRD_MOD_TAS:= tas support
29 PKGSN_OLSRD_MOD_TAS:= olsrd
31 include ${ADK_TOPDIR}/mk/package.mk
33 define PKG_mod_template
35 INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
37 ${2}-install:
38 $${INSTALL_DIR} $${IDIR_${1}}/usr/lib
39 $${CP} $${WRKINST}/usr/lib/olsrd_${2}.so.* $${IDIR_${1}}/usr/lib/
41 endef
43 $(eval $(call PKG_template,OLSRD,olsrd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
44 $(eval $(call PKG_template,OLSRD_MOD_DYN_GW,olsrd-mod-dyn-gw,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
45 $(eval $(call PKG_template,OLSRD_MOD_HTTPINFO,olsrd-mod-httpinfo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
46 $(eval $(call PKG_template,OLSRD_MOD_NAMESERVICE,olsrd-mod-nameservice,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
48 $(eval $(call PKG_mod_template,OLSRD_MOD_DYN_GW,dyn_gw))
49 $(eval $(call PKG_mod_template,OLSRD_MOD_HTTPINFO,httpinfo))
50 $(eval $(call PKG_mod_template,OLSRD_MOD_NAMESERVICE,nameservice))
52 CONFIG_STYLE:= manual
54 TARGET_CFLAGS+= -fPIC -D_GNU_SOURCE
55 ALL_TARGET+= libs
56 INSTALL_TARGET+= install_libs
57 MAKE_ENV+= OS="linux" DEBUG=0 STRIP="true" VERBOSE=1 OFLAGS="${TARGET_CFLAGS}" prefix="/usr"
59 post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
60 ${INSTALL_DIR} ${IDIR_OLSRD}/usr/sbin ${IDIR_OLSRD}/etc/olsrd
61 ${INSTALL_DATA} ${WRKINST}/etc/olsrd/olsrd.conf ${IDIR_OLSRD}/etc/olsrd
62 ${INSTALL_BIN} ${WRKINST}/usr/sbin/olsrd ${IDIR_OLSRD}/usr/sbin/
64 include ${ADK_TOPDIR}/mk/pkg-bottom.mk