Added wx200d, thanks Geoffrey Kruse, corrected typo in tmsnc/Config.in
[openwrt.git] / package / wx200d / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=wx200d
6 PKG_VERSION:=1.3
7 PKG_RELEASE:=1
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)
12 PKG_CAT:=zcat
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,WX200D,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
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" \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/usr \
29 --without-libiconv-prefix \
30 --without-libintl-prefix \
31 --disable-nls \
32 );
33 touch $@
34
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"
39 touch $@
40
41 $(IPKG_WX200D):
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)
This page took 0.03975 seconds and 5 git commands to generate.