mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 15:53:29 +08:00
514291f39e
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the transition into a new directory structure for DL_DIR. This commit has been generated with the following scripts: for i in $(find . -iname "*.mk"); do if ! grep -q "\$(DL_DIR)" ${i}; then continue fi pkg_name="$(basename $(dirname ${i}))" [ "${pkg_name}" = "package" ] && continue raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_') pkg_dl_dir="${raw_pkg_name}_DL_DIR" sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i} done Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
28 lines
808 B
Makefile
28 lines
808 B
Makefile
################################################################################
|
|
#
|
|
# fan-ctrl
|
|
#
|
|
################################################################################
|
|
|
|
# no release, so grab .c file directly from viewvc
|
|
FAN_CTRL_VERSION = 1.3
|
|
FAN_CTRL_SOURCE = fan-ctrl.c?revision=$(FAN_CTRL_VERSION)
|
|
FAN_CTRL_SITE = http://fan-ctrl.cvs.sourceforge.net/viewvc/fan-ctrl/fan-ctrl
|
|
FAN_CTRL_LICENSE = GPL-2.0+
|
|
FAN_CTRL_LICENSE_FILES = fan-ctrl.c
|
|
|
|
define FAN_CTRL_EXTRACT_CMDS
|
|
cp $(FAN_CTRL_DL_DIR)/$(FAN_CTRL_SOURCE) $(@D)/fan-ctrl.c
|
|
endef
|
|
|
|
define FAN_CTRL_BUILD_CMDS
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
|
|
$(@D)/fan-ctrl.c -o $(@D)/fan-ctrl
|
|
endef
|
|
|
|
define FAN_CTRL_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 755 $(@D)/fan-ctrl $(TARGET_DIR)/usr/sbin/fan-ctrl
|
|
endef
|
|
|
|
$(eval $(generic-package))
|