summaryrefslogblamecommitdiff
path: root/user/freeglut/APKBUILD
blob: 08488551712e6c6373b590f551101429021e2846 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                        

                                      
            
        

                                                                        


                                  

                                                                 
                                
                          


                                                                          

         
                 
                                                     

                                             
                                                
                                              
                 



            
                                      

 

                                                                                                                                                                   
# Contributor: Ariadne Conill <ariadne@dereferenced.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=freeglut
pkgver=3.2.2
pkgrel=1
pkgdesc="Free reimplementation of OpenGL Utility Toolkit (GLUT) library"
url="https://freeglut.sourceforge.net/"
arch="all"
options="!check"  # No test suite.
license="X11"
depends_dev="glu-dev libglvnd-dev libice-dev libx11-dev libxi-dev
	libxxf86vm-dev"
makedepends="$depends_dev cmake"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	glvnd.patch
	"

build() {
	cmake . \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DFREEGLUT_BUILD_STATIC_LIBS=0 \
		-DOpenGL_GL_PREFERENCE=GLVND \
		.
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="190231951d314f854c244bd27f7c20488403bd0eecffc342097a2e3d1621cec87f6c209a77b4c153aabcf44697b4070227930e295ab74fb88953cbbf94fc81d9  freeglut-3.2.2.tar.gz
ae99d5d749b0ed8a7c822651060cdf0d0d1d33610a16ddd6bd16dcf84c67ad475be6dd1278edf1ab4fdfbcb784217f0d05eab4503f1de63a3d6979edff12e8b9  glvnd.patch"