Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # $OpenBSD: Makefile,v 1.37 2017/04/10 11:46:33 sthen Exp $
  2. COMMENT = firewall GUI
  3. DISTNAME = fwbuilder-5.1.0.3599
  4. CATEGORIES = net security
  5. REVISION = 3
  6. HOMEPAGE = http://www.fwbuilder.org/
  7. # GPLv2+ mostly, some code under BSD-like
  8. PERMIT_PACKAGE_CDROM = Yes
  9. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=fwbuilder/}
  10. # .orig produces too much spam in tests directories
  11. PATCHORIG = .ports.orig
  12. AUTOMAKE_VERSION = 1.10
  13. AUTOCONF_VERSION = 2.63
  14. CONFIGURE_STYLE = gnu
  15. BUILD_DEPENDS +=${MODGNU_AUTOCONF_DEPENDS} \
  16. ${MODGNU_AUTOMAKE_DEPENDS} \
  17. devel/cppunit
  18. RUN_DEPENDS = devel/desktop-file-utils \
  19. x11/gtk+3,-guic
  20. COPTS = ${DEBUG}
  21. CONFIGURE_ARGS += --with-docdir=${TRUEPREFIX}/share/doc/fwbuilder \
  22. --with-templatedir=${TRUEPREFIX}/share/fwbuilder \
  23. --with-qtdir=${MODQT_QTDIR} \
  24. --with-qmake=qmake4 \
  25. --without-distcc
  26. MAKE_ENV += QMAKE=${MODQT_QTDIR}/bin/qmake \
  27. CXXFLAGS="${CXXFLAGS}" \
  28. COPTS="${COPTS}" \
  29. LDFLAGS="${LDFLAGS}"
  30. USE_LIBTOOL = gnu
  31. MODULES = x11/qt4
  32. DESTDIRNAME = INSTALL_ROOT
  33. LIB_DEPENDS = converters/libiconv \
  34. net/net-snmp \
  35. textproc/libxml \
  36. textproc/libxslt \
  37. x11/qt4
  38. TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
  39. TEST_TARGET = tests
  40. TEST_ENV += COPTS="${COPTS}"
  41. TEST_IS_INTERACTIVE = X11
  42. WANTLIB += c crypto iconv m netsnmp QtGui QtNetwork
  43. WANTLIB += lzma pthread ${LIBCXX} util xml2 xslt z
  44. WANTLIB += ICE SM X11 Xext Xi Xinerama Xrender fontconfig freetype
  45. FAKE_FLAGS = INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
  46. INSTALL_FILE="${INSTALL_DATA}"
  47. post-patch:
  48. cd ${WRKSRC}; \
  49. AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  50. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
  51. sh autogen.sh
  52. post-install:
  53. cd ${WRKSRC}/src/res/Icons && find . -type d -mindepth 1 -maxdepth 1 | \
  54. while read D; do \
  55. ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/$$D; \
  56. ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/$$D/apps; \
  57. done
  58. cd ${WRKSRC}/src/res/Icons && find . -name '*.png' | \
  59. while read F; do \
  60. ${INSTALL_DATA} $$F \
  61. ${PREFIX}/share/icons/hicolor/`dirname $$F`/apps/`basename $$F`; \
  62. done
  63. .include <bsd.port.mk>