rxvt.mk 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #############################################################
  2. #
  3. # rxvt
  4. #
  5. #############################################################
  6. # Copyright (C) 2002 by Tom Walsh <Tom@OpenHardware.net>
  7. #
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU Library General Public License as
  10. # published by the Free Software Foundation; either version 2 of the
  11. # License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. # USA
  22. RXVT_SOURCE:=rxvt-2.6.4.tar.bz2
  23. RXVT_PATCH:=$(SOURCE_DIR)/rxvt-2.6.4.patch
  24. RXVT_SITE:=ftp://ftp.rxvt.org/pub/rxvt/
  25. RXVT_CAT:=bzcat
  26. RXVT_DIR:=$(BUILD_DIR)/rxvt-2.6.4
  27. RXVT_BINARY:=$(RXVT_DIR)/src/rxvt
  28. $(DL_DIR)/$(RXVT_SOURCE):
  29. $(WGET) -P $(DL_DIR) $(RXVT_SITE)/$(RXVT_SOURCE)
  30. rxvt-source: $(DL_DIR)/$(RXVT_SOURCE)
  31. $(RXVT_DIR)/.unpacked: $(DL_DIR)/$(RXVT_SOURCE)
  32. $(RXVT_CAT) $(DL_DIR)/$(RXVT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
  33. touch $(RXVT_DIR)/.unpacked
  34. $(RXVT_DIR)/.configured: $(RXVT_DIR)/.unpacked
  35. (cd $(RXVT_DIR); rm -rf config.cache; \
  36. $(TARGET_CONFIGURE_OPTS) \
  37. ./configure \
  38. --target=$(GNU_TARGET_NAME) \
  39. --host=$(GNU_TARGET_NAME) \
  40. --build=$(GNU_HOST_NAME) \
  41. --prefix=/usr/X11R6 \
  42. --mandir=/usr/man \
  43. --infodir=/usr/info \
  44. --x-includes=$(TINYX_DIR)/exports/include \
  45. --x-libraries=$(TINYX_DIR)/exports/lib \
  46. );
  47. cat $(RXVT_PATCH) | patch -d $(RXVT_DIR) -p1
  48. touch $(RXVT_DIR)/.configured
  49. $(RXVT_BINARY): $(RXVT_DIR)/.configured
  50. $(MAKE) CC=$(TARGET_CC) -C $(RXVT_DIR)
  51. $(STRIP) -x $(RXVT_BINARY)
  52. $(TARGET_DIR)/usr/X11R6/bin/rxvt: $(RXVT_BINARY)
  53. cp -f $(RXVT_BINARY) $(TARGET_DIR)/usr/X11R6/bin
  54. rxvt: tinyx $(TARGET_DIR)/usr/X11R6/bin/rxvt
  55. rxvt-clean:
  56. rm -f $(TARGET_DIR)/usr/X11R6/bin/rxvt
  57. -$(MAKE) -C $(RXVT_DIR) clean
  58. rxvt-dirclean:
  59. rm -rf $(RXVT_DIR)