source: freewrt/package/joe/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 1954439, checked in by mirabilos <m$(date +%Y)@…>, 4 months ago

prefer the beefier mirror over ex-flyingfish

  • Property mode set to 100644
File size: 2.2 KB
Line 
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
7include $(TOPDIR)/rules.mk
8
9PKG_NAME= joe
10PKG_VERSION= 3.1jupp26
11PKG_RELEASE= 1
12PKG_MD5SUM= ae5d4cfe33e36e82c6e276576b7c8748
13
14PKG_SOURCE_URL= http://mbsd.evolvis.org/MirOS/dist/jupp/ \
15 http://www.mirbsd.org/MirOS/dist/jupp/ \
16 http://pub.allbsd.org/MirOS/dist/jupp/
17PKG_SOURCE= ${PKG_NAME}-${PKG_VERSION}.tgz
18
19WRKSRC= ${WRKDIR}/jupp
20
21include $(TOPDIR)/mk/package.mk
22
23$(eval $(call PKG_template,JOE,joe,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
24
25$(WRKBUILD)/.configured:
26 (cd $(WRKBUILD); \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include " \
30 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
31 ac_cv_func_setlocale=no \
32 $(SHELL) ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --sysconfdir=/usr/share \
40 --disable-dependency-tracking \
41 --disable-getpwnam \
42 --disable-termidx \
43 --with-gnu-ld \
44 --disable-rpath \
45 );
46 touch $@
47
48$(WRKBUILD)/.built:
49 rm -rf $(WRKINST)
50 mkdir -p $(WRKINST)
51 $(MAKE) -C $(WRKBUILD) \
52 DESTDIR="$(WRKINST)" \
53 all install
54 touch $@
55
56$(IPKG_JOE):
57 install -d -m 0755 $(IDIR_JOE)/usr/{bin,share/joe/{charmaps,syntax}}
58 ${CP} ${WRKINST}/usr/bin/joe ${IDIR_JOE}/usr/bin/
59 ${CP} ${WRKINST}/usr/share/joe/j*rc ${IDIR_JOE}/usr/share/joe/
60 ${CP} ${WRKINST}/usr/share/joe/charmaps/* \
61 ${IDIR_JOE}/usr/share/joe/charmaps/
62 ${CP} ${WRKINST}/usr/share/joe/syntax/* \
63 ${IDIR_JOE}/usr/share/joe/syntax/
64 cd ${IDIR_JOE}/usr/bin; for a in jmacs jpico jstar jupp; do \
65 ln -sf joe $$a; \
66 done
67ifeq ($(strip ${FWRT_PACKAGE_JOE_FULL}),)
68 # can remove jupprc since it's built-in since joe-3.1jupp12 in
69 # a size-reduced version (e.g. no syntax highlighting)
70 cd ${IDIR_JOE}/usr/share/joe && rm -rf charmaps syntax jupprc
71 # strip comments from rc files
72 for a in ${IDIR_JOE}/usr/share/joe/*rc; do \
73 printf ',g/^[ ]/d\n,g/^$$/d\nw\nq\n' | ed -s $$a; \
74 done
75endif
76 $(RSTRIP) $(IDIR_JOE)
77 $(IPKG_BUILD) $(IDIR_JOE) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.