diff options
author | glarkin <glarkin@FreeBSD.org> | 2010-04-21 22:50:16 +0800 |
---|---|---|
committer | glarkin <glarkin@FreeBSD.org> | 2010-04-21 22:50:16 +0800 |
commit | d0f1a3900512e42830b47b4be53ec07cf6655f4b (patch) | |
tree | 69d4e6600862c158aed6a6c23aedc284767dc795 /math | |
parent | c672957b931c4a5f61ca3425b6c1d37506ef3eea (diff) | |
download | freebsd-ports-gnome-d0f1a3900512e42830b47b4be53ec07cf6655f4b.tar.gz freebsd-ports-gnome-d0f1a3900512e42830b47b4be53ec07cf6655f4b.tar.zst freebsd-ports-gnome-d0f1a3900512e42830b47b4be53ec07cf6655f4b.zip |
- Unbreak build (compiler errors due to out-of-date moc) by removing
*.moc.cpp from WRKSRC before starting build. The upstream distro
incorrectly included files built from an old moc-qt4 binary. These
files are regenerated with the correct version of moc-qt4 during the
build.
- Fix portlint warnings
Reported by: QAT
Diffstat (limited to 'math')
-rw-r--r-- | math/freemat/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/math/freemat/Makefile b/math/freemat/Makefile index 725441c46699..c587d092f82c 100644 --- a/math/freemat/Makefile +++ b/math/freemat/Makefile @@ -7,8 +7,8 @@ PORTNAME= FreeMat PORTVERSION= 4.0 -PORTREVISION= 1 DISTVERSIONSUFFIX= -Source +PORTREVISION= 1 CATEGORIES= math science MASTER_SITES= SF MASTER_SITE_SUBDIR= freemat/FreeMat4 @@ -94,11 +94,17 @@ pre-everything:: @${ECHO_MSG} '**********************************************************' .endif +# Get rid of the generated .moc.cpp files included in the +# upstream distro. They should be regenerated with the +# currently-installed version of moc-qt4. +post-extract: + @cd ${WRKSRC} && ${FIND} . -name \*.moc.cpp -delete + pre-configure: ${RM} ${WRKSRC}/CMakeCache.txt +# Avoid conflict with QT3 post-configure: - # Avoid conflict with QT3 ${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ ${REINPLACE_CMD} -e '/^QT_CFLAGS/s|-I${LOCALBASE}/include ||' |