Makefile 1.8 KB

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