blob: 0c570f294c4ba4692472a94a8d4217b00500bf9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Ports collection makefile for: opentaxsolver
# Date created: Sat Apr 08, 2006
# Whom: John Hein (jhein@timing.com)
#
# $FreeBSD$
#
PORTNAME= ${UPPORTNAME:L}
PORTVERSION= 4.01
PORTREVISION= 1
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= opentaxsolver
DISTNAME= ${UPPORTNAME}2006_${PORTVERSION}
MAINTAINER= jhein@timing.com
COMMENT= US tax prep software
USE_XLIB= yes
USE_GL= yes
UPPORTNAME= OpenTaxSolver
post-patch:
@${REINPLACE_CMD} -e 's/%%PREFIX%%/${PREFIX:C,/,\/,g}/' \
${WRKSRC}/src/GUI/ots_gui.c
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|' \
${WRKSRC}/src/GUI/Makefile.linux
do-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
./Build_taxsolve_packages_LINUX.sh)
BUILDPROGLISTCMD= ${FIND} bin -type f
BUILDEXAMPLELISTCMD= ${FIND} examples_and_templates -type f
BUILDEXAMPLEDIRLISTCMD= ${FIND} examples_and_templates -type d
NEWPLIST= ${WRKDIR}/plist.new
do-install:
@(cd ${WRKSRC} && \
for prog in $$(${BUILDPROGLISTCMD}); do \
${INSTALL_PROGRAM} $${prog} ${PREFIX}/bin/. ; \
done && \
${MKDIR} ${PREFIX}/share/ots && \
${INSTALL_DATA} src/GUI/otslogo.ppm ${PREFIX}/share/ots/. && \
for example in $$(${BUILDEXAMPLELISTCMD}); do \
${MKDIR} ${PREFIX}/share/ots/$$(dirname $${example}) && \
${INSTALL_DATA} $${example} \
${PREFIX}/share/ots/$$(dirname $${example})/. ; \
done)
new-plist:
@(cd ${WRKSRC} && \
${BUILDPROGLISTCMD} | ${SORT} > ${NEWPLIST} && \
${ECHO_CMD} share/ots/otslogo.ppm >> ${NEWPLIST} && \
${BUILDEXAMPLELISTCMD} | ${SED} 's,^,share/ots/,' | ${SORT} \
>> ${NEWPLIST} && \
for f in $$(${BUILDEXAMPLEDIRLISTCMD} | ${SED} 's,^,share/ots/,' && \
${ECHO_CMD} share/ots); do ${ECHO_CMD} @dirrm $$f; done | \
${SORT} -r >> ${NEWPLIST})
.include <bsd.port.mk>
|