diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2009-06-12 09:23:02 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2009-06-12 09:23:02 +0800 |
commit | 283abe5f28c525509401c79ea7070c31bef0de78 (patch) | |
tree | 992d16e455c75d63f2b992215e7349bceee826b8 /irc | |
parent | ca8a5f5fc8758911e1461f2a55b166433b27c89a (diff) | |
download | freebsd-ports-gnome-283abe5f28c525509401c79ea7070c31bef0de78.tar.gz freebsd-ports-gnome-283abe5f28c525509401c79ea7070c31bef0de78.tar.zst freebsd-ports-gnome-283abe5f28c525509401c79ea7070c31bef0de78.zip |
- Fix build with Custom PREFIX/LOCALBASE
Reported by: QATty
Diffstat (limited to 'irc')
-rw-r--r-- | irc/slirc/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/irc/slirc/Makefile b/irc/slirc/Makefile index 84ef82c18769..2abd9de144a4 100644 --- a/irc/slirc/Makefile +++ b/irc/slirc/Makefile @@ -22,8 +22,8 @@ USE_GMAKE= yes SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message -SLANG_INCDIR?= ${PREFIX}/include -SLANG_LIBDIR?= ${PREFIX}/lib +SLANG_INCDIR?= ${LOCALBASE}/include +SLANG_LIBDIR?= ${LOCALBASE}/lib LIB_DEPENDS_LIBSLANG?= slang.2:${PORTSDIR}/devel/libslang2 MAKE_ARGS= SLANG_INCDIR="${SLANG_INCDIR}" \ @@ -46,6 +46,9 @@ DOCS+= BUGS \ sldocs/VFile.txt \ sldocs/utilsfun.txt +post-patch: + ${REINPLACE_CMD} -e "s,/usr/local,${LOCALBASE}," ${WRKSRC}/Makefile ${WRKSRC}/scripts/init.sl + post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/slirc |