Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # $OpenBSD: Makefile,v 1.3 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT = tools for LiDAR processing
  3. DISTNAME = lastools-0.20170108
  4. GH_ACCOUNT = LAStools
  5. GH_PROJECT = LAStools
  6. GH_TAGNAME = f00fa125075ea984993057c5916d746cb605835c
  7. CATEGORIES = converters textproc devel
  8. # LGPLv2.1
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB += c m ${LIBCXX}
  11. MAKE_FLAGS = COMPILER="${CXX}" \
  12. LINKER="${CXX}"
  13. post-patch:
  14. find ${WRKSRC} -name Makefile | xargs sed -i 's/-O3/${CXXFLAGS}/'
  15. PROGS = laszip lasinfo lasprecision las2txt txt2las las2las lasdiff lasmerge lasindex
  16. do-install:
  17. ${INSTALL_DATA} ${WRKSRC}/LASlib/src/liblas.a ${PREFIX}/lib/
  18. ${INSTALL_DATA} ${WRKSRC}/LASlib/inc/*.hpp ${PREFIX}/include/
  19. ${INSTALL_DATA} ${WRKSRC}/LASzip/src/{mydefs,laspoint,laszip,lasquantizer,lasattributer}.hpp \
  20. ${PREFIX}/include/
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lastools/
  22. .for f in ${PROGS}
  23. ${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${PREFIX}/bin/
  24. ${INSTALL_DATA} ${WRKSRC}/bin/${f}_README.txt ${PREFIX}/share/doc/lastools/
  25. .endfor
  26. .include <bsd.port.mk>