1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Change license: GPL only applies to binaries, which are not installed by

the port, so use more appropriate LGPL; this also brings us in line with
  most of the GNU/Linux distributions
- Remove licenses and useless documentation (README file containing build
  instructions); 95% of users do not interact with lensfun directly anyway
- Adjust Python dependency: it is only required during build time
- Enable verbose build (helps to study logs)
- Respect CXX/AR[*], CFLAGS; adjust COMMENT and Makefile header
- Fix symlink (do not use absolute path) and wrap overly long line
- Cleanup and sort pkg-plist
- Bump PORTREVISION after recent changes

PR:	ports/163270 [*]
This commit is contained in:
Alexey Dokuchaev 2011-12-15 11:45:10 +00:00
parent d395618e62
commit f557e719e2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287432
2 changed files with 17 additions and 22 deletions

View File

@ -1,4 +1,4 @@
# New ports collection makefile for: lensfun
# New ports collection makefile for: LensFun
# Date created: Mon 25 May 2009 04:45:47 MSD
# Whom: Denis Barov <dindin@dindin.ru>
#
@ -7,14 +7,14 @@
PORTNAME= lensfun
PORTVERSION= 0.2.5
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= BERLIOS
MAINTAINER= danfe@FreeBSD.org
COMMENT= Library for fixing lens geometry distortion
COMMENT= Library for fixing lens geometry distortions
LICENSE= GPLv3
LICENSE= LGPL3
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
@ -22,27 +22,28 @@ USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= glib20
USE_LDCONFIG= yes
USE_PYTHON= yes
USE_PYTHON_BUILD= yes
MAKEFILE= GNUmakefile
LIBVERSION= 2
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CXXFLAGS+= -I${LOCALBASE}/include
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+= PORTVERSION=${PORTVERSION} LIBVERSION=${LIBVERSION}
PLIST_SUB+= LIBVERSION=${LIBVERSION}
post-patch:
@${REINPLACE_CMD} -e '1s|#!/usr/bin/python|#!/usr/bin/env python|' \
-e 's|make --version|gmake --version|' \
-e '/add_config_mak.*DOXYGEN/d' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
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' ${WRKSRC}/build/tibs/compiler/gcc.mak
${REINPLACE_CMD} -e '/GROUPS/s| DOCS||' ${WRKSRC}/build/tibs/rules.mak
post-install:
${LN} -sf ${PREFIX}/lib/lib${PORTNAME}.so ${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
${LN} -sf lib${PORTNAME}.so \
${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
.include <bsd.port.mk>

View File

@ -1,7 +1,7 @@
include/lensfun.h
lib/liblensfun.so
lib/liblensfun.so.%%LIBVERSION%%
libdata/pkgconfig/lensfun.pc
include/lensfun.h
%%DATADIR%%/6x6.xml
%%DATADIR%%/compact-canon.xml
%%DATADIR%%/compact-casio.xml
@ -33,10 +33,4 @@ include/lensfun.h
%%DATADIR%%/slr-tamron.xml
%%DATADIR%%/slr-tokina.xml
%%DATADIR%%/slr-ussr.xml
share/doc/lensfun-%%PORTVERSION%%/README
share/doc/lensfun-%%PORTVERSION%%/lgpl-3.0.txt
share/doc/lensfun-%%PORTVERSION%%/gpl-3.0.txt
share/doc/lensfun-%%PORTVERSION%%/cc-by-sa-3.0.txt
@dirrm share/doc/lensfun-%%PORTVERSION%%
@dirrm %%DATADIR%%
@dirrmtry lib/pkgconfig