8054e25879
PR: ports/145526 Submitted by: John Hein <jhein@symmetricom.com> (maintainer) Approved by: itetcu (mentor, implicit)
66 lines
1.9 KiB
Makefile
66 lines
1.9 KiB
Makefile
# Ports collection makefile for: opentaxsolver
|
|
# Date created: Sat Apr 08, 2006
|
|
# Whom: John Hein (jhein@timing.com)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ${UPPORTNAME:L}
|
|
PORTVERSION= 7.07
|
|
CATEGORIES= finance
|
|
MASTER_SITES= SF/${PORTNAME}/OTS_2009/v${PORTVERSION}
|
|
DISTNAME= ${UPPORTNAME}2009_${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= jhein@symmetricom.com
|
|
COMMENT= US tax prep software
|
|
|
|
USE_GL= yes
|
|
USE_XORG= xmu xext x11
|
|
UPPORTNAME= OpenTaxSolver
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/%%PREFIX%%/${PREFIX:C,/,\/,g}/' \
|
|
${WRKSRC}/src/GUI/ots_gui.c
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|' \
|
|
${WRKSRC}/src/GUI/Makefile.linux
|
|
|
|
# 4.07 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 && \
|
|
${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>
|