mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 03:26:41 -04:00
finance/expense: replace previous naive build "fix" with a real one
Comparator functions must return NSComparisonResult, not an integer.
Fixes: 944d53ea8c
This commit is contained in:
parent
0083e93666
commit
951bb0c949
1 changed files with 4 additions and 6 deletions
|
@ -18,13 +18,11 @@ WRKSRC= ${WRKDIR}/Expense
|
||||||
|
|
||||||
PORTSCOUT= ignore:1
|
PORTSCOUT= ignore:1
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
|
|
||||||
ADDITIONAL_CPPFLAGS+= -Wno-error=incompatible-function-pointer-types
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/Expense.app/Expense
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/Expense.app/Expense
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e '/_recordSort/s,^int,NSComparisonResult,' \
|
||||||
|
${WRKSRC}/LedgerModel.[hm]
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue