Use SUB_FILES for pkg-message
This commit is contained in:
parent
82bd7667e5
commit
68deee40d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158554
9 changed files with 13 additions and 19 deletions
|
@ -19,6 +19,8 @@ COMMENT= A SLang-based IRC client
|
|||
LIB_DEPENDS= ${LIB_DEPENDS_LIBSLANG}
|
||||
|
||||
USE_GMAKE= yes
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
SLANG_INCDIR?= ${PREFIX}/include
|
||||
SLANG_LIBDIR?= ${PREFIX}/lib
|
||||
|
|
|
@ -4,8 +4,8 @@ Quickstart:
|
|||
- Copy config.sl and colours.sl to ~/.slirc/scripts
|
||||
|
||||
mkdir -p ~/.slirc/scripts
|
||||
cp ${PREFIX}/lib/slirc/scripts/config.sl ~/.slirc/scripts
|
||||
cp ${PREFIX}/lib/slirc/scripts/colours.sl ~/.slirc/scripts
|
||||
cp %%PREFIX%%/lib/slirc/scripts/config.sl ~/.slirc/scripts
|
||||
cp %%PREFIX%%/lib/slirc/scripts/colours.sl ~/.slirc/scripts
|
||||
|
||||
- Edit ~/.slirc/scripts/config.sl
|
||||
|
|
@ -26,6 +26,8 @@ GNU_CONFIGURE= yes
|
|||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ARGS+= --without-conf
|
||||
INSTALLS_SHLIB= yes
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
.if defined(WITHOUT_CURL)
|
||||
CONFIGURE_ARGS+= --without-curl
|
||||
|
|
|
@ -9,7 +9,7 @@ try this.
|
|||
See `installmgr --help` for details.
|
||||
2. Download raw zip-archives from
|
||||
http://www.crosswire.org/sword/modules/
|
||||
and unpack them in PREFIX/share/sword.
|
||||
and unpack them in %%PREFIX%%/share/sword.
|
||||
|
||||
You probabely want to install a bible-application that uses sword, like
|
||||
cheatah, bibletime or gnomesword.
|
|
@ -26,6 +26,8 @@ GNU_CONFIGURE= yes
|
|||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ARGS+= --without-conf
|
||||
INSTALLS_SHLIB= yes
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
.if defined(WITHOUT_CURL)
|
||||
CONFIGURE_ARGS+= --without-curl
|
||||
|
|
|
@ -9,7 +9,7 @@ try this.
|
|||
See `installmgr --help` for details.
|
||||
2. Download raw zip-archives from
|
||||
http://www.crosswire.org/sword/modules/
|
||||
and unpack them in PREFIX/share/sword.
|
||||
and unpack them in %%PREFIX%%/share/sword.
|
||||
|
||||
You probabely want to install a bible-application that uses sword, like
|
||||
cheatah, bibletime or gnomesword.
|
|
@ -26,8 +26,8 @@ USE_RC_SUBR= yes
|
|||
ALL_TARGET= bsd
|
||||
BUILD_WRKSRC= ${WRKSRC}/src
|
||||
|
||||
MSG_FILE= ${PKGDIR}/pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message upclient.sh
|
||||
|
||||
MAN8= upclient.8
|
||||
|
||||
|
@ -35,8 +35,6 @@ MAN8= upclient.8
|
|||
#
|
||||
|
||||
REINPLACE_SUB= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
|
||||
RCSCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||
PKGMESSAGE_SUB= PREFIX=${PREFIX}
|
||||
|
||||
DOC_FILES= AUTHORS COPYING FAQ HISTORY INSTALL README TODO
|
||||
DOC_FILES+= doc/UptimesProtocol5
|
||||
|
@ -55,21 +53,11 @@ rename-doc:
|
|||
# Post-patch
|
||||
#
|
||||
|
||||
post-patch: patch-inplace patch-startup patch-pkgmessage
|
||||
|
||||
patch-inplace:
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
|
||||
${WRKSRC}/src/Makefile
|
||||
|
||||
patch-startup:
|
||||
@${SED} ${RCSCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/upclient.sh > ${WRKDIR}/upclient.sh
|
||||
|
||||
patch-pkgmessage:
|
||||
@${SED} ${PKGMESSAGE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${MSG_FILE} > ${PKGMESSAGE}
|
||||
|
||||
# Install
|
||||
#
|
||||
|
||||
|
|
Loading…
Reference in a new issue