diff options
author | danfe <danfe@FreeBSD.org> | 2011-12-15 19:45:10 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2011-12-15 19:45:10 +0800 |
commit | 21947045ea9f06b6e2be54e345b4adf7f5042ecc (patch) | |
tree | 187b4b08cfa973c25309d6ae4567cbd80838c144 /graphics/lensfun | |
parent | 6d8e684aab4383e655a7677d16fe00b734e03ed5 (diff) | |
download | freebsd-ports-gnome-21947045ea9f06b6e2be54e345b4adf7f5042ecc.tar.gz freebsd-ports-gnome-21947045ea9f06b6e2be54e345b4adf7f5042ecc.tar.zst freebsd-ports-gnome-21947045ea9f06b6e2be54e345b4adf7f5042ecc.zip |
- 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 [*]
Diffstat (limited to 'graphics/lensfun')
-rw-r--r-- | graphics/lensfun/Makefile | 31 | ||||
-rw-r--r-- | graphics/lensfun/pkg-plist | 8 |
2 files changed, 17 insertions, 22 deletions
diff --git a/graphics/lensfun/Makefile b/graphics/lensfun/Makefile index eba6598bd9d0..faf3ada4bcfd 100644 --- a/graphics/lensfun/Makefile +++ b/graphics/lensfun/Makefile @@ -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> diff --git a/graphics/lensfun/pkg-plist b/graphics/lensfun/pkg-plist index b7bdeffcc832..b29c993600a0 100644 --- a/graphics/lensfun/pkg-plist +++ b/graphics/lensfun/pkg-plist @@ -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 |