View | Details | Raw Unified | Return to bug 95529
Collapse All | Expand All

(-)finance/opentaxsolver/Makefile (+53 lines)
Added Link Here
1
# Ports collection makefile for:  opentaxsolver
2
# Date created:			  Sat Apr 08, 2006
3
# Whom:				  John Hein (jhein@timing.com)
4
#
5
# $FreeBSD$
6
#
7
8
PORTNAME=	${UPPORTNAME:L}
9
PORTVERSION=	3.07
10
CATEGORIES=	finance
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	opentaxsolver
13
DISTNAME=	${UPPORTNAME}2005_3.07
14
EXTRACT_SUFX=	.tgz
15
16
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	US tax prep software
18
19
USE_XLIB=	yes
20
UPPORTNAME=	OpenTaxSolver
21
22
post-patch:
23
	@${REINPLACE_CMD} -e 's/%%PREFIX%%/${PREFIX:C,/,\/,g}/' \
24
	${WRKSRC}/src/GUI/ots_gui.c
25
26
do-build:
27
	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
28
	Build_taxsolve_packages_LINUX.sh)
29
30
BUILDPROGLISTCMD=	${FIND} bin -type f
31
BUILDEXAMPLELISTCMD=	${FIND} examples_and_templates -type f
32
NEWPLIST=		${WRKDIR}/plist.new
33
34
do-install:
35
	@(cd ${WRKSRC} && \
36
	for prog in $$(${BUILDPROGLISTCMD}); do \
37
		${INSTALL_PROGRAM} $${prog} ${PREFIX}/bin/. ; \
38
	done && \
39
	${MKDIR} ${PREFIX}/share/ots && \
40
	${INSTALL_DATA} src/GUI/otslogo.ppm ${PREFIX}/share/ots/. && \
41
	for example in $$(${BUILDEXAMPLELISTCMD}); do \
42
		${MKDIR} ${PREFIX}/share/ots/$$(dirname $${example}) && \
43
		${INSTALL_DATA} $${example} \
44
		${PREFIX}/share/ots/$$(dirname $${example})/. ; \
45
	done)
46
47
new-plist:
48
	@(cd ${WRKSRC} && \
49
	${BUILDPROGLISTCMD} > ${NEWPLIST} && \
50
	${ECHO_CMD} share/ots/otslogo.ppm >> ${NEWPLIST} && \
51
	${BUILDEXAMPLELISTCMD} | ${SED} 's,^,share/ots/,' >> ${NEWPLIST})
52
53
.include <bsd.port.mk>
(-)finance/opentaxsolver/distinfo (+3 lines)
Added Link Here
1
MD5 (OpenTaxSolver2005_3.07.tgz) = 7601b50059b55588104591de9e7a8cac
2
SHA256 (OpenTaxSolver2005_3.07.tgz) = acf281b2c62405808f453a4c3c926c950501a2700a621aad80ff35b7d0b5d823
3
SIZE (OpenTaxSolver2005_3.07.tgz) = 224382
(-)finance/opentaxsolver/pkg-descr (+19 lines)
Added Link Here
1
OpenTaxSolver (OTS) is a free program for calculating Tax Form
2
entries and tax-owed or refund-due, such as US Federal or State
3
personal income taxes. An optional graphical front-end, OTS_GUI,
4
has been added. Preliminary versions for Canada and the United
5
Kingdom were posted in previous years and may be updated with help
6
from volunteers.
7
8
Motivations include:
9
10
    * To make tax preparation software available for all platforms.
11
    * To provide insight into how our taxes are calculated in clear
12
      unambiguous equations/code.
13
    * To avoid invasive, bloated commercial software packages.
14
    * To avoid rewriting our own individual programs each year by
15
      combining efforts.
16
    * To provide a simple reliable tax-package requiring only
17
      rudimentary knowledge to maintain.
