diff --git a/talimatname/genel/libmikmod/talimat b/talimatname/genel/libmikmod/talimat index cf8bad2ab..f87df90e9 100644 --- a/talimatname/genel/libmikmod/talimat +++ b/talimatname/genel/libmikmod/talimat @@ -1,7 +1,7 @@ # Description: A portable sound library # URL: http://mikmod.raphnet.net/ -# Packager: pierre at nutyx dot org -# Depends on: +# Packager: milisarge +# Depends on: xorg-libxtst name=libmikmod version=3.3.7 diff --git a/talimatname/genel/libxdg-basedir/talimat b/talimatname/genel/libxdg-basedir/talimat new file mode 100644 index 000000000..bb28e5aa8 --- /dev/null +++ b/talimatname/genel/libxdg-basedir/talimat @@ -0,0 +1,18 @@ +# Description: An implementation of the XDG Base Directory specifications. +# URL: https://github.com/devnev/libxdg-basedir +# Packager: milisarge +# Depends on: + +name=libxdg-basedir +version=1.2.0 +release=1 +source=(https://github.com/devnev/libxdg-basedir/archive/$name-$version.tar.gz) + +build() { + cd $name-$name-$version + + ./autogen.sh --prefix=/usr + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/lua52/lua-5.2-cflags.diff b/talimatname/genel/lua52/lua-5.2-cflags.diff new file mode 100644 index 000000000..b94515659 --- /dev/null +++ b/talimatname/genel/lua52/lua-5.2-cflags.diff @@ -0,0 +1,19 @@ +Binary files lua-5.2.4.orig/src/.Makefile.un~ and lua-5.2.4/src/.Makefile.un~ differ +diff -pruN lua-5.2.4.orig/src/Makefile lua-5.2.4/src/Makefile +--- lua-5.2.4.orig/src/Makefile 2015-12-06 00:26:37.000000000 +0000 ++++ lua-5.2.4/src/Makefile 2015-12-06 00:33:01.000000000 +0000 +@@ -6,9 +6,11 @@ + # Your platform. See PLATS for possible values. + PLAT= none + +-CC= gcc +-CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) +-LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) ++CC ?= gcc ++CFLAGS ?= -O2 -Wall ++CFLAGS += -fPIC -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) ++LDFLAGS ?= ++LDFLAGS += $(SYSLDFLAGS) $(MYLDFLAGS) + LIBS= -lm $(SYSLIBS) $(MYLIBS) + + AR= ar rcu diff --git a/talimatname/genel/lua52/lua.diff b/talimatname/genel/lua52/lua.diff new file mode 100644 index 000000000..92c1f3ac4 --- /dev/null +++ b/talimatname/genel/lua52/lua.diff @@ -0,0 +1,57 @@ +diff -ru lua-5.2.1/Makefile lua-5.2.1.new/Makefile +--- lua-5.2.1/Makefile 2012-05-17 16:05:54.000000000 +0200 ++++ lua-5.2.1.new/Makefile 2012-09-12 22:39:07.162748096 +0200 +@@ -52,7 +52,7 @@ + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) + + test: dummy + src/lua -v +diff -ru lua-5.2.1/src/luaconf.h lua-5.2.1.new/src/luaconf.h +--- lua-5.2.1/src/luaconf.h 2012-05-11 16:14:42.000000000 +0200 ++++ lua-5.2.1.new/src/luaconf.h 2012-09-12 22:40:27.986622772 +0200 +@@ -100,7 +100,7 @@ + #else /* }{ */ + + #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/" +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR + #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR + #define LUA_PATH_DEFAULT \ +diff -ru lua-5.2.1/src/Makefile lua-5.2.1.new/src/Makefile +--- lua-5.2.1/src/Makefile 2012-03-09 17:32:16.000000000 +0100 ++++ lua-5.2.1.new/src/Makefile 2012-09-12 22:38:08.591386896 +0200 +@@ -29,6 +29,7 @@ + PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris + + LUA_A= liblua.a ++LUA_SO= liblua.so + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ + lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ + ltm.o lundump.o lvm.o lzio.o +@@ -43,7 +44,7 @@ + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -59,6 +60,12 @@ + $(AR) $@ $(BASE_O) + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + diff --git a/talimatname/genel/lua52/lua.pc b/talimatname/genel/lua52/lua.pc new file mode 100644 index 000000000..bf7977bcd --- /dev/null +++ b/talimatname/genel/lua52/lua.pc @@ -0,0 +1,20 @@ +V=%VER% +R=%REL% + +prefix=/usr +INSTALL_BIN=${prefix}/bin +INSTALL_INC=${prefix}/include +INSTALL_LIB=${prefix}/lib +INSTALL_MAN=${prefix}/man/man1 +INSTALL_LMOD=${prefix}/share/lua/${V} +INSTALL_CMOD=${prefix}/lib/lua/${V} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Lua +Description: An Extensible Extension Language +Version: ${R} +Requires: +Libs: -L${libdir} -llua -lm +Cflags: -I${includedir} diff --git a/talimatname/genel/lua52/talimat b/talimatname/genel/lua52/talimat new file mode 100644 index 000000000..a6866ce72 --- /dev/null +++ b/talimatname/genel/lua52/talimat @@ -0,0 +1,46 @@ +# Description: A programming language designed for extending applications. +# URL: http://www.lua.org/ +# Depends on: readline + +name=lua52 +version=5.2.4 +release=1 +source=(http://www.lua.org/ftp/lua-$version.tar.gz + lua.diff lua-5.2-cflags.diff lua.pc) + +build() { + cd lua-$version + + patch -p1 -i $SRC/lua.diff + patch -p1 -i $SRC/lua-5.2-cflags.diff + + sed -e "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc + sed -e 's:llua:llua5.2:' -e 's:/include:/include/lua5.2:' -i lua.pc + + sed -r \ + -e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \ + -e '/^LUAC_T=/ s/luac/luac5.2/' \ + -i src/Makefile + + make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux + + install -d $PKG/usr/include/lua5.2 $PKG/usr/share/man/man1 $PKG/usr/lib + + make \ + TO_BIN="lua5.2 luac5.2" \ + TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$version" \ + INSTALL_DATA='cp -d' \ + INSTALL_TOP="$PKG/usr" \ + INSTALL_INC="$PKG/usr/include/lua5.2" \ + INSTALL_MAN="$PKG/usr/share/man/man1" \ + install + + install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua5.2.pc + + # fixups + ln -s liblua5.2.so $PKG/usr/lib/liblua.so.5.2 + ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$version + cd $PKG/usr/share/man/man1 + mv lua.1 lua5.2.1 + mv luac.1 luac5.2.1 +} diff --git a/talimatname/genel/ode/talimat b/talimatname/genel/ode/talimat new file mode 100644 index 000000000..6fe5a4ddc --- /dev/null +++ b/talimatname/genel/ode/talimat @@ -0,0 +1,18 @@ +# Description: The Open Dynamics Engine physics SDK. +# URL: http://www.ode.org/ +# Packager: milisarge +# Depends on: xorg-mesa + +name=ode +version=0.11.1 +release=1 +source=(http://download.sourceforge.net/opende/$name-$version.tar.bz2) + +build() { + cd $name-$version + ./configure --prefix=/usr \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/sdl-ttf/talimat b/talimatname/genel/sdl-ttf/talimat new file mode 100644 index 000000000..d417494a4 --- /dev/null +++ b/talimatname/genel/sdl-ttf/talimat @@ -0,0 +1,20 @@ +# Description: TrueType library for libsdl. +# URL: http://www.libsdl.org/projects/SDL_ttf/ +# Packager: milisarge +# Depends on: freetype sdl + +name=sdl-ttf +version=2.0.11 +release=1 +source=(http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$version.tar.gz) + +build() { + cd SDL_ttf-$version + + ./configure \ + --prefix=/usr \ + --disable-dependency-tracking + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/smpeg/talimat b/talimatname/genel/smpeg/talimat index acb61c44b..dc7688014 100644 --- a/talimatname/genel/smpeg/talimat +++ b/talimatname/genel/smpeg/talimat @@ -1,12 +1,12 @@ # Description: A SDL MPEG player library. # URL: http://www.lokigames.com/development/smpeg.php3 -# Packager: fanch at nutyx dot org +# Packager: milisarge # Depends on: sdl name=smpeg version=0.4.5 release=2 -source=(http://downloads.nutyx.org/archives/smpeg-$version.tar.xz +source=(http://ftp.slackware.com/pub/vectorlinux/VL64-7.0/source/sourceVL/smpeg/0.4.5/src/smpeg-0.4.5.tar.gz smpeg-mpegaudiosdl.patch smpeg-0.4.4_m4.patch) diff --git a/talimatname/genel/xmoto/lua52_compat.patch b/talimatname/genel/xmoto/lua52_compat.patch new file mode 100644 index 000000000..54aaf20d6 --- /dev/null +++ b/talimatname/genel/xmoto/lua52_compat.patch @@ -0,0 +1,45 @@ +diff --git a/configure.in b/configure.in +index 452f196..dbceb05 100644 +--- a/configure.in ++++ b/configure.in +@@ -157,8 +157,8 @@ AM_CONDITIONAL([USE_SDLGFX], test "$USE_SDLGFX" = "1") + # m + AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found)) + +-AC_SEARCH_LIBS(lua_pushboolean,lua lua5.1 lua50, [], [AC_MSG_ERROR(liblua5.1, liblua50, or liblua required)]) +-AC_SEARCH_LIBS(luaopen_math,lualib lualib5.1 lualib50, [], [AC_MSG_ERROR(liblualib5.1, liblualib50, or liblualib required)]) ++AC_SEARCH_LIBS(lua_pushboolean,lua lua5.2 lua5.1 lua50, [], [AC_MSG_ERROR(liblua5.2 liblua5.1, liblua50, or liblua required)]) ++AC_SEARCH_LIBS(luaopen_math,lualib liblua5.2 lualib5.1 lualib50, [], [AC_MSG_ERROR(liblualib5.2 liblualib5.1, liblualib50, or liblualib required)]) + + dnl ***** Check lua headers, as they are prone to be located random places on random systems! ***** + dnl The following three lines where suggested by Eric Piel, but they don't seem to work on my system +@@ -174,6 +174,8 @@ AC_CHECK_HEADER(lua/lua.h, AC_DEFINE(HAVE_LUA_LUA_H) [USE_LUA_VERSION="unkn + AC_CHECK_HEADER(lua50/lua.h, AC_DEFINE(HAVE_LUA50_LUA_H) [USE_LUA_VERSION="5.0"]) + AC_CHECK_HEADER(lua51/lua.h, AC_DEFINE(HAVE_LUA51_LUA_H) [USE_LUA_VERSION="5.1"]) + AC_CHECK_HEADER(lua5.1/lua.h, AC_DEFINE(HAVE_LUA5_1_LUA_H)[USE_LUA_VERSION="5.1"]) ++AC_CHECK_HEADER(lua52/lua.h, AC_DEFINE(HAVE_LUA52_LUA_H) [USE_LUA_VERSION="5.2"]) ++AC_CHECK_HEADER(lua5.2/lua.h, AC_DEFINE(HAVE_LUA5_2_LUA_H)[USE_LUA_VERSION="5.2"]) + AC_DEFINE(LUA_COMPAT_MODULE, 1) + + AC_LANG_PUSH([C++]) +diff --git a/src/include/xm_lua.h b/src/include/xm_lua.h +index 8a2cc17..f470de2 100644 +--- a/src/include/xm_lua.h ++++ b/src/include/xm_lua.h +@@ -4,7 +4,15 @@ extern "C" { + #include "lauxlib.h" + #include "lualib.h" + #else +- #if defined(HAVE_LUA5_1_LUA_H) ++ #if defined(HAVE_LUA5_2_LUA_H) ++ #include ++ #include ++ #include ++ #elif defined(HAVE_LUA52_LUA_H) ++ #include ++ #include ++ #include ++ #elif defined(HAVE_LUA5_1_LUA_H) + #include + #include + #include diff --git a/talimatname/genel/xmoto/talimat b/talimatname/genel/xmoto/talimat new file mode 100644 index 000000000..2c79364aa --- /dev/null +++ b/talimatname/genel/xmoto/talimat @@ -0,0 +1,23 @@ +# Description: a challenging 2D motocross platform game, where physics play an all important role in the gameplay +# URL: http://xmoto.tuxfamily.org +# Packager: milisarge +# Depends on: libxdg-basedir xorg-glu libmikmod libjpeg-turbo lua51 lua52 ode sdl-mixer sdl-net sdl-ttf + +name=xmoto +version=0.5.11 +release=1 +source=(http://download.tuxfamily.org/$name/$name/$version/$name-$version-src.tar.gz + lua52_compat.patch) + +build() { + cd $name-$version + patch -Np1 -i "${SRC}/lua52_compat.patch" + ./bootstrap + rm -r src/ode + CPPFLAGS+=' -D_GLIBCXX_USE_CXX11_ABI=0' + + ./configure --prefix=/usr --disable-sdltest + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/xorg-libxtst/talimat b/talimatname/genel/xorg-libxtst/talimat index 0c2d811cd..885df8960 100644 --- a/talimatname/genel/xorg-libxtst/talimat +++ b/talimatname/genel/xorg-libxtst/talimat @@ -1,6 +1,6 @@ # Description: libXtst, library Xorg # URL: http://xorg.freedesktop.org -# Packager: pierre at nutyx dot org +# Packager: milisarge # Depends on: xorg-proto xorg-libx11 xorg-libxext xorg-libxi name=xorg-libxtst