| 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.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= matrixtunnel
|
|---|
| 10 | PKG_VERSION:= 0.1
|
|---|
| 11 | PKG_RELEASE:= 1
|
|---|
| 12 | PKG_MD5SUM:= ffbbe0c50cc1863f6080aca302f7e2c8
|
|---|
| 13 |
|
|---|
| 14 | PKG_SOURCE_URL:= http://znerol.ch/files
|
|---|
| 15 | PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 16 |
|
|---|
| 17 | WRKSRC= ${WRKDIR}/$(PKG_NAME)
|
|---|
| 18 |
|
|---|
| 19 | include $(TOPDIR)/mk/package.mk
|
|---|
| 20 |
|
|---|
| 21 | $(eval $(call PKG_template,MATRIXTUNNEL,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 22 |
|
|---|
| 23 | $(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
|
|---|
| 24 | (cd $(WRKBUILD); \
|
|---|
| 25 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 26 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 27 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|---|
| 28 | LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 29 | ./configure \
|
|---|
| 30 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 31 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 32 | --build=$(GNU_HOST_NAME) \
|
|---|
| 33 | --program-prefix="" \
|
|---|
| 34 | --program-suffix="" \
|
|---|
| 35 | --prefix=/usr \
|
|---|
| 36 | --exec-prefix=/usr \
|
|---|
| 37 | --bindir=/usr/sbin \
|
|---|
| 38 | --datadir=/usr/share \
|
|---|
| 39 | --includedir=/usr/include \
|
|---|
| 40 | --infodir=/usr/share/info \
|
|---|
| 41 | --libdir=/usr/lib \
|
|---|
| 42 | --libexecdir=/usr/lib \
|
|---|
| 43 | --localstatedir=/var \
|
|---|
| 44 | --mandir=/usr/share/man \
|
|---|
| 45 | --sbindir=/usr/sbin \
|
|---|
| 46 | --sysconfdir=/etc \
|
|---|
| 47 | --enable-largefile \
|
|---|
| 48 | --disable-nls \
|
|---|
| 49 | --without-libiconv-prefix \
|
|---|
| 50 | --without-libintl-prefix \
|
|---|
| 51 | --with-matrixssl-src=${WRKDIR}/matrixssl \
|
|---|
| 52 | );
|
|---|
| 53 | touch $@
|
|---|
| 54 |
|
|---|
| 55 | $(WRKBUILD)/.built:
|
|---|
| 56 | rm -rf $(WRKINST)
|
|---|
| 57 | mkdir -p $(WRKINST)
|
|---|
| 58 | $(MAKE) -C $(WRKBUILD)/src \
|
|---|
| 59 | DESTDIR="$(WRKINST)" \
|
|---|
| 60 | all install
|
|---|
| 61 | touch $@
|
|---|
| 62 |
|
|---|
| 63 | $(IPKG_MATRIXTUNNEL):
|
|---|
| 64 | install -d -m0755 $(IDIR_MATRIXTUNNEL)/usr/sbin
|
|---|
| 65 | $(CP) $(WRKINST)/usr/sbin/matrixtunnel $(IDIR_MATRIXTUNNEL)/usr/sbin/
|
|---|
| 66 | $(RSTRIP) $(IDIR_MATRIXTUNNEL)
|
|---|
| 67 | $(IPKG_BUILD) $(IDIR_MATRIXTUNNEL) $(PACKAGE_DIR)
|
|---|