You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../glew/glew.conf
# Copyright (C) 2006 - 2009 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# fixing all the hardcoded paths, since headers go to include/GL makes sense
# for glew to be relative to xorg
glew_main() {
sed -i -e 's,$(GLEW_DEST)/lib,'$( pkgprefix libdir xorg-server)',g' \
-i -e 's,$(GLEW_DEST)/bin,'$( pkgprefix bindir xorg-server )',g' \
-i -e 's,=? /usr,=? '$root$prefix',g' Makefile
sed -i -e 's,X11R6,X11R7,g' config/Makefile.linux
#bug in glew 1.5.1, not sure about 32b but it definently doesn't compile on 64
sed -i -e 's/\r//' config/config.guess
}
hook_add premake 5 "glew_main"