Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $OpenBSD: Makefile,v 1.10 2017/04/10 11:46:22 sthen Exp $
  2. BROKEN-macppc = libqalculate/Calculator.cc:7030: internal compiler error
  3. COMMENT = applied math library
  4. CATEGORIES = math devel
  5. DISTNAME = libqalculate-0.9.7
  6. REVISION = 1
  7. HOMEPAGE = http://qalculate.sourceforge.net/
  8. SHARED_LIBS = qalculate 0.0 # 5.0
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += c cln glib-2.0 gmp lzma m ncurses pcre pthread readline
  12. WANTLIB += ${LIBCXX} xml2 z
  13. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=qalculate/}
  14. MODULES = devel/gettext \
  15. textproc/intltool
  16. LIB_DEPENDS = devel/cln \
  17. devel/glib2 \
  18. textproc/libxml
  19. # Without recreating Makefile, shell globs in docs/reference/Makefile are
  20. # not expanded, and "fake" and "test" stages fail.
  21. # And just running "good" autoconf is not enough, it whines.
  22. # So we have to re-run automake, too.
  23. USE_LIBTOOL = gnu
  24. SEPARATE_BUILD = Yes
  25. CONFIGURE_STYLE = autoconf automake
  26. CONFIGURE_ENV = CPPFLAGS="${CPPFLAGS} -I${WRKSRC} -I${LOCALBASE}/include" \
  27. LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
  28. AUTOCONF_VERSION = 2.67
  29. AUTOMAKE_VERSION = 1.11
  30. SUBST_VARS += DISTNAME
  31. post-patch:
  32. cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  33. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal
  34. cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  35. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} automake
  36. .include <bsd.port.mk>