mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Complete _includeinstall for 3-STABLE or older.
This commit is contained in:
parent
bf38b4675f
commit
88b8524175
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34233
3 changed files with 35 additions and 1 deletions
|
@ -19,3 +19,18 @@ LIBDIR= ${LOCALBASE}/lib
|
|||
INCDIR= ${LOCALBASE}/include
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
# For FreeBSD 3.x or older
|
||||
.if !target(_includeinstall)
|
||||
_includeinstall:
|
||||
.if defined(INCS)
|
||||
.for header in ${INCS}
|
||||
cd ${.CURDIR} && \
|
||||
${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \
|
||||
${header} ${DESTDIR}${INCDIR}
|
||||
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
beforeinstall: _includeinstall
|
||||
.endif
|
||||
|
|
|
@ -30,7 +30,6 @@ do-build:
|
|||
.endfor
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/include/xml
|
||||
.for f in ${MAKEFILES}
|
||||
@(cd ${WRKSRC}; \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${f} ${MAKE_ARGS} ${INSTALL_TARGET})
|
||||
|
|
|
@ -22,3 +22,23 @@ INCDIR= ${LOCALBASE}/include/xml
|
|||
LIBDIR= ${LOCALBASE}/lib
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
# For FreeBSD 3.x or older
|
||||
.if !target(_includeinstall)
|
||||
_includeinstall:
|
||||
.if defined(INCS)
|
||||
.for header in ${INCS}
|
||||
cd ${.CURDIR} && \
|
||||
${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \
|
||||
${header} ${DESTDIR}${INCDIR}
|
||||
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
beforeinstall: _includeinstall
|
||||
.endif
|
||||
|
||||
_includeinstall: pre-_includeinstall
|
||||
|
||||
pre-_includeinstall:
|
||||
mkdir -p ${INCDIR}
|
||||
|
|
Loading…
Add table
Reference in a new issue