Date: Mon, 18 Apr 2011 17:31:01 +0100 (BST) From: Chris Rees <utisoft@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/156476: [MAINTAINER] Fix port: graphics/libprojectm installs broken pkgconfig file Message-ID: <201104181631.p3IGV1er068671@zeus.bayofrum.net> Resent-Message-ID: <201104181710.p3IHAAsG079360@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156476 >Category: ports >Synopsis: [MAINTAINER] Fix port: graphics/libprojectm installs broken pkgconfig file >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 18 17:10:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Chris Rees >Release: FreeBSD 8.2-RELEASE i386 >Organization: >Environment: System: FreeBSD zeus.bayofrum.net 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Sun Feb 27 22:19:51 UTC 2011 root@zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386 >Description: libprojectM installs a pkgconfig file with a blank libdir= line. >How-To-Repeat: Try to compile multimedia/vlc with projectM support (not yet in tree). Build fails with error about spaces between -L and -lprojectM >Fix: - Fix blank line output in pkgconfig file - Remove make variable from middle of pkgconfig path Submitted by: Chris Rees (utisoft_at_gmail.com) (maintainer) --- libprojectm-fix-pkgconfig.diff begins here --- Index: Makefile =================================================================== RCS file: /exports/cvsroot-freebsd/ports/graphics/libprojectm/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 14 Feb 2011 03:27:15 -0000 1.1 +++ Makefile 18 Apr 2011 16:21:10 -0000 @@ -7,6 +7,7 @@ PORTNAME= libprojectM PORTVERSION= 2.0.1 +PORTREVISION= 1 CATEGORIES= graphics audio MASTER_SITES= SF/${PORTNAME:L:S/lib//}/${PORTVERSION}/ DISTNAME= ${PORTNAME:S/lib//}-${DISTVERSION}-Source @@ -27,11 +28,15 @@ post-patch: # Install config.inp.sample instead of overwriting user's file. # Needs to be specific enough not to rename config.inp.in too! +# Also correct pkgconfig destination dir -- fiddly @${REINPLACE_CMD} -e 's/config.inp\([\" ]\)/config.inp.sample\1/' \ - -e 's#/pkgconfig#data/pkgconfig#' \ + -e 's#\(/lib\)[^}]*}\(/pkgconfig\)#\1data\2#' \ ${WRKSRC}/CMakeLists.txt @${REINPLACE_CMD} -e 's#/usr/X11R6#${LOCALBASE}#' \ ${WRKSRC}/cmake/FindFreetype2.cmake +# Fix empty libdir in pkgconfig file to stop vlc complaining + @${REINPLACE_CMD} -e 's#^\(libdir=\).*#\1${PREFIX}/lib#' \ + ${WRKSRC}/${PORTNAME}.pc.in post-install: @if [ ! -f ${PREFIX}/share/projectM/config.inp ]; then \ --- libprojectm-fix-pkgconfig.diff ends here --- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104181631.p3IGV1er068671>