2010-11-17 03:05:12 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2010/11/17 08:05:14 espie Exp $
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
COMMENT= library to adjust for photographic lens characteristics
|
2010-09-16 06:04:54 -04:00
|
|
|
DISTNAME= lensfun-0.2.5
|
|
|
|
SHARED_LIBS= lensfun 1.0
|
2010-11-04 16:14:20 -04:00
|
|
|
REVISION= 0
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
CATEGORIES= graphics
|
|
|
|
HOMEPAGE= http://lensfun.berlios.de/
|
|
|
|
|
|
|
|
# library LGPLv3, lens db CC-BY-SA, build infrastructure/applications GPLv3
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-09-16 06:04:54 -04:00
|
|
|
WANTLIB += c glib-2.0 m png stdc++ z
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS:=lensfun/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MODULES= lang/python devel/gettext
|
|
|
|
MODPY_RUNDEP= No
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS= devel/doxygen>=1.7.2
|
2009-11-16 06:54:40 -05:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
|
|
|
graphics/png
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
MAKE_FLAGS= V=1 INSTDIR_manual=${PREFIX}/share/doc/lensfun \
|
|
|
|
LIBlensfun_VERSION=${LIBlensfun_VERSION}
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_SCRIPT= ${MODPY_BIN} ./configure
|
|
|
|
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/lensfun \
|
2010-09-16 06:04:54 -04:00
|
|
|
--libdir=${PREFIX}/lib \
|
|
|
|
--vectorization=SSE
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
|
|
|
CFLAGS+= -I/usr/include -I${LOCALBASE}/include/libpng
|
|
|
|
MAKE_FILE= GNUmakefile
|
|
|
|
|
2010-09-16 06:04:54 -04:00
|
|
|
ALL_TARGET = all
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
SUBST_VARS = MAKE_PROGRAM
|
|
|
|
|
|
|
|
pre-configure:
|
2010-09-16 06:04:54 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/configure ${WRKSRC}/tibs.py
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
post-install:
|
2010-09-16 06:04:54 -04:00
|
|
|
mv ${PREFIX}/lib/liblensfun.so \
|
|
|
|
${PREFIX}/lib/liblensfun.so.${LIBlensfun_VERSION}
|
|
|
|
cd ${WRKSRC}/out/posix*/release; \
|
|
|
|
${INSTALL_PROGRAM} tmod ${PREFIX}/bin
|
2009-11-16 06:54:40 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|