diff --git a/talimatname/genel/g/gprolog/gprolog-pic.patch b/talimatname/genel/g/gprolog/gprolog-pic.patch new file mode 100644 index 000000000..f63b234de --- /dev/null +++ b/talimatname/genel/g/gprolog/gprolog-pic.patch @@ -0,0 +1,13 @@ +--- a/src/Ma2Asm/x86_64_any.c ++++ b/src/Ma2Asm/x86_64_any.c +@@ -210,8 +210,8 @@ + strcpy(asm_reg_cp, Off_Reg_Bank(MAP_OFFSET_CP)); + #endif + +-#ifdef M_x86_64_darwin +- pic_code = 1; /* NB: on darwin everything is PIC code */ ++#if defined(M_x86_64_darwin) || defined(M_x86_64_bsd) || defined(M_x86_64_linux) ++ pic_code = 1; /* NB: on darwin and BSD everything is PIC code, last gcc 6 needs this for linux */ + #elif defined(_WIN32) + pic_code = 0; /* NB: on MinGW nothing is needed for PIC code */ + #endif diff --git a/talimatname/genel/g/gprolog/talimat b/talimatname/genel/g/gprolog/talimat new file mode 100644 index 000000000..06da5eada --- /dev/null +++ b/talimatname/genel/g/gprolog/talimat @@ -0,0 +1,37 @@ +# Tanım: GNU Prolog +# URL: http://www.gprolog.org/ +# Paketçi: milisarge +# Gerekler: +# Grup: geliştirme + +isim=gprolog +surum=1.4.4 +devir=1 +kaynak=(ftp://ftp.gnu.org/gnu/gprolog/gprolog-1.4.4.tar.gz + gprolog-pic.patch) + +derle() { + cd $isim-$surum + patch -p1 -i ../gprolog-pic.patch # compile with PIC + cd "$SRC/gprolog-$surum/src" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-c-flags="$CFLAGS" + make + cd "$SRC/gprolog-$surum/src" + make install \ + INSTALL_DIR="$PKG"/usr/share/gprolog \ + LINKS_DIR="$PKG"/usr/bin \ + DOC_DIR="$PKG"/usr/share/gprolog/doc \ + HTML_DIR="$PKG"/usr/share/gprolog/doc/Html \ + EXAMPLES_DIR="$PKG"/usr/share/gprolog \ + sysconfdir="$PKG"/etc \ + localstatedir="$PKG"/var + cd "$PKG"/usr/bin + rm * + ln -s /usr/share/gprolog/bin/fd2c + ln -s /usr/share/gprolog/bin/gplc + ln -s /usr/share/gprolog/bin/gprolog + ln -s /usr/share/gprolog/bin/hexgplc + ln -s /usr/share/gprolog/bin/ma2asm + ln -s /usr/share/gprolog/bin/pl2wam + ln -s /usr/share/gprolog/bin/wam2ma +}