300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
25 lines
555 B
Makefile
25 lines
555 B
Makefile
#############################################################
|
|
#
|
|
# orc
|
|
#
|
|
#############################################################
|
|
ORC_VERSION = 0.4.14
|
|
ORC_SITE = http://code.entropywave.com/download/orc/
|
|
ORC_INSTALL_STAGING = YES
|
|
|
|
define ORC_REMOVE_BUGREPORT
|
|
rm -f $(TARGET_DIR)/usr/bin/orc-bugreport
|
|
endef
|
|
|
|
define ORC_REMOVE_DEVFILES
|
|
rm -f $(TARGET_DIR)/usr/bin/orcc
|
|
endef
|
|
|
|
ORC_POST_INSTALL_TARGET_HOOKS += ORC_REMOVE_BUGREPORT
|
|
|
|
ifneq ($(BR2_HAVE_DEVFILES),y)
|
|
ORC_POST_INSTALL_TARGET_HOOKS += ORC_REMOVE_DEVFILES
|
|
endif
|
|
|
|
$(eval $(call AUTOTARGETS))
|