Makefile 1.8 KB

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