3 ifneq ($(strip ${IPKG_RULES_INC}),)
4 include $(IPKG_RULES_INC
)
9 PKG_VERSION
:= $(shell cat .
/ipkg
/version
)
10 CURRENT_DIR
:= $(shell pwd
)
11 INSTALL_DIR ?
= $(CURRENT_DIR
)/ipkg-install
15 I_HASERL
:= ipkg
/haserl
20 --enable-variable-prefix
="" \
27 .stamp-configured
: $(BUILD_DEPS
)
30 $(TARGET_CONFIGURE_OPTS
) \
31 CFLAGS
="$(TARGET_CFLAGS) -DMAX_UPLOAD_KB=8192" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
54 touch .stamp-configured
57 .stamp-built
: .stamp-configured
60 $(TARGET_CONFIGURE_OPTS
) \
65 $(INSTALL_DIR
)/usr
/bin
/haserl
: .stamp-built
67 mkdir
-p
$(INSTALL_DIR
)
70 DESTDIR
="$(INSTALL_DIR)" \
74 configure
: .stamp-configured
80 install: $(INSTALL_DIR
)/usr
/bin
/haserl
83 package
: $(INSTALL_DIR
)/usr
/bin
/haserl
85 mkdir
-p
$(I_HASERL
)/usr
/bin
86 cp
-af
$(INSTALL_DIR
)/usr
/bin
/haserl
$(I_HASERL
)/usr
/bin
/
87 $(STRIP
) $(I_HASERL
)/usr
/bin
/*
89 chmod
0755 ipkg
/*/CONTROL
/
90 chmod
0644 ipkg
/*/CONTROL
/control
92 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
93 ifneq ($(strip $(PKG_VERSION
)),)
94 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
97 $(IPKG_BUILD
) $(I_HASERL
) $(IPKG_TARGET_DIR
)
103 DESTDIR
="$(INSTALL_DIR)" \
113 @cat
$(I_HASERL
)/CONTROL
/control
117 .PHONY
: configure build
install package
clean control
This page took 0.051123 seconds and 5 git commands to generate.