18
19
WWW: http://opentaxsolver.sourceforge.net/
(-)finance/opentaxsolver/pkg-plist (+41 lines)
Added Link Here
1
bin/ots_gui
2
bin/taxsolve_US_1040_2005
3
bin/taxsolve_US_1040_Sched_C_2005
4
bin/taxsolve_CA_540_2005
5
bin/taxsolve_MA_1_2005
6
bin/taxsolve_NJ_1040_2005
7
bin/taxsolve_PA_40_2005
8
bin/taxsolve_VA_760_2005
9
bin/taxsolve_OH_IT1040_2005
10
bin/taxsolve_NY_IT201_2005
11
share/ots/otslogo.ppm
12
share/ots/examples_and_templates/CA_540/CA_540_2005_template.dat
13
share/ots/examples_and_templates/CA_540/README_CA_540.txt
14
share/ots/examples_and_templates/CA_540/CA_540_2005_example.dat
15
share/ots/examples_and_templates/VA_760/VA_760_example.dat
16
share/ots/examples_and_templates/VA_760/README_VA_760.txt
17
share/ots/examples_and_templates/VA_760/VA_760_template.dat
18
share/ots/examples_and_templates/MA_1/MA_1_2005_example.dat
19
share/ots/examples_and_templates/MA_1/README_MA_1.txt
20
share/ots/examples_and_templates/MA_1/MA_1_2005_template.dat
21
share/ots/examples_and_templates/US_1040_Sched_C/README_US_1040_Sched_C.txt
22
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2005_example.dat
23
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2005_template.dat
24
share/ots/examples_and_templates/OH_1040/README_OH_IT1040.txt
25
share/ots/examples_and_templates/OH_1040/OH_IT1040_2005_template.dat
26
share/ots/examples_and_templates/OH_1040/OH_IT1040_2005_example.dat
27
share/ots/examples_and_templates/US_1040/US_1040_template.dat
28
share/ots/examples_and_templates/US_1040/README_US_1040.txt
29
share/ots/examples_and_templates/US_1040/US_1040_example.dat
30
share/ots/examples_and_templates/NC_400/README_NC_400.txt
31
share/ots/examples_and_templates/NC_400/NC_400_2005_example.dat
32
share/ots/examples_and_templates/NC_400/NC_400_2005_template.dat
33
share/ots/examples_and_templates/NJ_1040/NJ_1040_2005_template.dat
34
share/ots/examples_and_templates/NJ_1040/NJ_1040_2005_example.dat
35
share/ots/examples_and_templates/NJ_1040/README_NJ_1040.txt
36
share/ots/examples_and_templates/PA_40/README_PA_40.txt
37
share/ots/examples_and_templates/PA_40/PA_40_2005_template.dat
38
share/ots/examples_and_templates/PA_40/PA_40_2005_example.dat
39
share/ots/examples_and_templates/NY_IT201/NY_IT201_2004_example.dat
40
share/ots/examples_and_templates/NY_IT201/README_NY_IT201.txt
41
share/ots/examples_and_templates/NY_IT201/NY_IT201_2004_template.dat
(-)finance/opentaxsolver/files/patch-src-GUI-otk_lib-otk_lib.c (+13 lines)
Added Link Here
1
--- src/GUI/otk_lib/otk_lib.c.orig	Fri Mar 31 21:42:34 2006
2
+++ src/GUI/otk_lib/otk_lib.c	Sat Apr  8 11:50:21 2006
3
@@ -38,6 +38,10 @@
4
 /* Set debug switch. 1=verbose.  0=quiet. */
5
 #define DEBUG if (0)
6
 
7
+#ifdef __FreeBSD__
8
+#include <sys/time.h>
9
+#endif
10
+
11
 #include "otk_lib.h"
12
 
13
 int Otk_verbose=0;
(-)finance/opentaxsolver/files/patch-src-GUI-ots_gui.c (+31 lines)
Added Link Here
1
--- src/GUI/ots_gui.c.orig	Sun Apr  2 22:56:24 2006
2
+++ src/GUI/ots_gui.c	Sat Apr  8 19:46:40 2006
3
@@ -1026,7 +1026,7 @@
4
   }
5
  else
6
   {
7
-   sprintf(tmpstr,"%s%s", invocation_path, strg);
8
+   snprintf(tmpstr, sizeof(tmpstr), "%s%s", invocation_path, strg);
9
    printf("Setting Tax Program to be: '%s'\n", tmpstr);
10
    taxsolvecmd = strdup(tmpstr);
11
    strcpy(taxsolvestrng,tmpstr);
12
@@ -1037,8 +1037,8 @@
13
    if (k>0) k--;
14
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
15
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
16
-   else  {sprintf(tmpstr,".%c", slashchr);}
17
-   sprintf(directory_dat,"%sexamples_and_templates%c", tmpstr, slashchr);
18
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", slashchr);}
19
+   snprintf(directory_dat, sizeof(directory_dat), "%sexamples_and_templates%c", "%%PREFIX%%/share/ots/", slashchr);
20
    /* CA_540  MA_1  NC_400  NJ_1040  NY_IT201  OH_1040  PA_40  US_1040  US_1040_Sched_C  VA_760 */
21
    if (strstr(strg,"CA_540")) strcat(directory_dat,"CA_540"); else
22
    if (strstr(strg,"MA_1")) strcat(directory_dat,"MA_1"); else
23
@@ -1118,7 +1118,7 @@
24
  main_panel = 
25
  OtkMakePanel( OtkOuterWindow, Otk_Raised, Otk_LightGray, 1, 7.5, 98, 87 );	/* Main Panel. */
26
  Otk_SetBorderThickness( main_panel, 0.25 );
27
- sprintf(tmpstr,"%s..%csrc%cGUI%cotslogo.ppm", invocation_path, slashchr, slashchr, slashchr );
28
+ snprintf(tmpstr, sizeof(tmpstr), "%%PREFIX%%/share/ots/otslogo.ppm");
29
  subpanel = OtkMakePanel( main_panel, Otk_Raised, Otk_LightGray, 20, 2, 60, 20 );
30
  testfile = fopen(tmpstr,"r");
31
  if (testfile!=0)

Return to bug 95529