source: freewrt/package/joe/Makefile@ f5f5c64

freewrt_1_0 freewrt_2_0
Last change on this file since f5f5c64 was f5f5c64, checked in by Thorsten Glaser <tg@…>, 14 years ago

bump jupp to 3.1.19

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@3995 afb5a338-a214-0410-bd46-81f09a774fd1

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