package/norm: make it a waf-package
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
4c06e102a6
commit
c98a030bc9
|
@ -15,32 +15,10 @@ ifeq ($(BR2_PACKAGE_LIBNETFILTER_QUEUE),y)
|
||||||
NORM_DEPENDENCIES += libnetfilter_queue
|
NORM_DEPENDENCIES += libnetfilter_queue
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define NORM_CONFIGURE_CMDS
|
|
||||||
cd $(@D); \
|
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
|
||||||
./waf configure --prefix=/usr
|
|
||||||
endef
|
|
||||||
|
|
||||||
define NORM_BUILD_CMDS
|
|
||||||
cd $(@D); \
|
|
||||||
$(TARGET_MAKE_ENV) \
|
|
||||||
./waf build
|
|
||||||
endef
|
|
||||||
|
|
||||||
# install target doesn't install headers unfortunately...
|
# install target doesn't install headers unfortunately...
|
||||||
define NORM_INSTALL_STAGING_CMDS
|
define NORM_INSTALL_HEADERS
|
||||||
cd $(@D); \
|
|
||||||
$(TARGET_MAKE_ENV) \
|
|
||||||
DESTDIR=$(STAGING_DIR) \
|
|
||||||
./waf install
|
|
||||||
cp -f $(@D)/include/norm* $(STAGING_DIR)/usr/include
|
cp -f $(@D)/include/norm* $(STAGING_DIR)/usr/include
|
||||||
endef
|
endef
|
||||||
|
NORM_POST_INSTALL_STAGING_HOOKS += NORM_INSTALL_HEADERS
|
||||||
|
|
||||||
define NORM_INSTALL_TARGET_CMDS
|
$(eval $(waf-package))
|
||||||
cd $(@D); \
|
|
||||||
$(TARGET_MAKE_ENV) \
|
|
||||||
DESTDIR=$(TARGET_DIR) \
|
|
||||||
./waf install
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(generic-package))
|
|
||||||
|
|
Loading…
Reference in a new issue