Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= bitlbee
  5. PKG_VERSION:= 3.0.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 408a737b35db4b9c407e3db09b2d2e7b528836a68e2d783373254b78812bf608
  8. PKG_DESCR:= irc gateway to im chat networks
  9. PKG_SECTION:= app/chat
  10. PKG_DEPENDS:= glib libopenssl
  11. PKG_BUILDDEP:= glib openssl
  12. PKG_URL:= http://www.bitlbee.org/
  13. PKG_SITES:= http://get.bitlbee.org/src/
  14. PKG_BUILDDEP_UCLIBC:= libiconv-tiny
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. include ${ADK_TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,BITLBEE,bitlbee,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIG_STYLE:= minimal
  19. TARGET_CFLAGS+= -fPIC
  20. CONFIGURE_ARGS:= --target=${GNU_TARGET_NAME} \
  21. --prefix=/usr \
  22. --bindir=/usr/sbin \
  23. --etcdir=/etc/bitlbee \
  24. --datadir=/usr/share/bitlbee \
  25. --config=/var/lib/bitlbee \
  26. --arch=Linux \
  27. --cpu="${ADK_TARGET_ARCH}" \
  28. --debug=0 \
  29. --strip=0 \
  30. --ipv6=1 \
  31. --ssl=openssl
  32. INSTALL_TARGET= install-etc install-bin
  33. post-configure:
  34. @echo 'CFLAGS+="-I${STAGING_TARGET_DIR}/usr/include/iconv"' >> \
  35. ${WRKBUILD}/Makefile.settings
  36. @echo 'LFLAGS+=${TARGET_LDFLAGS}' >> \
  37. ${WRKBUILD}/Makefile.settings
  38. bitlbee-install:
  39. ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/bitlbee ${IDIR_BITLBEE}/usr/sbin
  40. ${INSTALL_DATA} ${WRKINST}/etc/bitlbee/* ${IDIR_BITLBEE}/etc/bitlbee
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/bitlbee ${IDIR_BITLBEE}/usr/sbin
  42. include ${ADK_TOPDIR}/mk/pkg-bottom.mk