mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 12:40:45 -04:00
Fix the build on recent FreeBSD versions.
Reported by: Sergey V. Dyatko Pointyhat to: danfe
This commit is contained in:
parent
96db8214d0
commit
73b51dcb51
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272374
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue