Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # $OpenBSD: Makefile,v 1.18 2017/04/10 11:46:20 sthen Exp $
  2. COMMENT-main= GPS processing toolkit
  3. COMMENT-devel= GPStk development libraries and headers
  4. V= 1.5
  5. DISTNAME= gpstk${V}
  6. PKGNAME-main= gpstk-${V}
  7. REVISION-main= 5
  8. PKGNAME-devel= gpstk-devel-${V}
  9. REVISION-devel= 7
  10. CATEGORIES= geo devel
  11. SHARED_LIBS= base 15.0 \
  12. geomatics 15.0 \
  13. gpstk 15.0 \
  14. mdplib 15.0 \
  15. procframe 15.0 \
  16. rlib 15.0 \
  17. rxio 15.0 \
  18. simlib 15.0 \
  19. toolslib 15.0 \
  20. vplot 15.0
  21. HOMEPAGE= http://www.gpstk.org/
  22. # LGPL
  23. PERMIT_PACKAGE_CDROM= Yes
  24. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gpstk/}
  25. DISTFILES= ${DISTNAME}.src.tar.gz
  26. AUTOCONF_VERSION= 2.60
  27. AUTOMAKE_VERSION= 1.9
  28. CONFIGURE_STYLE= gnu
  29. NO_TEST= Yes
  30. .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
  31. # way faster than -O0, a bit slower than -O2, but doesn't need 800M to compile
  32. CFLAGS+= -O1 -g
  33. CXXFLAGS+= -O1 -g
  34. .else
  35. # ...but -O1 is still too much for most build machines, so just use it on the
  36. # fastest ones.
  37. CFLAGS+= -O0 -g
  38. CXXFLAGS+= -O0 -g
  39. .endif
  40. BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
  41. devel/libtool \
  42. ${MODGNU_AUTOMAKE_DEPENDS}
  43. MULTI_PACKAGES= -main -devel
  44. WANTLIB-main= m c ${LIBCXX} curses
  45. WANTLIB-devel=
  46. RUN_DEPENDS-devel= ${PKGNAME-main}:geo/gpstk
  47. pre-configure:
  48. cd ${WRKDIST} && sh autogen.sh
  49. post-install:
  50. @mv ${PREFIX}/bin/tracker ${PREFIX}/bin/gpstracker
  51. .include <bsd.port.mk>