Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b6e6ca43df7fdb5cefc3144f4e1f842674417b0a
commit b6e6ca43df7fdb5cefc3144f4e1f842674417b0a Author: Slown <slownli...@gmail.com> Date: Mon Mar 19 21:36:40 2012 +0100 ngplant-0.9.8-1-i686 * new package diff --git a/source/xapps-extra/ngplant/FrugalBuild b/source/xapps-extra/ngplant/FrugalBuild new file mode 100644 index 0000000..8ca227d --- /dev/null +++ b/source/xapps-extra/ngplant/FrugalBuild @@ -0,0 +1,45 @@ +# Compiling Time: 0.01 SBU +# Maintainer: Slown <sl...@frugalware.org> + +pkgname=ngplant +pkgver=0.9.8 +pkgrel=1 +pkgdesc="A plant modeling software package" +depends=('wxgtk' 'lua' 'glew' 'bzip2') +makedepends=('scons') +groups=('xapps-extra') +archs=('i686' 'x86_64') +Finclude sourceforge +source=($source scons.patch) +sha1sums=('a96699fe21b6adad0d4b8494c82f36aa9ffa79b6' \ + '2995fbb098f140ec88575b148048088b1c9fb127') + +_F_desktop_name="ngPlant" +_F_desktop_exec="/usr/bin/ngplant" +_F_desktop_icon="/usr/share/pixmaps/ngplant.xpm" +_F_desktop_categories="Application;Graphics;" + +build() { + Fcd + Fpatchall + scons || Fdie + + # Install programs + Fexerel $pkgname/$pkgname usr/bin/$pkgname + Fexerel ngpshot/ngpshot usr/bin/ngpshot + Fexerel ngpview/ngpview usr/bin/ngpview + + # Install menu + Ficonrel $pkgname/images/$pkgname.xpm + Fdesktop2 + + # Install plugins + Fmkdir /usr/share/$pkgname/plugins + Fcp $pkgname-$pkgver/plugins/* usr/share/$pkgname/plugins + + # Install examples + Fmkdir /usr/share/$pkgname/examples + Fcp $pkgname-$pkgver/samples/* usr/share/$pkgname/examples +} + +# optimization OK diff --git a/source/xapps-extra/ngplant/scons.patch b/source/xapps-extra/ngplant/scons.patch new file mode 100644 index 0000000..026a885 --- /dev/null +++ b/source/xapps-extra/ngplant/scons.patch @@ -0,0 +1,55 @@ +--- SConstruct.org 2010-11-16 20:39:30.791274871 +0100 ++++ SConstruct 2010-11-16 21:15:24.695838140 +0100 +@@ -33,7 +33,7 @@ + opts.Add(BoolOption('WITH_LUA','Enable Lua plug-ins support','yes')) + opts.Add(BoolOption('LUA_INTERNAL','Compile Lua libraries from sources in extern/lua','no')) + opts.Add('LUA_INC','Lua headers path(s)','') +-opts.Add('LUA_LIBS','Lua libraries','') ++opts.Add('LUA_LIBS','Lua libraries','lua') + opts.Add('LUA_LIBPATH','Lua libraries path(s)','') + + opts.Add(BoolOption('GLEW_INTERNAL','Compile GLEW library from sources in extern/glew','no')) + +--- pywrapper/SConscript.org 2010-11-16 21:42:40.843983827 +0100 ++++ pywrapper/SConscript 2010-11-16 21:42:00.554521981 +0100 +@@ -82,7 +82,7 @@ + source = SRCS, + PYEXT_NAME='_ngp', + PYEXT_VERSION='1.0', +- CPPPATH=['.','pywrapper']) ++ CPPPATH=['.','pywrapper','/usr/include/python2.7']) + + env.Command('_ngp.so','setup.py',"python pywrapper/setup.py build --build-lib pywrapper --build-temp pywrapper/build") + +--- ngplant/SConscript 2012-03-19 19:56:43.893868954 +0100 ++++ ngplant/SConscript.new 2012-03-19 19:59:10.891869224 +0100 +@@ -50,6 +50,7 @@ + NGPlantEnv.Append(CPPPATH=NGPlantEnv['GLEXT_INC']) + NGPlantEnv.Append(LIBPATH=NGPlantEnv['GLEXT_LIBPATH']) + NGPlantEnv.Append(LIBS=NGPlantEnv['GLEXT_LIBS']) ++NGPlantEnv.Append(LIBS=['GLU','GL']) + + if TimingsEnabled: + NGPlantEnv.Append(CPPDEFINES=[('P3D_TIMINGS_ENABLED','1')]) + +--- ngput/SConscript 2012-03-19 20:08:52.657708434 +0100 ++++ ngput/SConscript.new 2012-03-19 20:09:50.293002886 +0100 +@@ -25,6 +25,7 @@ + NGPUtEnv.Append(CXXFLAGS=CC_OPT_FLAGS) + + NGPUtEnv.Append(CPPPATH=NGPUtEnv['GLEXT_INC']) ++NGPUtEnv.Append(LIBS=['X11']) + + if NGPUtEnv['WITH_LIBPNG']: + NGPUtEnv.Append(CPPPATH=NGPUtEnv['LIBPNG_CPPPATH']) + +--- ngpshot/SConscript 2012-03-19 20:16:16.888110326 +0100 ++++ ngpshot/SConscript.new 2012-03-19 20:17:07.987272511 +0100 +@@ -32,6 +32,7 @@ + NGPShotEnv.Append(CPPPATH=NGPShotEnv['GLEXT_INC']) + NGPShotEnv.Append(LIBPATH=NGPShotEnv['GLEXT_LIBPATH']) + NGPShotEnv.Append(LIBS=NGPShotEnv['GLEXT_LIBS']) ++NGPShotEnv.Append(LIBS=['X11']) + + AppendLibPngConf(NGPShotEnv) + AppendLibJpegConf(NGPShotEnv) _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git