blob: 4933990dbb05822cee1d1fdb1a12d27088807c91 (
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
62
63
64
65
66
67
68
69
70
71
|
# $FreeBSD$
PORTNAME= ${UPPORTNAME:tl}
PORTVERSION= 10.00
CATEGORIES= finance
MASTER_SITES= SF/${PORTNAME}/OTS_${TAXYEAR}/v${PORTVERSION}
DISTNAME= ${UPPORTNAME}${TAXYEAR}_${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= jhein@symmetricom.com
COMMENT= US tax prep software
PLIST= ${WRKDIR}/pkg-plist
SUB_FILES= pkg-plist
SUB_LIST= TAXYEAR=${TAXYEAR}
TAXYEAR= 2012
UPPORTNAME= OpenTaxSolver
.if !defined(WITHOUT_X11)
USE_GL= yes
USE_XORG= xmu xext x11
USES= pkgconfig
CPPFLAGS+= $$(pkg-config --cflags-only-I glu xext xmu)
LDFLAGS+= $$(pkg-config --libs-only-L glu xext xmu)
SUB_LIST+= X11=
.else
MAKE_ENV+= WITHOUT_X11=yes
SUB_LIST+= X11="@comment "
.endif
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's/%%PREFIX%%/${PREFIX:C,/,\/,g}/' \
${WRKSRC}/src/GUI/ots_gui.c
# 9.00 distfile has pre-built (linux) binaries we must whack.
pre-build:
@(cd ${BUILD_WRKSRC}/src && make -f Makefile.unix clean && \
cd GUI && make -f Makefile.linux clean)
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 && \
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} && \
${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>
|