2006-08-28 23:05:20 +02:00
|
|
|
# Ports collection makefile for: opentaxsolver
|
|
|
|
# Date created: Sat Apr 08, 2006
|
|
|
|
# Whom: John Hein (jhein@timing.com)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ${UPPORTNAME:L}
|
2009-03-09 07:05:46 +01:00
|
|
|
PORTVERSION= 6.01
|
2006-08-28 23:05:20 +02:00
|
|
|
CATEGORIES= finance
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF/opentaxsolver
|
2009-03-09 07:05:46 +01:00
|
|
|
DISTNAME= ${UPPORTNAME}2008_${PORTVERSION}
|
2008-02-26 12:26:18 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2006-08-28 23:05:20 +02:00
|
|
|
|
|
|
|
MAINTAINER= jhein@timing.com
|
|
|
|
COMMENT= US tax prep software
|
|
|
|
|
2007-05-19 22:36:56 +02:00
|
|
|
USE_GL= yes
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_XORG= xmu xext x11
|
2006-08-28 23:05:20 +02:00
|
|
|
UPPORTNAME= OpenTaxSolver
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's/%%PREFIX%%/${PREFIX:C,/,\/,g}/' \
|
|
|
|
${WRKSRC}/src/GUI/ots_gui.c
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|' \
|
2006-11-24 22:21:25 +01:00
|
|
|
${WRKSRC}/src/GUI/Makefile.linux
|
2006-08-28 23:05:20 +02:00
|
|
|
|
2008-01-26 23:28:04 +01:00
|
|
|
# 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)
|
|
|
|
|
2006-08-28 23:05:20 +02:00
|
|
|
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
|
2006-11-24 22:21:25 +01:00
|
|
|
BUILDEXAMPLEDIRLISTCMD= ${FIND} examples_and_templates -type d
|
2006-08-28 23:05:20 +02:00
|
|
|
NEWPLIST= ${WRKDIR}/plist.new
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC} && \
|
|
|
|
for prog in $$(${BUILDPROGLISTCMD}); do \
|
2006-11-24 22:21:25 +01:00
|
|
|
${INSTALL_PROGRAM} $${prog} ${PREFIX}/bin/. ; \
|
2006-08-28 23:05:20 +02:00
|
|
|
done && \
|
|
|
|
${MKDIR} ${PREFIX}/share/ots && \
|
|
|
|
${INSTALL_DATA} src/GUI/otslogo.ppm ${PREFIX}/share/ots/. && \
|
|
|
|
for example in $$(${BUILDEXAMPLELISTCMD}); do \
|
2006-11-24 22:21:25 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/ots/$$(dirname $${example}) && \
|
|
|
|
${INSTALL_DATA} $${example} \
|
|
|
|
${PREFIX}/share/ots/$$(dirname $${example})/. ; \
|
2006-08-28 23:05:20 +02:00
|
|
|
done)
|
|
|
|
|
|
|
|
new-plist:
|
|
|
|
@(cd ${WRKSRC} && \
|
2006-11-24 22:21:25 +01:00
|
|
|
${BUILDPROGLISTCMD} | ${SORT} > ${NEWPLIST} && \
|
2006-08-28 23:05:20 +02:00
|
|
|
${ECHO_CMD} share/ots/otslogo.ppm >> ${NEWPLIST} && \
|
2006-11-24 22:21:25 +01:00
|
|
|
${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})
|
2006-08-28 23:05:20 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|