- Fix the installation when a PREFIX other than /usr/local is used.

Submitted by:	Martin Tournoij <carpetsmoker@rwxrwxrwx.net> (via mail)
This commit is contained in:
Marcelo Araujo 2008-08-12 00:40:51 +00:00
parent 2133ae6ab1
commit a2ee0433e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218450

View File

@ -42,6 +42,9 @@ LDFLAGS= -L${LOCALBASE}/lib
BROKEN= Does not compile on sparc64 or ia64
.endif
post-patch:
@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
pre-build:
.if exists(${LOCALBASE}/lib/libcln.so.3)
BROKEN= Does not compile when older version is installed. Please pkg_delete old cln first