source: freewrt/package/joe/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 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.5 KB
Line 
1# $FreeWRT$
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME= joe
6PKG_VERSION= 3.1jupp5
7PKG_RELEASE= 1
8PKG_SOURCE= ${PKG_NAME}-${PKG_VERSION}.cpio.gz
9PKG_MD5SUM= 6e2a0302fd577f7b0e2ed116a0da004b
10
11PKG_SOURCE_URL= http://mirbsd.mirsolutions.de/MirOS/dist/jupp/ \
12 http://miros.unixforge.de/MirOS/dist/jupp/
13WRKBUILD= ${WRKDIR}/jupp
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,JOE,joe,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 (cd $(WRKBUILD); \
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_setlocale=no \
26 $(SHELL) ./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 --sysconfdir=/usr/lib \
34 --disable-dependency-tracking \
35 --with-gnu-ld \
36 --disable-rpath \
37 );
38 touch $@
39
40$(WRKBUILD)/.built:
41 rm -rf $(WRKINST)
42 mkdir -p $(WRKINST)
43 $(MAKE) -C $(WRKBUILD) \
44 DESTDIR="$(WRKINST)" \
45 all install
46 touch $@
47
48$(IPKG_JOE):
49 install -d -m 0755 $(IDIR_JOE)/usr/{bin,lib/joe}
50 $(CP) $(WRKINST)/usr/bin/joe $(IDIR_JOE)/usr/bin/
51 $(CP) $(WRKINST)/usr/lib/joe/j*rc $(IDIR_JOE)/usr/lib/joe/
52 $(RSTRIP) $(IDIR_JOE)
53 (cd $(IDIR_JOE)/usr/bin; for a in jmacs jpico jstar jupp; do \
54 ln -sf joe $$a; done)
55 $(IPKG_BUILD) $(IDIR_JOE) $(PACKAGE_DIR)
56
57mostlyclean:
58 -$(MAKE) -C $(WRKBUILD) clean
59 rm -f $(WRKBUILD)/.built
Note: See TracBrowser for help on using the repository browser.