diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2011-04-08 06:53:30 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2011-04-08 06:53:30 +0000 |
commit | 73b51dcb51fd2863b837c90ada3d36c54612187a (patch) | |
tree | 9fbb84066c55ee21322cc037c85abb0e9c2af997 /graphics/simpleviewer/Makefile | |
parent | 96db8214d0f29eda34397cceba0f3ec6de77b410 (diff) | |
download | ports-73b51dcb51fd2863b837c90ada3d36c54612187a.tar.gz ports-73b51dcb51fd2863b837c90ada3d36c54612187a.zip |
Fix the build on recent FreeBSD versions.
Reported by: Sergey V. Dyatko
Pointyhat to: danfe
Notes
Notes:
svn path=/head/; revision=272374
Diffstat (limited to 'graphics/simpleviewer/Makefile')
-rw-r--r-- | graphics/simpleviewer/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/simpleviewer/Makefile b/graphics/simpleviewer/Makefile index 4444e660bb68..51aa698d31a0 100644 --- a/graphics/simpleviewer/Makefile +++ b/graphics/simpleviewer/Makefile @@ -29,14 +29,18 @@ MAKE_ARGS= CC=${CXX} PLIST_FILES= bin/sviewgl +.include <bsd.port.pre.mk> + post-patch: # Respect CFLAGS, prefer more widely used libungif instead of giflib @${REINPLACE_CMD} -e 's,-O2,${CFLAGS}, ; s,/usr,${LOCALBASE},g ; \ s,=-s,=-L${LOCALBASE}/lib, ; s,lgif,lungif,' ${WRKSRC}/Makefile +.if ${OSVERSION} < 800501 @${REINPLACE_CMD} -e 's,const struct dirent,struct dirent,' \ ${WRKSRC}/src/fileslist.* +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/sviewgl ${PREFIX}/bin -.include <bsd.port.mk> +.include <bsd.port.post.mk> |