1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Add LICENSE (GPLv3), take maintainerhsip

- Don't pass CPPFLAGS to CONFIGURE_ENV, it's already there
- Cleanup Makefile while here
This commit is contained in:
Alexey Dokuchaev 2011-06-10 10:02:46 +00:00
parent 17219d2777
commit 018262ffe9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275299

View File

@ -1,6 +1,6 @@
# New ports collection makefile for: lensfun
# Date created: Mon 25 May 2009 04:45:47 MSD
# Whom: dindin@dindin.ru
# Whom: Denis Barov <dindin@dindin.ru>
#
# $FreeBSD$
#
@ -11,16 +11,18 @@ PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= BERLIOS
MAINTAINER= ports@FreeBSD.org
MAINTAINER= danfe@FreeBSD.org
COMMENT= Library for fixing lens geometry distortion
LIB_DEPENDS= png:${PORTSDIR}/graphics/png
LICENSE= GPLv3
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
USE_LDCONFIG= yes
USE_GMAKE= yes
USE_PYTHON= yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= glib20
USE_LDCONFIG= yes
USE_PYTHON= yes
MAKEFILE= GNUmakefile
LIBVERSION= 2
@ -28,7 +30,7 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CXXFLAGS+= -I${LOCALBASE}/include
HAS_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --prefix=${PREFIX} --target=${TARGET} --vectorization=SSE
PLIST_SUB+= PORTVERSION=${PORTVERSION} LIBVERSION=${LIBVERSION}
@ -36,14 +38,12 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} 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 's|{_libdir}/pkgconfig|{_libdir}/../libdata/pkgconfig|' \
${WRKSRC}/build/lensfun.spec.in
@${REINPLACE_CMD} -e 's|CONF_LIBDIR)pkgconfig|CONF_LIBDIR)../libdata/pkgconfig|g' \
${WRKSRC}/build/tibs/compiler/pkgconfig.mak
-e '/add_config_mak.*DOXYGEN/d' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|CONF_LIBDIR)pkgconfig|CONF_LIBDIR)../libdata/pkgconfig|' \
${WRKSRC}/build/tibs/compiler/pkgconfig.mak
post-install:
@${LN} -sf ${PREFIX}/lib/lib${PORTNAME}.so ${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
${LN} -sf ${PREFIX}/lib/lib${PORTNAME}.so ${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
.include <bsd.port.mk>