Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # $OpenBSD: Makefile,v 1.13 2016/03/18 16:09:15 naddy Exp $
  2. COMMENT = interface to various LCD displays
  3. DISTNAME = lcdproc-0.5.5
  4. REVISION = 7
  5. CATEGORIES = comms devel
  6. HOMEPAGE = http://www.lcdproc.org
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM = Yes
  9. LIB_DEPENDS = devel/libftdi \
  10. devel/libhid
  11. # XXX If we ever get an xmlto update, we could build some user docs
  12. #BUILD_DEPENDS = textproc/xmlto
  13. WANTLIB += c ftdi hid kvm ncurses pthread usb
  14. USE_GMAKE = Yes
  15. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=lcdproc/}
  16. CONFIGURE_STYLE = gnu
  17. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include ${WITH_APM}" \
  18. LDFLAGS="-L${LOCALBASE}/lib -pthread" \
  19. ac_cv_port_have_lpt=no
  20. # xosd driver is busted, working on it upstream
  21. # http://lists.omnipotent.net/pipermail/lcdproc/2011-November/013871.html
  22. CONFIGURE_ARGS = --enable-drivers=all,!xosd
  23. EXAMPLE_DIR = ${PREFIX}/share/examples/lcdproc
  24. post-install:
  25. # our xmlto port version is too old
  26. # cd ${WRKBUILD} && ${MAKE_PROGRAM} install-html-userguide
  27. ${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
  28. ${SUBST_CMD} -c ${WRKBUILD}/LCDd.conf ${EXAMPLE_DIR}/LCDd.conf
  29. ${SUBST_CMD} -c ${WRKBUILD}/clients/lcdexec/lcdexec.conf \
  30. ${EXAMPLE_DIR}/lcdexec.conf
  31. ${SUBST_CMD} -c ${WRKBUILD}/clients/lcdproc/lcdproc.conf \
  32. ${EXAMPLE_DIR}/lcdproc.conf
  33. chown -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLE_DIR}
  34. # lcdvc is a linux specific thing - prevent it appearing in PLIST
  35. rm ${PREFIX}/bin/lcdvc ${PREFIX}/man/man1/lcdvc.1
  36. .include <bsd.port.arch.mk>
  37. .if ${PROPERTIES:Mapm}
  38. WITH_APM = -DWITH_APM
  39. .endif
  40. .include <bsd.port.mk>