Sat Dec 9 19:36:32 2017 UTC ()
gammu: Do not set a LIB_SUFFIX in CMakeLists.txt

On some platforms (strictly speaking the ones that have libm
somewhere in a path with /lib64/) LIB_SUFFIX is set to `64' leading
to install phase/PLIST errors due libraries and pkg-config `.pc'
files are tried to be installed in `lib64/'.

Add a `cmakelists' SUBST_CLASS to avoid that.

This should fix problems noticed on Joyent CentOS 7.2/x86_64 bulk builds.


(leot)
diff -r1.26 -r1.27 pkgsrc/comms/gammu/Makefile

cvs diff -r1.26 -r1.27 pkgsrc/comms/gammu/Makefile (expand / switch to unified diff)

--- pkgsrc/comms/gammu/Makefile 2017/10/22 18:43:28 1.26
+++ pkgsrc/comms/gammu/Makefile 2017/12/09 19:36:32 1.27
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.26 2017/10/22 18:43:28 leot Exp $ 1# $NetBSD: Makefile,v 1.27 2017/12/09 19:36:32 leot Exp $
2# 2#
3 3
4DISTNAME= gammu-1.38.5 4DISTNAME= gammu-1.38.5
5CATEGORIES= comms 5CATEGORIES= comms
6MASTER_SITES= http://dl.cihar.com/gammu/releases/ 6MASTER_SITES= http://dl.cihar.com/gammu/releases/
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://wammu.eu/gammu/ 10HOMEPAGE= https://wammu.eu/gammu/
11COMMENT= Command line utility and library to work with mobile phones 11COMMENT= Command line utility and library to work with mobile phones
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14# cmake tests for it; unclear for what it would be used 14# cmake tests for it; unclear for what it would be used
@@ -29,19 +29,25 @@ CMAKE_ARGS+= -DBASH_BIN:FILEPATH= @@ -29,19 +29,25 @@ CMAKE_ARGS+= -DBASH_BIN:FILEPATH=
29#CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON 29#CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
30 30
31# silence warning 31# silence warning
32CMAKE_ARGS+= -Wno-dev 32CMAKE_ARGS+= -Wno-dev
33CMAKE_ARGS+= -DINSTALL_DOC=ON 33CMAKE_ARGS+= -DINSTALL_DOC=ON
34 34
35USE_LANGUAGES= c c++ 35USE_LANGUAGES= c c++
36USE_TOOLS+= bash:run msgfmt 36USE_TOOLS+= bash:run msgfmt
37REPLACE_BASH= utils/gammu-config utils/jadmaker 37REPLACE_BASH= utils/gammu-config utils/jadmaker
38 38
39# needed because of https://bugs.cihar.com/view.php?id=908 39# needed because of https://bugs.cihar.com/view.php?id=908
40BUILDLINK_TRANSFORM+= rm:-Werror 40BUILDLINK_TRANSFORM+= rm:-Werror
41 41
 42SUBST_CLASSES+= cmakelists
 43SUBST_STAGE.cmakelists= pre-configure
 44SUBST_MESSAGE.cmakelists= Fixing CMakeLists.txt
 45SUBST_FILES.cmakelists= CMakeLists.txt
 46SUBST_SED.cmakelists= -e 's/LIB_SUFFIX "64"/LIB_SUFFIX ""/'
 47
42LDFLAGS.SunOS+= -lintl 48LDFLAGS.SunOS+= -lintl
43 49
44.include "../../databases/unixodbc/buildlink3.mk" 50.include "../../databases/unixodbc/buildlink3.mk"
45.include "../../devel/libusb1/buildlink3.mk" 51.include "../../devel/libusb1/buildlink3.mk"
46.include "../../www/curl/buildlink3.mk" 52.include "../../www/curl/buildlink3.mk"
47.include "../../mk/bsd.pkg.mk" 53.include "../../mk/bsd.pkg.mk"