Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.16 2016/12/30 13:57:51 sthen Exp $
  2. # no libGL (toolchain issue)
  3. NOT_FOR_ARCHS= m88k
  4. COMMENT= GL Extension Wrangler library
  5. DISTNAME= glew-2.0.0
  6. CATEGORIES= graphics
  7. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=glew/}
  8. EXTRACT_SUFX= .tgz
  9. SHARED_LIBS= GLEW 8.0
  10. HOMEPAGE= http://glew.sourceforge.net/
  11. MAINTAINER= Brad Smith <brad@comstyle.com>
  12. # BSD
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB += GL GLU X11 Xext Xi Xmu c m
  15. MAKE_ENV= LIBGLEW_VERSION=${LIBGLEW_VERSION} \
  16. GLEW_DEST=${PREFIX}
  17. MAKE_FLAGS= LD=${CC} LN= STRIP= GLEW_PREFIX=${PREFIX}
  18. USE_GMAKE= Yes
  19. NO_TEST= Yes
  20. post-extract:
  21. @cp ${FILESDIR}/Makefile.openbsd ${WRKSRC}/config
  22. do-install:
  23. ${INSTALL_DATA_DIR} ${PREFIX}/include/GL
  24. ${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
  25. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/glew
  26. ${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin
  27. ${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${PREFIX}/bin
  28. if [ -f ${WRKSRC}/lib/libGLEW.so.* ]; then \
  29. ${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.so.* ${PREFIX}/lib; \
  30. fi
  31. ${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${PREFIX}/lib
  32. ${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${PREFIX}/include/GL
  33. ${INSTALL_DATA} ${WRKSRC}/glew.pc ${PREFIX}/lib/pkgconfig
  34. .for i in css html jpg png
  35. ${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${PREFIX}/share/doc/glew
  36. .endfor
  37. .include <bsd.port.mk>