mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
9346b215f0
are no more self hosting so we are stuck with 0.25 version while pkgconf provide the same set of features as 0.27 and a compatible frontend. A symlink to pkg-config has been added for convenience and compatibility This also introduces a new macro to use pkgconf in your ports: USE_PKGCONFIG it can take the following arguments: - yes (meaning build only dep) - build (meaning build only dep) - run (meaning run only dep) - both (meaning run and build dep) From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG The old gnome macro has been modified to use pkgconf but still the sameway: run and build dep to avoid large breakage. While here fix some ports relying on pkg-config but not specifying it, fix some ports broken because testing wrong .pc files, and fix ports using pkg-config --version to determine pkg-config version instead of pkg-config --modversion pkg-config like recommanded by pkg-config With Hat: portmgr Exp-runs by: bapt (pointhat-west), beat (pointyhat)
76 lines
2.1 KiB
Makefile
76 lines
2.1 KiB
Makefile
# Ports collection makefile for: opentaxsolver
|
|
# Date created: Sat Apr 08, 2006
|
|
# Whom: John Hein (jhein@timing.com)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ${UPPORTNAME:L}
|
|
PORTVERSION= 9.01
|
|
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= 2011
|
|
UPPORTNAME= OpenTaxSolver
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
USE_GL= yes
|
|
USE_XORG= xmu xext x11
|
|
USE_PKGCONFIG= yes
|
|
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
|
|
|
|
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>
|