1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

Fix dahdi-kmod userland headers installation without /usr/src

This commit is contained in:
Max Khon 2012-06-08 09:45:15 +00:00
parent 0220ed5a0a
commit 960d281773
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=298746
3 changed files with 14 additions and 3 deletions

View File

@ -27,6 +27,7 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-dahdi=../freebsd --sysconfdir=${PREFIX}/etc --with-newt=${LOCALBASE}
CONFIGURE_ENV= WGET=/usr/bin/fetch
WRKSRC= ${WRKDIR}/${DISTNAME}/tools
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
USE_LDCONFIG= yes
CONFLICTS= zaptel-[0-9]*
@ -46,7 +47,7 @@ post-patch:
post-install:
@${ECHO_CMD} "==> Installing dahdi-kmod userland includes"
@${MKDIR} ${PREFIX}/include/dahdi/compat
@for i in `${MAKE} -C ${WRKSRC}/../freebsd/freebsd/dahdi -V INCS`; do\
@for i in `${MAKE} -C ${WRKSRC}/../freebsd/freebsd/dahdi -DPRINT_INCS -V INCS`; do\
${ECHO_CMD} "Installing $$i";\
${INSTALL_DATA} ${WRKSRC}/../freebsd/include/dahdi/$$i ${PREFIX}/include/dahdi/$$i;\
done

View File

@ -0,0 +1,10 @@
--- freebsd/freebsd/dahdi/Makefile.orig 2012-06-08 16:19:22.000000000 +0700
+++ freebsd/freebsd/dahdi/Makefile 2012-06-08 16:19:09.000000000 +0700
@@ -20,5 +20,7 @@
${INSTALL_DATA} ${INCLUDEDIR}/dahdi/${_h} ${PREFIX}/include/dahdi/${_h:H}
.endfor
+.if !defined(PRINT_INCS)
.include <bsd.kmod.mk>
+.endif
.include <bsd.own.mk>

View File

@ -1,5 +1,5 @@
--- Makefile.orig 2010-04-01 22:45:47.000000000 +0700
+++ Makefile 2010-06-01 17:18:37.000000000 +0700
--- tools/Makefile.orig 2010-04-01 22:45:47.000000000 +0700
+++ tools/Makefile 2010-06-01 17:18:37.000000000 +0700
@@ -27,7 +27,7 @@
endif