forked from Lainports/freebsd-ports
- Fix build with Custom PREFIX/LOCALBASE
Reported by: QATty
This commit is contained in:
parent
429df9fcd8
commit
8c3b0cae79
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue