mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- Fix a problem when fpc.cfg is removed on deinstall time
- Bump PORTREVISION Reported by: erwin
This commit is contained in:
parent
177a5ac850
commit
ab3da0c113
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296800
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= fpc
|
||||
PORTVERSION= 2.6.0
|
||||
PORTREVISION?= 1
|
||||
PORTREVISION?= 2
|
||||
CATEGORIES?= lang
|
||||
MASTER_SITES= ftp://ftp.freepascal.org/pub/fpc/dist/${PORTVERSION}/source/:source \
|
||||
ftp://planetmirror.com/pub/fpc/dist/${PORTVERSION}/source/:source \
|
||||
@ -154,10 +154,10 @@ post-install:
|
||||
if [ -e "${PREFIX}/bin/${PPNAME}" ]; then ${RM} -f "${PREFIX}/bin/${PPNAME}"; fi
|
||||
${LN} -s "${PREFIX}/lib/fpc/${PORTVERSION}/${PPNAME}" "${PREFIX}/bin"
|
||||
${SH} "${PREFIX}/lib/fpc/${PORTVERSION}/samplecfg" "${PREFIX}/lib/fpc/${PORTVERSION}" "${PREFIX}/etc"
|
||||
@${REINPLACE_CMD} -i "" -e 's|^-Fl/usr/local/lib|-Fl${LOCALBASE}/lib;${LOCALBASE}/lib/qt4|g' ${PREFIX}/etc/fpc.cfg
|
||||
@if [ ! -f ${PREFIX}/etc/fpc.cfg ]; then \
|
||||
${CP} ${PREFIX}/etc/fpc.cfg.sample ${PREFIX}/etc/fpc.cfg; \
|
||||
fi
|
||||
@${REINPLACE_CMD} -i "" -e 's|^-Fl/usr/local/lib|-Fl${LOCALBASE}/lib;${LOCALBASE}/lib/qt4|g' ${PREFIX}/etc/fpc.cfg
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.else
|
||||
|
Loading…
Reference in New Issue
Block a user