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:
parent
0220ed5a0a
commit
960d281773
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=298746
@ -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
|
||||
|
10
misc/dahdi/files/patch-freebsd-freebsd-dahdi-Makefile
Normal file
10
misc/dahdi/files/patch-freebsd-freebsd-dahdi-Makefile
Normal 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>
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user