diff -NrU3 jday.orig/Makefile jday/Makefile
--- jday.orig/Makefile	Wed Apr 19 13:20:01 2006
+++ jday/Makefile	Thu Apr 20 07:42:29 2006
@@ -5,17 +5,23 @@
 # $FreeBSD: ports/astro/jday/Makefile,v 1.6 2004/04/17 19:20:30 krion Exp $
 
 PORTNAME=	jday
-PORTVERSION=	1.3
+PORTVERSION=	2.4
 CATEGORIES=	astro
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=	jday
+MASTER_SITE_SUBDIR=	${PORTNAME}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	laszlof@vonostingroup.com
 COMMENT=	Astronomical julian date calculator
 
+INSTALLS_SHLIB=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 MAN1=	jday.1
+
+PLIST_FILES=	bin/jday bin/j2d bin/dbd \
+		include/jday.h lib/libjday.a \
+		lib/libjday.so.2 lib/libjday.la \
+		lib/libjday.so libdata/pkgconfig/jday.pc
 
 .include <bsd.port.mk>
diff -NrU3 jday.orig/distinfo jday/distinfo
--- jday.orig/distinfo	Wed Apr 19 13:20:01 2006
+++ jday/distinfo	Wed Apr 19 13:20:33 2006
@@ -1,3 +1,3 @@
-MD5 (jday-1.3.tar.gz) = 4b6e8e4c9322a50322e0eebf86cb32f4
-SHA256 (jday-1.3.tar.gz) = 45a3c1bc2657f3099a43e6ce408b58d49e06fa13190a7f3d5a0973d34a72b2e7
-SIZE (jday-1.3.tar.gz) = 211601
+MD5 (jday-2.4.tar.gz) = 817af56005d1346677271ed2fab63ef5
+SHA256 (jday-2.4.tar.gz) = 3b15f3a1b552ffae7c343bd47bf89e8073da9ef8c2ec6d79b90d56f8c3a06fda
+SIZE (jday-2.4.tar.gz) = 337012
diff -NrU3 jday.orig/files/patch-aa jday/files/patch-aa
--- jday.orig/files/patch-aa	Wed Dec 31 19:00:00 1969
+++ jday/files/patch-aa	Thu Apr 20 07:32:18 2006
@@ -0,0 +1,77 @@
+--- configure.orig	Mon Oct 10 15:18:28 2005
++++ configure	Thu Apr 20 07:30:24 2006
+@@ -463,7 +463,7 @@
+ # include <unistd.h>
+ #endif"
+ 
+-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT ACLOCAL_AMFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pkgconfig_libdir pkgconfig_libfile LIBOBJS LTLIBOBJS'
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir libdatadir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT ACLOCAL_AMFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pkgconfig_libdir pkgconfig_libfile LIBOBJS LTLIBOBJS'
+ ac_subst_files=''
+ 
+ # Initialize some variables set by options.
+@@ -499,6 +499,7 @@
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
+ libdir='${exec_prefix}/lib'
++libdatadir='${exec_prefix}/libdata'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ infodir='${prefix}/info'
+@@ -822,7 +823,7 @@
+ 
+ # Be sure to have absolute paths.
+ for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+-	      localstatedir libdir includedir oldincludedir infodir mandir
++	      localstatedir libdir libdatadir includedir oldincludedir infodir mandir
+ do
+   eval ac_val=$`echo $ac_var`
+   case $ac_val in
+@@ -19700,7 +19701,7 @@
+ echo "$as_me:$LINENO: checking our pkgconfig_libdir" >&5
+ echo $ECHO_N "checking our pkgconfig_libdir... $ECHO_C" >&6
+ test ".$pkgconfig_libdir" = "." && \
+-pkgconfig_libdir='${libdir}/pkgconfig'
++pkgconfig_libdir='${libdatadir}/pkgconfig'
+ ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
+ ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
+ ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
+@@ -20510,6 +20511,7 @@
+ s,@sharedstatedir@,$sharedstatedir,;t t
+ s,@localstatedir@,$localstatedir,;t t
+ s,@libdir@,$libdir,;t t
++s,@libdatadir@,$libdatadir,;t t
+ s,@includedir@,$includedir,;t t
+ s,@oldincludedir@,$oldincludedir,;t t
+ s,@infodir@,$infodir,;t t
+@@ -21049,6 +21051,7 @@
+ exec_prefix=@exec_prefix@
+ bindir=@bindir@
+ libdir=@libdir@
++libdatadir=@libdatadir@
+ datadir=@datadir@
+ sysconfdir=@sysconfdir@
+ includedir=@includedir@
+@@ -21070,6 +21073,7 @@
+ s|@exec_prefix@|${pkgconfig_execprefix}|
+ s|@bindir@|${pkgconfig_bindir}|
+ s|@libdir@|${pkgconfig_libdir}|
++s|@libdatadir@|${pkgconfig_libdir}|
+ s|@datadir@|${pkgconfig_datadir}|
+ s|@sysconfdir@|${pkgconfig_sysconfdir}|
+ s|@includedir@|${pkgconfig_includedir}|
+@@ -21096,6 +21100,7 @@
+ s|@exec_prefix@|${pkgconfig_execprefix}|
+ s|@bindir@|${pkgconfig_bindir}|
+ s|@libdir@|${pkgconfig_src_libdir}|
++s|@libdatadir@|${pkgconfig_libdir}|
+ s|@datadir@|${pkgconfig_datadir}|
+ s|@sysconfdir@|${pkgconfig_sysconfdir}|
+ s|@includedir@|${pkgconfig_src_headers}|
+@@ -21126,6 +21131,7 @@
+ s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
+ s|@bindir@|\"${pkgconfig_bindir}\"|
+ s|@libdir@|\"${pkgconfig_src_libdir}\"|
++s|@libdatadir@|\"${pkgconfig_libdir}\"|
+ s|@datadir@|\"${pkgconfig_datadir}\"|
+ s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
+ s|@includedir@|\"${pkgconfig_src_headers}\"|
diff -NrU3 jday.orig/files/patch-ab jday/files/patch-ab
--- jday.orig/files/patch-ab	Wed Dec 31 19:00:00 1969
+++ jday/files/patch-ab	Thu Apr 20 07:35:24 2006
@@ -0,0 +1,19 @@
+--- Makefile.in.orig	Mon Oct 10 15:18:29 2005
++++ Makefile.in	Thu Apr 20 07:34:35 2006
+@@ -206,6 +206,7 @@
+ infodir = @infodir@
+ install_sh = @install_sh@
+ libdir = @libdir@
++libdatadir = @libdatadir@
+ libexecdir = @libexecdir@
+ localstatedir = @localstatedir@
+ mandir = @mandir@
+@@ -233,7 +234,7 @@
+ EXTRA_DIST = jday.1 CalDate.inc CalDate.pm J2D.pl Jday.php Jday.pl \
+ 	JdayTest.pl RunTest Testdbd dbd.awk jday.awk jday.html jday.pc.in
+ 
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(libdatadir)/pkgconfig
+ pkgconfig_DATA = jday.pc
+ DISTCLEANFILES = jday.pc jday-uninstalled.pc jday-uninstalled.sh
+ all: all-am
diff -NrU3 jday.orig/files/patch-ac jday/files/patch-ac
--- jday.orig/files/patch-ac	Wed Dec 31 19:00:00 1969
+++ jday/files/patch-ac	Thu Apr 20 07:32:23 2006
@@ -0,0 +1,11 @@
+--- Makefile.am.orig	Thu Apr 20 07:27:52 2006
++++ Makefile.am	Thu Apr 20 07:28:02 2006
+@@ -19,7 +19,7 @@
+ 
+ ACLOCAL_AMFLAGS = -I m4
+ 
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(libdatadir)/pkgconfig
+ pkgconfig_DATA = jday.pc
+ 
+ check:
diff -NrU3 jday.orig/files/patch-jday.c jday/files/patch-jday.c
--- jday.orig/files/patch-jday.c	Wed Apr 19 13:20:01 2006
+++ jday/files/patch-jday.c	Wed Dec 31 19:00:00 1969
@@ -1,14 +0,0 @@
-
-$FreeBSD: ports/astro/jday/files/patch-jday.c,v 1.1 2003/01/01 22:06:00 naddy Exp $
-
---- jday.c.orig	Mon Dec 30 16:49:30 2002
-+++ jday.c	Mon Dec 30 16:49:44 2002
-@@ -122,7 +122,7 @@
- 				if ( day < 1 ) day = 1;
- 			case 3:
- 		if ( ! strcmp((const char *)argv[1], (const char *) "-d") ) {
--	if ( 3 != sscanf( argv[2], "%d/%d/%d", & year, & mo, & day ) ) {
-+	if ( 3 != sscanf( argv[2], "%ld/%d/%d", & year, & mo, & day ) ) {
- fprintf( stderr, "failed sscanf for ymd\n" );
- 		exit (-1);
- 	} else {
diff -NrU3 jday.orig/pkg-plist jday/pkg-plist
--- jday.orig/pkg-plist	Wed Apr 19 13:20:01 2006
+++ jday/pkg-plist	Wed Dec 31 19:00:00 1969
@@ -1,6 +0,0 @@
-@comment $FreeBSD: ports/astro/jday/pkg-plist,v 1.2 2003/01/01 22:06:00 naddy Exp $
-bin/dbd
-bin/j2d
-bin/jday
-include/jday.h
-lib/libjday.a
