source: freewrt/package/tmsnc/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[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
[c8b93bd]7PKG_NAME:= tmsnc
8PKG_VERSION:= 0.3.1
9PKG_RELEASE:= 1
10PKG_MD5SUM:= 3b30e5dab0b1b679d2b945c3a5713636
[475ad56]11
[c8b93bd]12PKG_SOURCE_URL:= @SF/tmsnc
13PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
[475ad56]14
[c8b93bd]15include $(TOPDIR)/mk/package.mk
[475ad56]16
17$(eval $(call PKG_template,TMSNC,tmsnc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
[d419478]19$(WRKBUILD)/.configured:
20 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
[475ad56]21 ac_cv_func_malloc_0_nonnull=yes \
22 ac_cv_func_realloc_0_nonnull=yes \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
[c57fbc9]41 --disable-nls \
[475ad56]42 --with-libiconv-prefix=$(STAGING_DIR)/usr \
43 --with-openssl=$(STAGING_DIR)/usr \
44 --with-ncurses=$(STAGING_DIR) \
45 --with-gnu-ld \
46 )
47 touch $@
48
[d419478]49$(WRKBUILD)/.built:
50 mkdir -p $(WRKINST)
51 $(MAKE) -C $(WRKBUILD) \
52 DESTDIR="$(WRKINST)" \
[475ad56]53 install
[d419478]54 rm -rf $(WRKINST)/usr/man
[475ad56]55 touch $@
56
57$(IPKG_TMSNC):
58 mkdir -p $(IDIR_TMSNC)
[d419478]59 $(CP) $(WRKINST)/* $(IDIR_TMSNC)/
[475ad56]60 $(RSTRIP) $(IDIR_TMSNC)
61 $(IPKG_BUILD) $(IDIR_TMSNC) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.