mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
Fix pkgconfig.
PR: ports/156476 Submitted by: Chris Rees <utisoft@gmail.com> (maintainer) Approved by: wxs (mentor)
This commit is contained in:
parent
b0852c0559
commit
aa90b51026
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273084
@ -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 @@ USE_LDCONFIG= yes
|
||||
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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user