2021-04-21 15:24:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.42 2021/04/21 13:24:32 adam Exp $
|
2008-04-12 12:56:18 +02:00
|
|
|
|
2020-12-19 00:59:29 +01:00
|
|
|
DISTNAME= exempi-2.5.2
|
2021-04-21 15:24:06 +02:00
|
|
|
PKGREVISION= 2
|
2008-04-12 12:56:18 +02:00
|
|
|
CATEGORIES= devel graphics
|
2019-06-05 08:57:04 +02:00
|
|
|
MASTER_SITES= https://libopenraw.pages.freedesktop.org/download/
|
2015-07-08 13:58:33 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2008-04-12 12:56:18 +02:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2019-06-05 08:57:04 +02:00
|
|
|
HOMEPAGE= https://libopenraw.pages.freedesktop.org/exempi/
|
2015-09-27 21:03:58 +02:00
|
|
|
COMMENT= XMP (Extensible Metadata Platform) library
|
2010-01-30 17:27:59 +01:00
|
|
|
LICENSE= modified-bsd
|
2008-04-12 12:56:18 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2010-11-16 14:50:56 +01:00
|
|
|
CONFIGURE_ENV+= ac_cv_tls=none
|
2008-04-12 12:56:18 +02:00
|
|
|
USE_LIBTOOL= yes
|
2019-06-05 08:57:04 +02:00
|
|
|
USE_TOOLS+= gmake pkg-config
|
|
|
|
USE_LANGUAGES= c c++11
|
2008-04-12 12:56:18 +02:00
|
|
|
|
2019-06-17 12:46:37 +02:00
|
|
|
GCC_REQD+= 4.8
|
|
|
|
|
Make sure that the libraries are linked with libiconv if necessary, to avoid
the build failing like so (on Linux systems):
g++ -fexceptions -funsigned-char -fPIC -Wno-multichar -Wno-implicit -Wno-ctor-dtor-privacy -O2 -I/tmp/pkgsrc1/devel/exempi/work/.buildlink/include -Wl,-R/usr/pkgroot1/lib -o xmpfilescoverage XMPFilesCoverage.o -L/tmp/pkgsrc1/devel/exempi/work/.buildlink/lib ../../source/XMPCore/.libs/libXMPCore.a ../../source/XMPFiles/.libs/libXMPFiles.a ../../source/common/.libs/libxmpcommon.a /tmp/pkgsrc1/devel/exempi/work/.buildlink/lib/libexpat.so ../../third-party/MD5/.libs/libmd5.a -Wl,--rpath -Wl,/tmp/pkgsrc1/devel/exempi/work/.buildlink/lib -Wl,--rpath -Wl,/tmp/pkgsrc1/devel/exempi/work/.buildlink/lib
../../source/XMPFiles/.libs/libXMPFiles.a(Reconcile_Impl.o): In function `ReconcileUtils::Latin1ToUTF8(void const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
Reconcile_Impl.cpp:(.text+0x1a1): undefined reference to `libiconv_open'
Reconcile_Impl.cpp:(.text+0x1f0): undefined reference to `libiconv'
Reconcile_Impl.cpp:(.text+0x1fb): undefined reference to `libiconv_close'
../../source/XMPFiles/.libs/libXMPFiles.a(Reconcile_Impl.o): In function `ReconcileUtils::UTF8ToLatin1(void const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
Reconcile_Impl.cpp:(.text+0x341): undefined reference to `libiconv_open'
Reconcile_Impl.cpp:(.text+0x390): undefined reference to `libiconv'
Reconcile_Impl.cpp:(.text+0x39b): undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
*** Error code 1
2009-01-08 09:42:41 +01:00
|
|
|
CONFIGURE_ARGS+= LIBS=${BUILDLINK_LDADD.iconv:Q}
|
|
|
|
|
2016-09-16 17:43:26 +02:00
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
|
2008-04-12 12:56:18 +02:00
|
|
|
PKGCONFIG_OVERRIDE+= exempi/exempi-2.0.pc.in
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
2011-11-26 07:08:47 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2008-04-12 12:56:18 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
2019-06-05 08:57:04 +02:00
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
|
2016-09-16 17:43:26 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2008-04-12 12:56:18 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|