# $FreeWRT$ #- # This file is part of the FreeWRT project. FreeWRT is copyrighted # material, please see the LICENCE file in the top-level directory # or at http://www.freewrt.org/licence for details. include $(TOPDIR)/rules.mk PKG_NAME= joe PKG_VERSION= 3.1jupp24 PKG_RELEASE= 1 PKG_MD5SUM= dbb299c31860d43acef21b709e67e9fb PKG_SOURCE_URL= http://www.mirbsd.org/MirOS/dist/jupp/ \ http://pub.allbsd.org/MirOS/dist/jupp/ PKG_SOURCE= ${PKG_NAME}-${PKG_VERSION}.tgz WRKSRC= ${WRKDIR}/jupp include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,JOE,joe,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(WRKBUILD)/.configured: (cd $(WRKBUILD); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include " \ LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ ac_cv_func_setlocale=no \ $(SHELL) ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --program-prefix="" \ --program-suffix="" \ --prefix=/usr \ --sysconfdir=/usr/share \ --disable-dependency-tracking \ --disable-getpwnam \ --disable-termidx \ --with-gnu-ld \ --disable-rpath \ ); touch $@ $(WRKBUILD)/.built: rm -rf $(WRKINST) mkdir -p $(WRKINST) $(MAKE) -C $(WRKBUILD) \ DESTDIR="$(WRKINST)" \ all install touch $@ $(IPKG_JOE): install -d -m 0755 $(IDIR_JOE)/usr/{bin,share/joe/{charmaps,syntax}} ${CP} ${WRKINST}/usr/bin/joe ${IDIR_JOE}/usr/bin/ ${CP} ${WRKINST}/usr/share/joe/j*rc ${IDIR_JOE}/usr/share/joe/ ${CP} ${WRKINST}/usr/share/joe/charmaps/* \ ${IDIR_JOE}/usr/share/joe/charmaps/ ${CP} ${WRKINST}/usr/share/joe/syntax/* \ ${IDIR_JOE}/usr/share/joe/syntax/ cd ${IDIR_JOE}/usr/bin; for a in jmacs jpico jstar jupp; do \ ln -sf joe $$a; \ done ifeq ($(strip ${FWRT_PACKAGE_JOE_FULL}),) # can remove jupprc since it's built-in since joe-3.1jupp12 in # a size-reduced version (e.g. no syntax highlighting) cd ${IDIR_JOE}/usr/share/joe && rm -rf charmaps syntax jupprc # strip comments from rc files for a in ${IDIR_JOE}/usr/share/joe/*rc; do \ printf ',g/^[ ]/d\n,g/^$$/d\nw\nq\n' | ed -s $$a; \ done endif $(RSTRIP) $(IDIR_JOE) $(IPKG_BUILD) $(IDIR_JOE) $(PACKAGE_DIR)