| [c8b93bd] | 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| [475ad56] | 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| [c8b93bd] | 9 | PKG_NAME:= igmpproxy
|
|---|
| [ee76725f] | 10 | PKG_VERSION:= 0.1
|
|---|
| [c8b93bd] | 11 | PKG_RELEASE:= 1
|
|---|
| [ee76725f] | 12 | PKG_MD5SUM:= c56f41ec195bc1fe016369bf74efc5a1
|
|---|
| [c8b93bd] | 13 |
|
|---|
| 14 | PKG_SOURCE_URL:= @SF/igmpproxy
|
|---|
| [ee76725f] | 15 | PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| [475ad56] | 16 |
|
|---|
| [c8b93bd] | 17 | include $(TOPDIR)/mk/package.mk
|
|---|
| [475ad56] | 18 |
|
|---|
| 19 | $(eval $(call PKG_template,IGMPPROXY,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 20 |
|
|---|
| [d419478] | 21 | $(WRKBUILD)/.configured:
|
|---|
| [ee76725f] | 22 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 23 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 24 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 25 | ./configure \
|
|---|
| 26 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --build=$(GNU_HOST_NAME) \
|
|---|
| 29 | --program-prefix="" \
|
|---|
| 30 | --program-suffix="" \
|
|---|
| 31 | --prefix=/usr \
|
|---|
| 32 | --exec-prefix=/usr \
|
|---|
| 33 | --bindir=/usr/bin \
|
|---|
| 34 | --datadir=/usr/share \
|
|---|
| 35 | --includedir=/usr/include \
|
|---|
| 36 | --infodir=/usr/share/info \
|
|---|
| 37 | --libdir=/usr/lib \
|
|---|
| 38 | --libexecdir=/usr/lib \
|
|---|
| 39 | --localstatedir=/var \
|
|---|
| 40 | --mandir=/usr/share/man \
|
|---|
| 41 | --sbindir=/usr/sbin \
|
|---|
| 42 | --sysconfdir=/etc \
|
|---|
| 43 | --disable-nls \
|
|---|
| 44 | --enable-shared \
|
|---|
| 45 | --disable-static \
|
|---|
| 46 | );
|
|---|
| [475ad56] | 47 | touch $@
|
|---|
| 48 |
|
|---|
| [d419478] | 49 | $(WRKBUILD)/.built:
|
|---|
| [ee76725f] | 50 | $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -std=gnu99" -C $(WRKBUILD)/src
|
|---|
| [475ad56] | 51 | touch $@
|
|---|
| 52 |
|
|---|
| 53 | $(IPKG_IGMPPROXY):
|
|---|
| 54 | mkdir -p $(IDIR_IGMPPROXY)/usr/sbin $(IDIR_IGMPPROXY)/etc
|
|---|
| [d419478] | 55 | $(CP) $(WRKBUILD)/src/$(PKG_NAME) $(IDIR_IGMPPROXY)/usr/sbin/
|
|---|
| [ee76725f] | 56 | $(CP) $(WRKBUILD)/$(PKG_NAME).conf $(IDIR_IGMPPROXY)/etc
|
|---|
| [c8b93bd] | 57 | $(RSTRIP) $(IDIR_IGMPPROXY)
|
|---|
| [475ad56] | 58 | $(IPKG_BUILD) $(IDIR_IGMPPROXY) $(PACKAGE_DIR)
|
|---|