milis/talimatname/genel/g/glew/talimat

26 lines
636 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: OpenGL Extension Wrangler Library (GLEW), çapraz platform açık kaynak C/C++ uzantısı yükleme kitaplığıdır.
# URL: http://glew.sourceforge.net/
# Paketçi: milisarge
# Gerekler: xorg-mesa xorg-libxi xorg-libxmu
# Grup: kütüphane
isim=glew
surum=2.0.0
devir=1
kaynak=(http://downloads.sourceforge.net/project/$isim/$isim/$surum/$isim-$surum.tgz)
derle() {
cd $isim-$surum
sed -i -e "s|lib64|lib|" config/Makefile.linux
sed -i -e '/^.PHONY: .*\.pc$/d' -i Makefile
make \
CC="${CC:-gcc}" \
LD="${CC:-gcc}" \
CFLAGS.EXTRA="$CFLAGS -fPIC" \
LDFLAGS.EXTRA="$LDFLAGS"
make GLEW_DEST="$PKG/usr" install
}