import ports/graphics/lensfun

lensfun is a library and database of photographic lenses to adjust
images for lens characteristics, e.g. distortion, transversal (also
known as lateral) chromatic aberrations, vignetting and colour
contribution of the lens.
This commit is contained in:
sthen 2009-11-16 11:54:40 +00:00
parent 20337f54f1
commit 1dfda7e78d
9 changed files with 251 additions and 0 deletions

52
graphics/lensfun/Makefile Normal file
View File

@ -0,0 +1,52 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/11/16 11:54:40 sthen Exp $
COMMENT= library to adjust for photographic lens characteristics
DISTNAME= lensfun-0.2.3
SHARED_LIBS= lensfun 0.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
WANTLIB += c m stdc++ z
MASTER_SITES= ${MASTER_SITE_BERLIOS:=lensfun/}
EXTRACT_SUFX= .tar.bz2
MODULES= lang/python devel/gettext
MODPY_RUNDEP= No
BUILD_DEPENDS= ::devel/doxygen
LIB_DEPENDS= glib-2.0::devel/glib2 \
png::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
NO_REGRESS = Yes
CFLAGS+= -I/usr/include -I${LOCALBASE}/include/libpng
MAKE_FILE= GNUmakefile
ALL_TARGET = all tests
SUBST_VARS = MAKE_PROGRAM
pre-configure:
${SUBST_CMD} ${WRKSRC}/configure ${WRKSRC}/ac.py
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/out/posix/release/tmod ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (lensfun-0.2.3.tar.bz2) = xcBL5PU+Pu9FD/SUjY9lsw==
RMD160 (lensfun-0.2.3.tar.bz2) = MQ+JY43ydUcu441Kxhs6Yj25T18=
SHA1 (lensfun-0.2.3.tar.bz2) = TLj7TOnEOex6NEfX/TXf1bcyU84=
SHA256 (lensfun-0.2.3.tar.bz2) = g2q1hpwOgaVBAMOJ5ydOrRg9jdXuGZJmm62S9XxDSE8=
SIZE (lensfun-0.2.3.tar.bz2) = 151189

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ac_py,v 1.1.1.1 2009/11/16 11:54:40 sthen Exp $
--- ac.py.orig Mon Nov 9 15:31:59 2009
+++ ac.py Mon Nov 9 15:32:31 2009
@@ -37,7 +37,7 @@ PROJ = "Unknown"
# Version number (major.minor.release)
VERSION = "0.0.0"
-PREFIX = "/usr/local"
+PREFIX = "${TRUEPREFIX}"
BINDIR = None
DATADIR = None
SYSCONFDIR = None

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-build_mak_compiler_gcc_mak,v 1.1.1.1 2009/11/16 11:54:40 sthen Exp $
--- build/mak/compiler/gcc.mak.orig Sun May 11 16:50:15 2008
+++ build/mak/compiler/gcc.mak Mon Nov 9 17:32:52 2009
@@ -3,13 +3,13 @@
.SUFFIXES: .c .cpp .o .a .pc .pc.in
GCC.CC ?= gcc -c
-GCC.CFLAGS = -pipe -Wall \
+GCC.CFLAGS = -Wall \
$(GCC.CFLAGS.$(MODE)) $(GCC.CFLAGS.DEF) $(GCC.CFLAGS.INC) $(CFLAGS)
GCC.CFLAGS.DEF =
GCC.CFLAGS.INC = $(if $(DIR.INCLUDE.CXX),-I$(subst ;, -I,$(DIR.INCLUDE.CXX)))
GCC.CFLAGS.SHARED ?= -fPIC
-GCC.CFLAGS.release = -s -O3 -fomit-frame-pointer -funroll-loops
+GCC.CFLAGS.release =
GCC.CFLAGS.debug = -D__DEBUG__ -g
GCC.CXX ?= g++ -c
@@ -73,7 +73,7 @@ endef
LINK.GCC.AR = $(GCC.AR) $(GCC.ARFLAGS) $@ $^
LINK.GCC.EXEC = $(GCC.LD) -o $@ $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
define LINK.GCC.SO
- $(GCC.LD) -o $@.$(SHARED.$3) -Wl,"-soname=$(notdir $@).$(basename $(basename $(SHARED.$3)))" $(GCC.LDFLAGS.SHARED) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
+ $(GCC.LD) -o $@.$(SHARED.$3) -Wl,"-soname=$(notdir $@).$(SHARED.$3)" $(GCC.LDFLAGS.SHARED) $(GCC.LDFLAGS) $(LDFLAGS) $1 $^ $(GCC.LDFLAGS.LIBS) $(LDFLAGS.LIBS) $2
ln -fs $(notdir $@.$(SHARED.$3)) $@.$(basename $(basename $(SHARED.$3)))
ln -fs $(notdir $@.$(basename $(basename $(SHARED.$3)))) $@
endef

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-build_mak_host_posix_mak,v 1.1.1.1 2009/11/16 11:54:40 sthen Exp $
--- build/mak/host/posix.mak.orig Mon Nov 9 15:41:17 2009
+++ build/mak/host/posix.mak Mon Nov 9 15:43:26 2009
@@ -5,12 +5,12 @@ SHELL := /bin/sh
# $1 - file, $2 - target dir, $3 - mode
define SINGLE.INSTALL
if [ ! -d $2 ]; then install -m 0755 -d $2; fi
- if [ -L $1 ]; then cp -d $1 $2$(notdir $1); else install -m $3 $1 $2$(notdir $1); fi
+ if [ -L $1 ]; then cp -RP $1 $2$(notdir $1); else install -m $3 $1 $2$(notdir $1); fi
endef
# $1 - directory, $2 - target dir, $3 - mode for files
define SINGLE.INSTALLDIR
if [ ! -d $2 ]; then install -m 0755 -d $2; fi
- cp -drP $1* $2
+ cp -RP $1* $2
find $2 -type f -print0 | xargs -0 chmod $3
endef

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-configure,v 1.1.1.1 2009/11/16 11:54:40 sthen Exp $
--- configure.orig Fri Oct 3 21:59:53 2008
+++ configure Mon Nov 9 15:30:14 2009
@@ -15,7 +15,7 @@ ac.HOMEPAGE = "http://lensfun.berlios.de"
ac.start ()
# Check for tools
-ac.check_program ("GNU Make", "make --version", ".*?([0-9\.]+).*", "3.81", True)
+ac.check_program ("GNU Make", "gmake --version", ".*?([0-9\.]+).*", "3.81", True)
if ac.check_program ("makedep", "makedep -V", ".*Version.*?([0-9\.]+).*", "0.1.0"):
ac.add_config_mak ("MAKEDEP", "makedep")
makedep = "yes"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_lensfun_lensfun_mak,v 1.1.1.1 2009/11/16 11:54:40 sthen Exp $
--- libs/lensfun/lensfun.mak.orig Mon Nov 9 16:41:35 2009
+++ libs/lensfun/lensfun.mak Mon Nov 9 16:41:46 2009
@@ -3,7 +3,7 @@ DESCRIPTION.lensfun = Photographic lens database libra
DIR.INCLUDE.CXX += ;include/lensfun
TARGETS.lensfun = lensfun$L
SRC.lensfun$L := $(wildcard libs/lensfun/*.cpp)
-SHARED.lensfun$L = $(if $(SHAREDLIBS),$(CONF_VERSION))
+SHARED.lensfun$L = $(LIBlensfun_VERSION)
SYSLIBS.lensfun = GLIB_20
INSTALL.TARGETS += lensfun
INSTALL.HEADERS.lensfun$L = include/lensfun/lensfun.h

View File

@ -0,0 +1,4 @@
lensfun is a library and database of photographic lenses to adjust
images for lens characteristics, e.g. distortion, transversal (also
known as lateral) chromatic aberrations, vignetting and colour
contribution of the lens.

108
graphics/lensfun/pkg/PLIST Normal file
View File

@ -0,0 +1,108 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/11/16 11:54:40 sthen Exp $
@bin bin/tmod
include/lensfun.h
@comment lib/liblensfun.so
@comment lib/liblensfun.so.0
@lib lib/liblensfun.so.${LIBlensfun_VERSION}
lib/pkgconfig/lensfun.pc
share/doc/lensfun/
share/doc/lensfun/README
share/doc/lensfun/cc-by-sa-3.0.txt
share/doc/lensfun/gpl-3.0.txt
share/doc/lensfun/lgpl-3.0.txt
share/doc/lensfun/manual/
share/doc/lensfun/manual/addcamera.html
share/doc/lensfun/manual/annotated.html
share/doc/lensfun/manual/basearch.html
share/doc/lensfun/manual/cc-by-ca.html
share/doc/lensfun/manual/credits.html
share/doc/lensfun/manual/database.html
share/doc/lensfun/manual/dbformat.html
share/doc/lensfun/manual/dbsearch.html
share/doc/lensfun/manual/doxygen.css
share/doc/lensfun/manual/doxygen.png
share/doc/lensfun/manual/el_camera.html
share/doc/lensfun/manual/el_lens.html
share/doc/lensfun/manual/el_mount.html
share/doc/lensfun/manual/elem_calibration.html
share/doc/lensfun/manual/example_8c-example.html
share/doc/lensfun/manual/examples.html
share/doc/lensfun/manual/files.html
share/doc/lensfun/manual/filldb.html
share/doc/lensfun/manual/functions.html
share/doc/lensfun/manual/functions_func.html
share/doc/lensfun/manual/functions_vars.html
share/doc/lensfun/manual/globals.html
share/doc/lensfun/manual/globals_defs.html
share/doc/lensfun/manual/globals_enum.html
share/doc/lensfun/manual/globals_eval.html
share/doc/lensfun/manual/globals_func.html
share/doc/lensfun/manual/globals_type.html
share/doc/lensfun/manual/gpl.html
share/doc/lensfun/manual/group__Auxiliary.html
share/doc/lensfun/manual/group__Camera.html
share/doc/lensfun/manual/group__Correction.html
share/doc/lensfun/manual/group__Database.html
share/doc/lensfun/manual/group__Lens.html
share/doc/lensfun/manual/group__Mount.html
share/doc/lensfun/manual/index.html
share/doc/lensfun/manual/lensfun_8h-source.html
share/doc/lensfun/manual/lensfun_8h.html
share/doc/lensfun/manual/lgpl.html
share/doc/lensfun/manual/license.html
share/doc/lensfun/manual/modules.html
share/doc/lensfun/manual/pages.html
share/doc/lensfun/manual/programming.html
share/doc/lensfun/manual/samplecode.html
share/doc/lensfun/manual/structlfCamera-members.html
share/doc/lensfun/manual/structlfCamera.html
share/doc/lensfun/manual/structlfDatabase-members.html
share/doc/lensfun/manual/structlfDatabase.html
share/doc/lensfun/manual/structlfLens-members.html
share/doc/lensfun/manual/structlfLens.html
share/doc/lensfun/manual/structlfLensCalibDistortion-members.html
share/doc/lensfun/manual/structlfLensCalibDistortion.html
share/doc/lensfun/manual/structlfLensCalibTCA-members.html
share/doc/lensfun/manual/structlfLensCalibTCA.html
share/doc/lensfun/manual/structlfLensCalibVignetting-members.html
share/doc/lensfun/manual/structlfLensCalibVignetting.html
share/doc/lensfun/manual/structlfModifier-members.html
share/doc/lensfun/manual/structlfModifier.html
share/doc/lensfun/manual/structlfMount-members.html
share/doc/lensfun/manual/structlfMount.html
share/doc/lensfun/manual/structlfParameter-members.html
share/doc/lensfun/manual/structlfParameter.html
share/doc/lensfun/manual/tab_b.gif
share/doc/lensfun/manual/tab_l.gif
share/doc/lensfun/manual/tab_r.gif
share/doc/lensfun/manual/tabs.css
share/doc/lensfun/manual/tfun_8cpp-example.html
share/doc/lensfun/manual/tmod_8cpp-example.html
share/lensfun/
share/lensfun/6x6.xml
share/lensfun/compact-canon.xml
share/lensfun/compact-casio.xml
share/lensfun/compact-fujifilm.xml
share/lensfun/compact-konica-minolta.xml
share/lensfun/compact-leica.xml
share/lensfun/compact-nikon.xml
share/lensfun/compact-olympus.xml
share/lensfun/compact-panasonic.xml
share/lensfun/compact-pentax.xml
share/lensfun/compact-ricoh.xml
share/lensfun/compact-sony.xml
share/lensfun/generic.xml
share/lensfun/rf-leica.xml
share/lensfun/slr-canon.xml
share/lensfun/slr-contax.xml
share/lensfun/slr-konica-minolta.xml
share/lensfun/slr-nikon.xml
share/lensfun/slr-olympus.xml
share/lensfun/slr-pentax.xml
share/lensfun/slr-samsung.xml
share/lensfun/slr-schneider.xml
share/lensfun/slr-sigma.xml
share/lensfun/slr-sony.xml
share/lensfun/slr-tamron.xml
share/lensfun/slr-tokina.xml
share/lensfun/slr-ussr.xml