Use SUB_FILES for pkg-message
This commit is contained in:
parent
5240d29127
commit
d2d0202a45
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158549
@ -21,6 +21,8 @@ JAVA_VERSION= 1.2+
|
||||
DOWNLOAD_URL= http://www.esri.com/software/arcexplorer/download4.html
|
||||
NO_BUILD= yes
|
||||
WRKSRC= ${WRKDIR}/ArcExplorer${PORTVERSION}
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -37,7 +39,7 @@ do-install:
|
||||
|
||||
post-install:
|
||||
@${ECHO_CMD}
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|'
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO_CMD}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -38,6 +38,8 @@ BROKEN= Incomplete pkg-plist
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-prg-${PORTVERSION:R}-${PORTVERSION:E}
|
||||
USE_GETTEXT= yes
|
||||
WANT_GNOME= yes
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
OPTIONS= IODBC "iODBC support" on \
|
||||
UNIXODBC "unixODBC support (not with iODBC)" off \
|
||||
@ -115,8 +117,6 @@ MAKE_ENV= HOME="${WRKDIR}" \
|
||||
WITH_IODBC="${WITH_IODBC}" \
|
||||
CLIP_CONFIGURE_FLAGS="-l"
|
||||
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
FIREBIRD_PORT?= databases/firebird-client
|
||||
|
||||
BIN2STRIP= bdbf clip clip_bl clip_blank clip_cld clip_conv clip_dbf2txt \
|
||||
@ -165,7 +165,6 @@ do-install:
|
||||
done
|
||||
|
||||
post-install:
|
||||
@${SED} 's+/usr/local+${PREFIX}+' <${.CURDIR}/pkg-message >${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
4
databases/clip/files/pkg-message.in
Normal file
4
databases/clip/files/pkg-message.in
Normal file
@ -0,0 +1,4 @@
|
||||
You should add %%PREFIX%%/clip/bin to your $PATH.
|
||||
Please set CLIPROOT to %%PREFIX%%/clip in your environment.
|
||||
|
||||
Remark: unset LANG / LC_ALL for better results.
|
@ -1,4 +0,0 @@
|
||||
You should add /usr/local/clip/bin to your $PATH.
|
||||
Please set CLIPROOT to /usr/local/clip in your environment.
|
||||
|
||||
Remark: unset LANG / LC_ALL for better results.
|
@ -15,6 +15,8 @@ MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= No-IP.com's dynamic DNS update client
|
||||
|
||||
ALL_TARGET= noip2
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
post-build:
|
||||
${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/noip.sh > ${WRKSRC}/noip.sh
|
||||
@ -31,7 +33,9 @@ do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/README.FIRST ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/COPYING ${DOCSDIR}
|
||||
.endif
|
||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g" ${PKGMESSAGE} | ${SED} "s|%%WRKSRC%%|${WRKSRC}|g"
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
conf:
|
||||
(cd ${PREFIX}/etc && ${PREFIX}/bin/noip2 -C)
|
||||
|
Loading…
Reference in New Issue
Block a user