From 1a251b99c9a22d0b7bd04ec2dfe0e84dcead36cc Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Thu, 20 Apr 2006 05:41:06 +0000 Subject: [PATCH] - Fix build with gcc 3.x (FreeBSD 5.0+) - Install a man page in ${MANPREFIX} not ${PREFIX} PR: ports/96011 Submitted by: Ports Fury --- security/gtk-knocker/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/security/gtk-knocker/Makefile b/security/gtk-knocker/Makefile index 3c26f815d6c6..697da8fd7be2 100644 --- a/security/gtk-knocker/Makefile +++ b/security/gtk-knocker/Makefile @@ -26,11 +26,17 @@ MAN1= gtk-knocker.1 .include -.if ${OSVERSION} >= 502000 -BROKEN= "Does not compile" -.endif +post-patch: +.for file in src/gtk_support.c src/gtk_callbacks.c + @${REINPLACE_CMD} -e 's|"\.\./pixmaps"|PACKAGE_DATA_DIR "/pixmaps"|g' \ + ${WRKSRC}/${file} +.endfor +.for file in src/license.h + @${REINPLACE_CMD} -e 's|$$|\\n\\|g ; \ + s|^".*|";|g' ${WRKSRC}/${file} +.endfor post-install: - @${INSTALL_MAN} ${WRKSRC}/docs/gtk-knocker.1 ${PREFIX}/man/man1 + @${INSTALL_MAN} ${WRKSRC}/docs/gtk-knocker.1 ${MANPREFIX}/man/man1 .include