- Fix build with gcc 3.x (FreeBSD 5.0+)

- Install a man page in ${MANPREFIX} not ${PREFIX}

PR:		ports/96011
Submitted by:	Ports Fury
This commit is contained in:
Sergey Matveychuk 2006-04-20 05:41:06 +00:00
parent 40f8a2419d
commit 1a251b99c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159988

View file

@ -26,11 +26,17 @@ MAN1= gtk-knocker.1
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>