source: freewrt/package/tmsnc/Makefile@ 9667e20

freewrt_1_0 freewrt_2_0
Last change on this file since 9667e20 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

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

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