summaryrefslogtreecommitdiff
path: root/x11/xidle
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2005-11-04 11:02:02 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2005-11-04 11:02:02 +0000
commit5e8151f026a7eba966fed012140aee315d08df26 (patch)
treebbc7dd570e696ac0ea2ef3a7b1223665145321db /x11/xidle
parentMark broken on 4.x (diff)
Use getopt_long() when getopt_long_only() is not avaible.
Reported by: pointyhat via kris
Notes
Notes: svn path=/head/; revision=147204
Diffstat (limited to 'x11/xidle')
-rw-r--r--x11/xidle/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/x11/xidle/Makefile b/x11/xidle/Makefile
index 2a336947991a..c3486cb5bc59 100644
--- a/x11/xidle/Makefile
+++ b/x11/xidle/Makefile
@@ -24,8 +24,17 @@ MAKE_ARGS+= X11LIBDIR="${X11BASE}/lib" \
PLIST_FILES= bin/xidle
MAN1= xidle.1
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 502104
+USE_REINPLACE= yes
+
+post-extract:
+ @${REINPLACE_CMD} -e 's|getopt_long_only|getopt_long|' ${WRKSRC}/xidle.c
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xidle ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xidle.1 ${PREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>