summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-10-12 14:14:13 +0000
committerjoerg <joerg@pkgsrc.org>2006-10-12 14:14:13 +0000
commitcf908eb05ec5df8b1c0db23d581b265fd0908d37 (patch)
treed28ee3e682a7ac9bb2c3c6afbc11ed613cc7aed6
parent9da484b674c8c874eb0fcdcb379c52c88cbc9c86 (diff)
downloadpkgsrc-cf908eb05ec5df8b1c0db23d581b265fd0908d37.tar.gz
Use a recursion depth of 3 for config.guess/config.sub replacement.
Use portable way to compute timezone offset instead of timezone/daylight, the former is a function on some BSDs and the latter doesn't even exist in DragonFly. Fix PLIST on swi-prolog-packages to not use NetBSD ELFism. Bump revision of swi-prolog-lite and swi-prolog-packages.
-rw-r--r--lang/swi-prolog-lite/Makefile4
-rw-r--r--lang/swi-prolog-lite/distinfo3
-rw-r--r--lang/swi-prolog-lite/patches/patch-ak70
-rw-r--r--lang/swi-prolog-packages/Makefile11
-rw-r--r--lang/swi-prolog-packages/PLIST40
5 files changed, 103 insertions, 25 deletions
diff --git a/lang/swi-prolog-lite/Makefile b/lang/swi-prolog-lite/Makefile
index 4cf6d562a76..e4155c2552d 100644
--- a/lang/swi-prolog-lite/Makefile
+++ b/lang/swi-prolog-lite/Makefile
@@ -1,13 +1,15 @@
-# $NetBSD: Makefile,v 1.10 2006/08/02 15:15:36 kristerw Exp $
+# $NetBSD: Makefile,v 1.11 2006/10/12 14:14:13 joerg Exp $
.include "Makefile.common"
PKGNAME= swi-prolog-lite-${SWIPLVERS}
+PKGREVISION= 1
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= ISO/Edinburgh-style Prolog compiler
GNU_CONFIGURE= yes
+OVERRIDE_DIRDEPTH= 3
USE_GNU_READLINE= yes # uses rl_event_hook() interface
CONFIGURE_ENV+= PL=swi-prolog
diff --git a/lang/swi-prolog-lite/distinfo b/lang/swi-prolog-lite/distinfo
index 88c3b0abbdb..3e6ab402d19 100644
--- a/lang/swi-prolog-lite/distinfo
+++ b/lang/swi-prolog-lite/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2006/08/02 15:15:36 kristerw Exp $
+$NetBSD: distinfo,v 1.6 2006/10/12 14:14:13 joerg Exp $
SHA1 (swi-prolog/pl-5.6.17.tar.gz) = e46e98b3ec8a69de3dc2eb147a9df9cbd1a17399
RMD160 (swi-prolog/pl-5.6.17.tar.gz) = 7f6786013b43c2e00b8e4a3799cbad1f7cac2fab
@@ -13,3 +13,4 @@ SHA1 (patch-ag) = 750c50997129c8b1ae2c3c4c317296249668430b
SHA1 (patch-ah) = 3bfc13a920e0f3a79e6764a9ace89032989e2c67
SHA1 (patch-ai) = 9446bc38a0a7e02de303e68c923249b615c91833
SHA1 (patch-aj) = 4450848127eab9f05113aaabfa48725336353e79
+SHA1 (patch-ak) = e767d69287f5b649048a5a6081061522c06edc18
diff --git a/lang/swi-prolog-lite/patches/patch-ak b/lang/swi-prolog-lite/patches/patch-ak
new file mode 100644
index 00000000000..aead3650a5f
--- /dev/null
+++ b/lang/swi-prolog-lite/patches/patch-ak
@@ -0,0 +1,70 @@
+$NetBSD: patch-ak,v 1.1 2006/10/12 14:14:13 joerg Exp $
+
+--- src/pl-tai.c.orig 2006-07-28 09:20:12.000000000 +0000
++++ src/pl-tai.c
+@@ -38,11 +38,8 @@ long set by tzset(). Not really clean .
+
+ #ifdef WIN32
+ #define timezone _timezone
+-#define daylight _daylight
+ #else
+ extern char *tzname[2];
+-extern long timezone;
+-extern int daylight;
+ #endif
+
+
+@@ -82,8 +79,21 @@ do_tzset()
+
+ static int
+ tz_offset()
+-{ do_tzset();
+- return timezone;
++{
++ time_t now = time(NULL), t_gmt, t_local;
++ struct tm gmt, local;
++ int diff;
++
++ do_tzset();
++ gmtime_r(&now, &gmt);
++ t_gmt = mktime(&gmt);
++ localtime_r(&now, &local);
++ t_local = mktime(&local);
++ diff = t_local - t_gmt;
++ if (local.tm_isdst)
++ diff += 3600;
++
++ return diff;
+ }
+
+
+@@ -312,14 +322,12 @@ PRED_IMPL("stamp_date_time", 3, stamp_da
+ ct.hour = tm.tm_hour;
+ ct.minute = tm.tm_min;
+ tzatom = tz_name_as_atom(tm.tm_isdst);
+- if ( daylight ) /* from tzset() */
+- { if ( tm.tm_isdst )
++ if ( tm.tm_isdst )
+ { utcoffset -= 3600;
+ dstatom = ATOM_true;
+ } else
+ { dstatom = ATOM_false;
+ }
+- }
+ done = TRUE;
+ }
+ } else if ( alocal == ATOM_utc )
+@@ -721,12 +729,10 @@ PRED_IMPL("format_time", 3, format_time,
+ { localtime_r(&unixt, &tb.tm);
+ tb.sec = (double)tb.tm.tm_sec + modf(tb.stamp, &ip);
+ tb.utcoff = tz_offset();
+- if ( daylight )
+- { if ( tb.tm.tm_isdst )
++ if ( tb.tm.tm_isdst )
+ { tb.utcoff -= 3600;
+ tb.isdst = TRUE;
+ }
+- }
+ tb.tzname = tz_name_as_atom(tb.tm.tm_isdst);
+ tb.flags = HAS_STAMP|HAS_WYDAY;
+ } else
diff --git a/lang/swi-prolog-packages/Makefile b/lang/swi-prolog-packages/Makefile
index 7145b25b3b7..36320b10318 100644
--- a/lang/swi-prolog-packages/Makefile
+++ b/lang/swi-prolog-packages/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/08/29 23:58:24 markd Exp $
+# $NetBSD: Makefile,v 1.14 2006/10/12 14:14:13 joerg Exp $
.include "../../lang/swi-prolog-lite/Makefile.common"
@@ -9,17 +9,22 @@ MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Packages for SWI Prolog
GNU_CONFIGURE= yes
+OVERRIDE_DIRDEPTH= 3
USE_GNU_READLINE= yes # uses rl_event_hook() interface
USE_TOOLS+= gmake
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "xorg"
+BUILD_DEPENDS+= xorg-server-[0-9]*:../../x11/xorg-server
+.endif
+
CONFIGURE_ENV+= PL=swi-prolog
CONFIGURE_ARGS+= --disable-mt
BUILD_DIRS+= ${WRKSRC}/packages
INSTALL_DIRS+= ${WRKSRC}/packages
-.include "../../mk/bsd.prefs.mk"
-
post-configure:
${LN} -sf ${LOCALBASE}/bin/plld ${WRKSRC}/src
${LN} -sf ${LOCALBASE}/bin/swi-prolog ${WRKSRC}/src
diff --git a/lang/swi-prolog-packages/PLIST b/lang/swi-prolog-packages/PLIST
index f4720ccc469..79f2eef0742 100644
--- a/lang/swi-prolog-packages/PLIST
+++ b/lang/swi-prolog-packages/PLIST
@@ -1,21 +1,21 @@
-@comment $NetBSD: PLIST,v 1.2 2006/08/02 15:15:36 kristerw Exp $
+@comment $NetBSD: PLIST,v 1.3 2006/10/12 14:14:13 joerg Exp $
bin/xpce
bin/xpce-client
lib/swi-prolog-${PKGVERSION}/Makefile
-lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf/xpce
+lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/xpce
lib/swi-prolog-${PKGVERSION}/include/SWI-cpp.h
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/cgi.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/files.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/memfile.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/mime.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/rdf_db.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/readutil.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/rlimit.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/sgml2pl.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/socket.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/table.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/time.so
-lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/unix.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/cgi.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/files.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/memfile.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/mime.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/rdf_db.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/readutil.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/rlimit.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/sgml2pl.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/socket.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/table.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/time.so
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/unix.so
lib/swi-prolog-${PKGVERSION}/library/DTD/HTML4.dcl
lib/swi-prolog-${PKGVERSION}/library/DTD/HTML4.dtd
lib/swi-prolog-${PKGVERSION}/library/DTD/HTML4.soc
@@ -110,7 +110,7 @@ lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help/help.hlp
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help/pcedraw.hlp
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help/pcefaq.hlp
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help/plprefs.hlp
-lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf/xpce-client
+lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/xpce-client
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16/alert.xpm
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16/arrow_length.xpm
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16/arrow_wing.xpm
@@ -659,7 +659,7 @@ lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce/When.h
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce/While.h
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce/Window.h
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce/WindowDecorator.h
-lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf/pl2xpce.so
+lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}/pl2xpce.so
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/faq/faq.html
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/reference/bug_fixes.doc
lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/reference/changes.doc
@@ -1266,13 +1266,13 @@ man/man1/xpce.1
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/reference
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man/faq
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/man
-@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/include/pce
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/patterns
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/32x32
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps/16x16
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bitmaps
-@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/appl-help
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17/CXX
@dirrm lib/swi-prolog-${PKGVERSION}/xpce-6.6.17
@@ -1281,7 +1281,7 @@ man/man1/xpce.1
@dirrm lib/swi-prolog-${PKGVERSION}/library/chr
@dirrm lib/swi-prolog-${PKGVERSION}/library/DTD
@dirrm lib/swi-prolog-${PKGVERSION}/library
-@dirrm lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}/include
-@dirrm lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}elf
+@dirrm lib/swi-prolog-${PKGVERSION}/bin/${MACHINE_ARCH}-${LOWER_OPSYS}${APPEND_ELF}
@dirrm lib/swi-prolog-${PKGVERSION}