2014-06-14 19:56:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.27 2014/06/14 17:56:43 adam Exp $
|
2009-07-09 21:44:50 +02:00
|
|
|
|
2013-10-25 14:59:07 +02:00
|
|
|
DISTNAME= lensfun-0.2.8
|
2014-05-17 18:10:41 +02:00
|
|
|
PKGREVISION= 1
|
2009-07-09 21:44:50 +02:00
|
|
|
CATEGORIES= graphics
|
2009-08-23 16:06:09 +02:00
|
|
|
MASTER_SITES= http://download.berlios.de/lensfun/
|
2009-07-09 21:44:50 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2013-03-01 15:34:38 +01:00
|
|
|
MAINTAINER= gdt@NetBSD.org
|
2009-07-09 21:44:50 +02:00
|
|
|
HOMEPAGE= http://lensfun.berlios.de/
|
|
|
|
COMMENT= Library for rectifying defects introduced by photographic equipment
|
|
|
|
LICENSE= gnu-lgpl-v3
|
|
|
|
|
2013-03-01 15:49:53 +01:00
|
|
|
# But, the build system looks for makedep, not makedepend.
|
|
|
|
# Defer, because cmake is coming.
|
2009-07-09 21:44:50 +02:00
|
|
|
BUILD_DEPENDS+= makedepend-[0-9]*:../../devel/makedepend
|
|
|
|
|
2013-08-04 21:12:00 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_TOOLS+= gmake pkg-config gsed
|
2009-07-09 21:44:50 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2013-08-04 21:12:00 +02:00
|
|
|
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
2010-05-02 13:39:31 +02:00
|
|
|
CONFIGURE_ARGS+= --vectorization=
|
2009-07-09 21:44:50 +02:00
|
|
|
MAKE_FILE= GNUmakefile
|
2013-03-01 15:33:51 +01:00
|
|
|
|
|
|
|
CONFIG_SHELL= ${PYTHONBIN}
|
2009-07-09 21:44:50 +02:00
|
|
|
PYTHON_FOR_BUILD_ONLY= yes
|
|
|
|
REPLACE_PYTHON= configure
|
|
|
|
PKGCONFIG_OVERRIDE= libs/lensfun/lensfun.pc.in
|
|
|
|
|
2013-08-04 21:12:00 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2013-03-01 15:35:53 +01:00
|
|
|
# Starting in 0.2.6, the library is misinstalled as liblensfun.so,
|
|
|
|
# with no .0 variant. Manually fix it, because that's easier than
|
|
|
|
# understanding the build, and upstream is moving to cmake anyway.
|
2012-02-15 09:50:18 +01:00
|
|
|
post-install:
|
2013-08-04 21:12:00 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
2013-10-25 14:59:07 +02:00
|
|
|
${MV} ${DESTDIR}${PREFIX}/lib/liblensfun.dylib.${PKGVERSION_NOREV} \
|
2013-08-04 21:12:00 +02:00
|
|
|
${DESTDIR}${PREFIX}/lib/liblensfun.${PKGVERSION_NOREV}.dylib
|
2014-06-14 19:56:43 +02:00
|
|
|
install_name_tool -id \
|
|
|
|
${PREFIX}/lib/liblensfun.${PKGVERSION_NOREV}.dylib \
|
|
|
|
${DESTDIR}${PREFIX}/lib/liblensfun.${PKGVERSION_NOREV}.dylib
|
2013-10-25 14:59:07 +02:00
|
|
|
${RM} ${DESTDIR}${PREFIX}/lib/liblensfun.dylib*
|
2013-08-04 21:12:00 +02:00
|
|
|
${LN} -s liblensfun.${PKGVERSION_NOREV}.dylib \
|
|
|
|
${DESTDIR}${PREFIX}/lib/liblensfun.0.dylib
|
|
|
|
${LN} -s liblensfun.${PKGVERSION_NOREV}.dylib \
|
|
|
|
${DESTDIR}${PREFIX}/lib/liblensfun.dylib
|
|
|
|
.endif
|
2012-02-15 09:50:18 +01:00
|
|
|
|
2009-07-09 21:44:50 +02:00
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
2013-08-04 21:12:00 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2009-07-09 21:44:50 +02:00
|
|
|
# png: for test programs only
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|