blob: 989eabe4133e2e66fd224a55bf1ffa76966f9dc4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# New ports collection makefile for: LensFun
# Date created: Mon 25 May 2009 04:45:47 MSD
# Whom: Denis Barov <dindin@dindin.ru>
#
# $FreeBSD$
#
PORTNAME= lensfun
PORTVERSION= 0.2.5
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= BERLIOS
MAINTAINER= danfe@FreeBSD.org
COMMENT= Library for fixing lens geometry distortions
LICENSE= LGPL3
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= glib20
USE_LDCONFIG= yes
USE_PYTHON_BUILD= yes
MAKEFILE= GNUmakefile
LIBVERSION= 2
HAS_CONFIGURE= yes
CONFIGURE_ENV= LD="${CXX}" AR="${AR}"
CONFIGURE_ARGS= --prefix=${PREFIX} --target=${TARGET} --vectorization=SSE
MAKE_ARGS= V=1 # we want to know what's going on during the build
PLIST_SUB+= LIBVERSION=${LIBVERSION}
post-patch: .SILENT
${REINPLACE_CMD} -e '1s|#!/usr/bin/python|#!/usr/bin/env python|' \
-e 's|make --version|g&|' -e '/DOXYGEN/d' ${WRKSRC}/configure
${REINPLACE_CMD} -e \
's|CONF_LIBDIR)pkgconfig|CONF_LIBDIR)../libdata/pkgconfig|' \
${WRKSRC}/build/tibs/compiler/pkgconfig.mak
${REINPLACE_CMD} -e '/-s -O3/d' -e '/LDFLAGS\.r/s|-s|${STRIP}|' \
${WRKSRC}/build/tibs/compiler/gcc.mak
${REINPLACE_CMD} -e '/GROUPS/s| DOCS||' ${WRKSRC}/build/tibs/rules.mak
post-install:
${LN} -sf lib${PORTNAME}.so \
${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
.include <bsd.port.mk>
|