Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.33 2016/09/13 11:44:07 naddy Exp $
  2. COMMENT = gateway to send and receive SMS through GSM mobile phones
  3. DISTNAME = smstools3-3.1.15
  4. REVISION = 1
  5. CATEGORIES = comms
  6. HOMEPAGE = http://smstools3.kekekasvi.com/
  7. MAINTAINER = Stuart Henderson <sthen@openbsd.org>
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB = c iconv mm
  11. MASTER_SITES = ${HOMEPAGE}/packages/
  12. # some scripts use formail
  13. RUN_DEPENDS = mail/procmail
  14. LIB_DEPENDS = converters/libiconv \
  15. devel/mm
  16. USE_GMAKE = Yes
  17. NO_TEST = Yes
  18. WRKDIST = ${WRKDIR}/smstools3
  19. WRKSRC = ${WRKDIST}/src
  20. EXTRA_CFLAGS += -I${LOCALBASE}/include -L${LOCALBASE}/lib
  21. MAKE_FLAGS += CFLAGS="${CFLAGS} -D NUMBER_OF_MODEMS=64 `mm-config --cflags`"
  22. do-install:
  23. ${INSTALL_PROGRAM} ${WRKSRC}/smsd ${PREFIX}/bin
  24. ${INSTALL_SCRIPT} ${WRKDIST}/scripts/{sendsms,sms2html} \
  25. ${WRKDIST}/scripts/{sms2unicode,unicode2sms} \
  26. ${PREFIX}/bin
  27. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smstools \
  28. ${PREFIX}/share/examples/smstools/scripts
  29. ${INSTALL_DATA} ${WRKDIST}/examples/* \
  30. ${PREFIX}/share/examples/smstools
  31. ${INSTALL_DATA} ${WRKDIST}/scripts/* \
  32. ${PREFIX}/share/examples/smstools/scripts
  33. rm ${PREFIX}/share/examples/smstools/scripts/*.orig
  34. ${SUBST_DATA} ${FILESDIR}/smsd.conf.openbsd \
  35. ${PREFIX}/share/examples/smstools/smsd.conf.openbsd
  36. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smstools
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smstools/slideshow
  38. ${INSTALL_DATA} ${WRKDIST}/doc/*html ${PREFIX}/share/doc/smstools
  39. ${INSTALL_DATA} ${WRKDIST}/doc/slideshow/* \
  40. ${PREFIX}/share/doc/smstools/slideshow
  41. .include <bsd.port.mk>