aboutsummaryrefslogtreecommitdiff
path: root/graphics/simpleviewer
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2011-04-08 06:53:30 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2011-04-08 06:53:30 +0000
commit73b51dcb51fd2863b837c90ada3d36c54612187a (patch)
tree9fbb84066c55ee21322cc037c85abb0e9c2af997 /graphics/simpleviewer
parent96db8214d0f29eda34397cceba0f3ec6de77b410 (diff)
downloadports-73b51dcb51fd2863b837c90ada3d36c54612187a.tar.gz
ports-73b51dcb51fd2863b837c90ada3d36c54612187a.zip
Notes
Diffstat (limited to 'graphics/simpleviewer')
-rw-r--r--graphics/simpleviewer/Makefile6
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>