| @@ -1,55 +1,47 @@ | | | @@ -1,55 +1,47 @@ |
1 | # $NetBSD: Makefile,v 1.55 2021/06/24 00:09:06 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.56 2021/09/18 15:03:04 gdt Exp $ |
2 | | | 2 | |
3 | DISTNAME= tqsl-2.5.7 | | 3 | DISTNAME= tqsl-2.5.7 |
4 | CATEGORIES= ham | | 4 | CATEGORIES= ham |
5 | MASTER_SITES= http://www.arrl.org/files/file/LoTW%20Instructions/ | | 5 | MASTER_SITES= http://www.arrl.org/files/file/LoTW%20Instructions/ |
6 | | | 6 | |
7 | MAINTAINER= makoto@ki.nu | | 7 | MAINTAINER= makoto@ki.nu |
8 | HOMEPAGE= http://www.arrl.org/quick-start-tqsl | | 8 | HOMEPAGE= http://www.arrl.org/quick-start-tqsl |
9 | COMMENT= TrustedQSL, uploading QSL Data to LoTW of ARRL | | 9 | COMMENT= TrustedQSL, uploading QSL Data to LoTW of ARRL |
10 | LICENSE= arrl-license | | 10 | LICENSE= arrl-license |
11 | | | 11 | |
12 | # A macro _S in /usr/include/ctype.h conflicts with one in apps/tqsltrace.h | | 12 | # A macro _S in /usr/include/ctype.h conflicts with one in apps/tqsltrace.h |
13 | # NOT_FOR_PLATFORM+= NetBSD-5.* | | 13 | # NOT_FOR_PLATFORM+= NetBSD-5.* |
14 | | | 14 | |
15 | USE_TOOLS+= perl gmake cmake | | 15 | USE_TOOLS+= perl gmake cmake |
16 | # \todo tqsl is not documented to require c++11, but uses c++11 constructs | | 16 | # \todo tqsl is not documented to require c++11, but uses c++11 constructs |
17 | # \todo tqsl does not add --std=c++11 | | 17 | # \todo tqsl does not add --std=c++11 |
18 | USE_LANGUAGES+= c c++11 | | 18 | USE_LANGUAGES+= c c++11 |
19 | USE_LIBTOOL= yes | | 19 | USE_LIBTOOL= yes |
20 | USE_CMAKE= yes | | 20 | USE_CMAKE= yes |
21 | | | 21 | |
22 | # There is an unresolved build failure, where -R for /usr/pkg/lib does | | 22 | # There is an unresolved build failure, where -R for /usr/pkg/lib does |
23 | # not precede /usr/X11R7/lib, and on a netbsd-5 system with base xorg, | | 23 | # not precede /usr/X11R7/lib, and on a netbsd-5 system with base xorg, |
24 | # an old version of pixman is found by the pkgsrc cairo. The root | | 24 | # an old version of pixman is found by the pkgsrc cairo. The root |
25 | # cause (aside from having two pixman versions installed) is ad hoc -L | | 25 | # cause (aside from having two pixman versions installed) is ad hoc -L |
26 | # usage in Makefile.am, without matching -R. | | 26 | # usage in Makefile.am, without matching -R. |
27 | | | 27 | |
28 | # Filed upstream by email 20200314. | | | |
29 | # remove the string $(LIB_SUFFIX), tested with NetBSD at least | | | |
30 | SUBST_CLASSES+= lib-suffix | | | |
31 | SUBST_MESSAGE.lib-suffix= Removing $$(LIB_SUFFIX) from src/CMakeLists.txt | | | |
32 | SUBST_STAGE.lib-suffix= pre-configure | | | |
33 | SUBST_FILES.lib-suffix= src/CMakeLists.txt | | | |
34 | SUBST_SED.lib-suffix= -e s/\$${\LIB_SUFFIX\}// | | | |
35 | | | | |
36 | CHECK_PORTABILITY_SKIP+= osx_createdmg.sh | | 28 | CHECK_PORTABILITY_SKIP+= osx_createdmg.sh |
37 | | | 29 | |
38 | do-configure: | | 30 | do-configure: |
39 | (cd ${WRKSRC} ; \ | | 31 | (cd ${WRKSRC} ; \ |
40 | cmake \ | | 32 | cmake \ |
41 | -DBDB_PREFIX=${PREFIX} \ | | 33 | -DBDB_PREFIX=${PREFIX} \ |
42 | -DBDB_INCLUDE_DIR=${PREFIX}/include \ | | 34 | -DBDB_INCLUDE_DIR=${PREFIX}/include/db5 \ |
43 | -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE \ | | 35 | -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE \ |
44 | -DCMAKE_INSTALL_PREFIX=${PREFIX} \ | | 36 | -DCMAKE_INSTALL_PREFIX=${PREFIX} \ |
45 | -DCMAKE_INSTALL_RPATH=${PREFIX}/lib \ | | 37 | -DCMAKE_INSTALL_RPATH=${PREFIX}/lib \ |
46 | -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE \ | | 38 | -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE \ |
47 | -DCMAKE_INSTALL_MANDIR:PATH=${PKGMANDIR} \ | | 39 | -DCMAKE_INSTALL_MANDIR:PATH=${PKGMANDIR} \ |
48 | .) | | 40 | .) |
49 | | | 41 | |
50 | post-install: | | 42 | post-install: |
51 | (cd ${WRKSRC} ;\ | | 43 | (cd ${WRKSRC} ;\ |
52 | ${INSTALL_DATA} LICENSE.txt ${DESTDIR}${PREFIX}/share/TrustedQSL/ \ | | 44 | ${INSTALL_DATA} LICENSE.txt ${DESTDIR}${PREFIX}/share/TrustedQSL/ \ |
53 | ) | | 45 | ) |
54 | | | 46 | |
55 | # \todo Perhaps change to lmdb, and (unlikely) consider an option. | | 47 | # \todo Perhaps change to lmdb, and (unlikely) consider an option. |