diff options
author | danfe <danfe@FreeBSD.org> | 2011-04-08 14:53:30 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2011-04-08 14:53:30 +0800 |
commit | 09dffdb193118570c08b8cc2d2eb639009ebb0d5 (patch) | |
tree | 434395dc873d44e7bf132c5389231c6937b84529 /graphics/simpleviewer | |
parent | 9e496a8300cb472b7333972aec7481e5f0a1b9da (diff) | |
download | freebsd-ports-gnome-09dffdb193118570c08b8cc2d2eb639009ebb0d5.tar.gz freebsd-ports-gnome-09dffdb193118570c08b8cc2d2eb639009ebb0d5.tar.zst freebsd-ports-gnome-09dffdb193118570c08b8cc2d2eb639009ebb0d5.zip |
Fix the build on recent FreeBSD versions.
Reported by: Sergey V. Dyatko
Pointyhat to: danfe
Diffstat (limited to 'graphics/simpleviewer')
-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> |