Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= bitlbee
  7. PKG_VERSION:= 1.2.3
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 2b1674d98804970809de3da3edf0bed2
  10. MASTER_SITES:= http://get.bitlbee.org/src/ \
  11. http://get.bitlbee.be/src/ \
  12. http://get.us.bitlbee.org/src/ \
  13. http://ftp.snt.utwente.nl/pub/software/bitlbee/src/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,BITLBEE,bitlbee,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
  16. ifeq ($(ADK_IPV6),y)
  17. IPV6+= --ipv6=1
  18. else
  19. IPV6+= --ipv6=0
  20. endif
  21. do-configure:
  22. (cd $(WRKBUILD); \
  23. $(TARGET_CONFIGURE_OPTS) \
  24. CFLAGS="$(TARGET_CFLAGS)" \
  25. CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
  26. LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
  27. STAGING_DIR="$(STAGING_DIR)" \
  28. STRIP="$(STRIP)" \
  29. ./configure \
  30. --prefix=/usr/ \
  31. --bindir=/usr/sbin/ \
  32. --etcdir=/etc/bitlbee/ \
  33. --datadir=/usr/share/bitlbee/ \
  34. --config=/var/lib/bitlbee/ \
  35. --arch=Linux \
  36. --cpu="${ARCH}" \
  37. --debug=0 \
  38. --strip=1 \
  39. --ssl=openssl \
  40. --target=${REAL_GNU_TARGET_NAME} \
  41. ${IPV6} \
  42. );
  43. BUILD_STYLE= auto
  44. INSTALL_STYLE= auto
  45. INSTALL_TARGET= install-etc install-bin
  46. post-configure:
  47. @echo 'CFLAGS+="-I${STAGING_DIR}/usr/include/iconv"' >> \
  48. ${WRKBUILD}/Makefile.settings
  49. @echo 'LFLAGS+="-L${STAGING_DIR}/usr/lib/iconv"' >> \
  50. ${WRKBUILD}/Makefile.settings
  51. post-install:
  52. ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/bitlbee
  53. ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/init.d
  54. ${INSTALL_DIR} ${IDIR_BITLBEE}/usr/sbin
  55. ${INSTALL_DATA} ${WRKINST}/etc/bitlbee/* ${IDIR_BITLBEE}/etc/bitlbee
  56. ${INSTALL_BIN} ${WRKINST}/usr/sbin/bitlbee ${IDIR_BITLBEE}/usr/sbin
  57. ${INSTALL_BIN} ./files/bitlbee.init \
  58. ${IDIR_BITLBEE}/etc/init.d/bitlbee
  59. include ${TOPDIR}/mk/pkg-bottom.mk