source: freewrt/package/joe/Makefile@ ee36332

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

jupp 24

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

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[8b53bd7]1# $FreeWRT$
[c8b93bd]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.
[8b53bd7]6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME= joe
[ee36332]10PKG_VERSION= 3.1jupp24
[8b53bd7]11PKG_RELEASE= 1
[ee36332]12PKG_MD5SUM= dbb299c31860d43acef21b709e67e9fb
[8b53bd7]13
[ca47de2]14PKG_SOURCE_URL= http://www.mirbsd.org/MirOS/dist/jupp/ \
[9d31fe2]15 http://pub.allbsd.org/MirOS/dist/jupp/
[f5f5c64]16PKG_SOURCE= ${PKG_NAME}-${PKG_VERSION}.tgz
[c8b93bd]17
[c5f2acf]18WRKSRC= ${WRKDIR}/jupp
[8b53bd7]19
[c8b93bd]20include $(TOPDIR)/mk/package.mk
[8b53bd7]21
22$(eval $(call PKG_template,JOE,joe,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
[d419478]24$(WRKBUILD)/.configured:
25 (cd $(WRKBUILD); \
[8b53bd7]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 \
[9d31fe2]38 --sysconfdir=/usr/share \
[8b53bd7]39 --disable-dependency-tracking \
[8e21cca]40 --disable-getpwnam \
[9d31fe2]41 --disable-termidx \
[8b53bd7]42 --with-gnu-ld \
43 --disable-rpath \
44 );
45 touch $@
46
[d419478]47$(WRKBUILD)/.built:
48 rm -rf $(WRKINST)
49 mkdir -p $(WRKINST)
50 $(MAKE) -C $(WRKBUILD) \
51 DESTDIR="$(WRKINST)" \
[8b53bd7]52 all install
53 touch $@
54
55$(IPKG_JOE):
[9d31fe2]56 install -d -m 0755 $(IDIR_JOE)/usr/{bin,share/joe/{charmaps,syntax}}
[8e21cca]57 ${CP} ${WRKINST}/usr/bin/joe ${IDIR_JOE}/usr/bin/
58 ${CP} ${WRKINST}/usr/share/joe/j*rc ${IDIR_JOE}/usr/share/joe/
[9d31fe2]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/
[8e21cca]63 cd ${IDIR_JOE}/usr/bin; for a in jmacs jpico jstar jupp; do \
64 ln -sf joe $$a; \
65 done
[b351e29]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
[c8b93bd]75 $(RSTRIP) $(IDIR_JOE)
[8b53bd7]76 $(IPKG_BUILD) $(IDIR_JOE) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.