58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2011/09/16 10:02:37 espie Exp $
|
|
|
|
COMMENT= library to adjust for photographic lens characteristics
|
|
DISTNAME= lensfun-0.2.5
|
|
SHARED_LIBS= lensfun 1.0
|
|
REVISION= 2
|
|
|
|
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
|
|
|
|
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
|
|
BUILD_DEPENDS= devel/doxygen>=1.7.2
|
|
|
|
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 \
|
|
--libdir=${PREFIX}/lib \
|
|
--vectorization=SSE
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
CFLAGS+= -I/usr/include -I${LOCALBASE}/include/libpng
|
|
MAKE_FILE= GNUmakefile
|
|
|
|
ALL_TARGET = all
|
|
|
|
SUBST_VARS = MAKE_PROGRAM
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/configure ${WRKSRC}/tibs.py
|
|
|
|
post-install:
|
|
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>
|