Makefile 979 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.30 2017/06/06 14:32:00 sthen Exp $
  2. COMMENT= C-style arbitrary precision calculator
  3. DISTNAME= calc-2.12.6.0
  4. EXTRACT_SUFX= .tar.bz2
  5. SHARED_LIBS= calc 0.0 \
  6. custcalc 0.0
  7. CATEGORIES= math
  8. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  9. HOMEPAGE= http://www.isthe.com/chongo/tech/comp/calc
  10. # LGPLv2.1
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB += c curses readline
  13. MASTER_SITES= http://www.isthe.com/chongo/src/calc/ \
  14. ${MASTER_SITE_SOURCEFORGE:=calc/}
  15. MAKE_FLAGS=\
  16. Q="" LDCONFIG="" \
  17. BINDIR='$${DESTDIR}${PREFIX}/bin' \
  18. LIBDIR='$${DESTDIR}${PREFIX}/lib' \
  19. INCDIR='$${DESTDIR}${PREFIX}/include' \
  20. MANDIR='$${DESTDIR}${PREFIX}/man/man1' \
  21. CALC_SHAREDIR='$${DESTDIR}${PREFIX}/share/calc' \
  22. LIB_EXT_VERSION=".so.${LIBcalc_VERSION}" \
  23. USE_READLINE='-DUSE_READLINE' \
  24. READLINE_LIB='-lreadline -lcurses' \
  25. LCC="${CC}" \
  26. CCOPT="${CFLAGS}"
  27. USE_GMAKE= Yes
  28. TEST_TARGET= check
  29. post-install:
  30. rm ${PREFIX}/lib/lib{cust,}calc.so
  31. .include <bsd.port.mk>