Browse Source

- fbshot: rework build

master
vanhofen 3 years ago
parent
commit
debdf3d0a9
  1. 22
      package/fbshot/fbshot.mk

22
package/fbshot/fbshot.mk

@ -9,19 +9,17 @@ FBSHOT_DIR = fbshot-$(FBSHOT_VERSION)
FBSHOT_SOURCE = fbshot-$(FBSHOT_VERSION).tar.gz FBSHOT_SOURCE = fbshot-$(FBSHOT_VERSION).tar.gz
FBSHOT_SITE = http://distro.ibiblio.org/amigolinux/download/Utils/fbshot FBSHOT_SITE = http://distro.ibiblio.org/amigolinux/download/Utils/fbshot
$(DL_DIR)/$(FBSHOT_SOURCE):
$(download) $(FBSHOT_SITE)/$(FBSHOT_SOURCE)
FBSHOT_DEPENDENCIES = libpng FBSHOT_DEPENDENCIES = libpng
fbshot: $(FBSHOT_DEPENDENCIES) $(DL_DIR)/$(FBSHOT_SOURCE) | $(TARGET_DIR) define FBSHOT_PATCH_MAKEFILE
$(REMOVE)/$(PKG_DIR) $(SED) 's| gcc | $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) |' $(PKG_BUILD_DIR)/Makefile
$(UNTAR)/$(PKG_SOURCE) $(SED) '/strip fbshot/d' $(PKG_BUILD_DIR)/Makefile
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR)) endef
$(CHDIR)/$(PKG_DIR); \ FBSHOT_POST_PATCH_HOOKS += FBSHOT_PATCH_MAKEFILE
$(SED) 's| gcc | $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) |' Makefile; \
$(SED) '/strip fbshot/d' Makefile; \ fbshot: | $(TARGET_DIR)
$(call PREPARE)
$(CHDIR)/$($(PKG)_DIR); \
$(MAKE); \ $(MAKE); \
$(INSTALL_EXEC) -D fbshot $(TARGET_bindir)/fbshot $(INSTALL_EXEC) -D fbshot $(TARGET_bindir)/fbshot
$(REMOVE)/$(PKG_DIR) $(call TARGET_FOLLOWUP)
$(TOUCH)

Loading…
Cancel
Save