openbsd-ports/graphics/lensfun/Makefile

58 lines
1.4 KiB
Makefile
Raw Normal View History

2010-11-17 03:05:12 -05:00
# $OpenBSD: Makefile,v 1.5 2010/11/17 08:05:14 espie Exp $
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
REVISION= 0
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
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
2010-11-17 03:05:12 -05:00
LIB_DEPENDS= devel/glib2 \
graphics/png
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
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
SUBST_VARS = MAKE_PROGRAM
pre-configure:
2010-09-16 06:04:54 -04:00
${SUBST_CMD} ${WRKSRC}/configure ${WRKSRC}/tibs.py
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
.include <bsd.port.mk>