net/ccrtp: Install GNU info files into ${PKGINFODIR}. This project uses CMake to configure the software. Force the GNU info files to be installed into ${CMAKE_INSTALL_INFODIR}, which is defined by the GNUInstallDirs CMake module included by the top-level CMakeLists.txt file. The corrct environment variables are passed so that ${CMAKE_INSTALL_INFODIR} points into ${PKGINFODIR}. Remove the subst.mk section that tried to force GNU info files to be always installed under "info".diff -r1.10 -r1.11 pkgsrc/net/ccrtp/Makefile
(jlam)
@@ -1,33 +1,27 @@ | @@ -1,33 +1,27 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2016/09/19 13:04:18 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2017/08/19 00:27:44 jlam Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= ccrtp-2.1.2 | 4 | DISTNAME= ccrtp-2.1.2 | |
5 | PKGREVISION= 3 | 5 | PKGREVISION= 3 | |
6 | CATEGORIES= net | 6 | CATEGORIES= net | |
7 | MASTER_SITES= ${MASTER_SITE_GNU:=ccrtp/} | 7 | MASTER_SITES= ${MASTER_SITE_GNU:=ccrtp/} | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.gnu.org/software/ccrtp/ | 10 | HOMEPAGE= http://www.gnu.org/software/ccrtp/ | |
11 | COMMENT= RTP and RTSP protocol implementation using GNU CommonCpp | 11 | COMMENT= RTP and RTSP protocol implementation using GNU CommonCpp | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | USE_PKGLOCALEDIR= yes | 14 | USE_PKGLOCALEDIR= yes | |
15 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
16 | USE_LANGUAGES+= c c++ | 16 | USE_LANGUAGES+= c c++ | |
17 | USE_TOOLS+= pkg-config | 17 | USE_TOOLS+= pkg-config | |
18 | USE_CMAKE= yes | 18 | USE_CMAKE= yes | |
19 | PKGCONFIG_OVERRIDE+= libccrtp.pc.in | 19 | PKGCONFIG_OVERRIDE+= libccrtp.pc.in | |
20 | INFO_FILES= yes | 20 | INFO_FILES= yes | |
21 | 21 | |||
22 | SUBST_CLASSES+= info | |||
23 | SUBST_FILES.info= doc/cmake_install.cmake | |||
24 | SUBST_MESSAGE.info= Fixing infodir path. | |||
25 | SUBST_SED.info= -e 's|share/info|info|1' | |||
26 | SUBST_STAGE.info= post-configure | |||
27 | ||||
28 | .include "options.mk" | 22 | .include "options.mk" | |
29 | 23 | |||
30 | BUILDLINK_API_DEPENDS.ucommon+= ucommon>=6.3.1 | 24 | BUILDLINK_API_DEPENDS.ucommon+= ucommon>=6.3.1 | |
31 | .include "../../devel/ucommon/buildlink3.mk" | 25 | .include "../../devel/ucommon/buildlink3.mk" | |
32 | .include "../../mk/pthread.buildlink3.mk" | 26 | .include "../../mk/pthread.buildlink3.mk" | |
33 | .include "../../mk/bsd.pkg.mk" | 27 | .include "../../mk/bsd.pkg.mk" |
@@ -1,7 +1,8 @@ | @@ -1,7 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2015/11/04 00:34:54 agc Exp $ | 1 | $NetBSD: distinfo,v 1.7 2017/08/19 00:27:44 jlam Exp $ | |
2 | 2 | |||
3 | SHA1 (ccrtp-2.1.2.tar.gz) = ecad8c17c5ed61e1c9fb1b785592958c678b7c4b | 3 | SHA1 (ccrtp-2.1.2.tar.gz) = ecad8c17c5ed61e1c9fb1b785592958c678b7c4b | |
4 | RMD160 (ccrtp-2.1.2.tar.gz) = b3b2cb2f6822e08422b19fcd1528f976ca10ad66 | 4 | RMD160 (ccrtp-2.1.2.tar.gz) = b3b2cb2f6822e08422b19fcd1528f976ca10ad66 | |
5 | SHA512 (ccrtp-2.1.2.tar.gz) = a835f57a0eef7cba11c55c93ce2f11ebd8ab4099e7c723043c51e4872f3da87af946fc50fac18b47ea5d72b2a1227b377810e9134c1f3a8982d4ce5944d043e9 | 5 | SHA512 (ccrtp-2.1.2.tar.gz) = a835f57a0eef7cba11c55c93ce2f11ebd8ab4099e7c723043c51e4872f3da87af946fc50fac18b47ea5d72b2a1227b377810e9134c1f3a8982d4ce5944d043e9 | |
6 | Size (ccrtp-2.1.2.tar.gz) = 764869 bytes | 6 | Size (ccrtp-2.1.2.tar.gz) = 764869 bytes | |
7 | SHA1 (patch-doc_CMakeLists.txt) = e9cfcfc618dc6bc16da5d3bff61774c57febaff6 | |||
7 | SHA1 (patch-src_ccrtp_crypto_gcrypt_InitializeGcrypt.cpp) = 407f3a7f6536028a1b727a826183133dfe3ce4d6 | 8 | SHA1 (patch-src_ccrtp_crypto_gcrypt_InitializeGcrypt.cpp) = 407f3a7f6536028a1b727a826183133dfe3ce4d6 |
$NetBSD: patch-doc_CMakeLists.txt,v 1.1 2017/08/19 00:27:44 jlam Exp $
--- doc/CMakeLists.txt.orig 2015-01-11 14:43:52.000000000 +0000
+++ doc/CMakeLists.txt
@@ -1,4 +1,4 @@
########### install files ###############
-install(FILES ccrtp.info DESTINATION ${CMAKE_INSTALL_DATADIR}/info)
+install(FILES ccrtp.info DESTINATION ${CMAKE_INSTALL_INFODIR})