3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0f90c099dddcdd46ac568d707822ec4c
9 PKG_SOURCE_URL
:=@SF
/wx200d
10 PKG_SOURCE
:=wx200d-
$(PKG_VERSION
).
tar.gz
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,WX200D
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
19 (cd
$(PKG_BUILD_DIR
); \
20 $(TARGET_CONFIGURE_OPTS
) \
21 CFLAGS
="$(TARGET_CFLAGS)" \
22 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
23 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
29 --without-libiconv-prefix \
30 --without-libintl-prefix \
35 $(PKG_BUILD_DIR
)/.built
:
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 CC
=$(TARGET_CC
) LD
=$(TARGET_CROSS
)ld \
38 CFLAGS
="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ"
42 install -d
-m0755
$(IDIR_WX200D
)/usr
/bin
43 install -m0644
$(PKG_BUILD_DIR
)/wx200 \
44 $(PKG_BUILD_DIR
)/wxstdout \
45 $(PKG_BUILD_DIR
)/wxfilter \
46 $(PKG_BUILD_DIR
)/wxdebug
$(IDIR_WX200D
)/usr
/bin
/
47 mkdir
-p
$(IDIR_WX200D
)/usr
/sbin
/
48 install -m0644
$(PKG_BUILD_DIR
)/wx200d \
49 $(PKG_BUILD_DIR
)/wxread
$(IDIR_WX200D
)/usr
/sbin
/
50 $(RSTRIP
) $(IDIR_WX200D
)
51 $(IPKG_BUILD
) $(IDIR_WX200D
) $(PACKAGE_DIR
)