source: freewrt/package/sipsak/Makefile@ 835bc14

freewrt_1_0 freewrt_2_0
Last change on this file since 835bc14 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.6 KB
Line 
1# $Id: Makefile 3797 2006-05-18 23:51:53Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=sipsak
6PKG_VERSION:=0.9.6
7PKG_RELEASE:=1
8PKG_MD5SUM:=c4eb8e282902e75f4f040f09ea9d99d5
9
10PKG_SOURCE_URL:=http://download.berlios.de/sipsak/ \
11 http://ftp.iptel.org/pub/sipsak/
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,SIPSAK,sipsak,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 ac_cv_func_malloc_0_nonnull=yes \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 --enable-largefile \
45 --disable-nls \
46 --enable-shared \
47 --disable-static \
48 --disable-gnutls \
49 );
50 touch $@
51
52$(WRKBUILD)/.built:
53 rm -rf $(WRKINST)
54 mkdir -p $(WRKINST)
55 $(MAKE) -C $(WRKBUILD) \
56 DESTDIR="$(WRKINST)" \
57 all install
58 touch $@
59
60$(IPKG_SIPSAK):
61 install -d -m0755 $(IDIR_SIPSAK)/usr/bin
62 $(CP) $(WRKINST)/usr/bin/sipsak $(IDIR_SIPSAK)/usr/bin/
63 $(RSTRIP) $(IDIR_SIPSAK)
64 $(IPKG_BUILD) $(IDIR_SIPSAK) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.