talimat 636 B

12345678910111213141516171819202122232425
  1. # Description: OpenGL Extension Wrangler Library (GLEW), çapraz platform açık kaynak C / C ++ uzantısı yükleme kitaplığıdır.
  2. # URL: http://glew.sourceforge.net/
  3. # Packager: milisarge
  4. # Depends on: xorg-mesa xorg-libxi xorg-libxmu
  5. name=glew
  6. version=2.0.0
  7. release=1
  8. source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tgz)
  9. build() {
  10. cd $name-$version
  11. sed -i -e "s|lib64|lib|" config/Makefile.linux
  12. sed -i -e '/^.PHONY: .*\.pc$/d' -i Makefile
  13. make \
  14. CC="${CC:-gcc}" \
  15. LD="${CC:-gcc}" \
  16. CFLAGS.EXTRA="$CFLAGS -fPIC" \
  17. LDFLAGS.EXTRA="$LDFLAGS"
  18. make GLEW_DEST="$PKG/usr" install
  19. }