diff options
author | edwin <edwin@FreeBSD.org> | 2006-04-01 20:44:58 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2006-04-01 20:44:58 +0800 |
commit | 9d306807166d8880a28481e643d5d1f714d64f76 (patch) | |
tree | b7f3d57330db6a0eb38fbc0b1a3b3d0fab0c0d63 /chinese | |
parent | 4a028daa104b5f4c96b261a8aedc6180136aeed5 (diff) | |
download | freebsd-ports-gnome-9d306807166d8880a28481e643d5d1f714d64f76.tar.gz freebsd-ports-gnome-9d306807166d8880a28481e643d5d1f714d64f76.tar.zst freebsd-ports-gnome-9d306807166d8880a28481e643d5d1f714d64f76.zip |
Use SUB_FILES
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/bg5ps/Makefile | 2 | ||||
-rw-r--r-- | chinese/bg5ps/files/pkg-message.in (renamed from chinese/bg5ps/pkg-message) | 4 | ||||
-rw-r--r-- | chinese/chinput3/Makefile | 3 | ||||
-rw-r--r-- | chinese/chinput3/files/pkg-message.in (renamed from chinese/chinput3/pkg-message) | 0 | ||||
-rw-r--r-- | chinese/mplayer-fonts/Makefile | 2 | ||||
-rw-r--r-- | chinese/mplayer-fonts/files/pkg-message.in (renamed from chinese/mplayer-fonts/pkg-message) | 2 | ||||
-rw-r--r-- | chinese/pyDict/Makefile | 2 | ||||
-rw-r--r-- | chinese/pyDict/files/pkg-message.in (renamed from chinese/pyDict/pkg-message) | 2 | ||||
-rw-r--r-- | chinese/xsim/Makefile | 7 | ||||
-rw-r--r-- | chinese/xsim/files/pkg-message.in (renamed from chinese/xsim/pkg-message) | 0 | ||||
-rw-r--r-- | chinese/xsim/files/xsim.sh.in (renamed from chinese/xsim/files/xsim.sh) | 0 |
11 files changed, 15 insertions, 9 deletions
diff --git a/chinese/bg5ps/Makefile b/chinese/bg5ps/Makefile index 1d6b946ad15e..273895c13950 100644 --- a/chinese/bg5ps/Makefile +++ b/chinese/bg5ps/Makefile @@ -16,6 +16,8 @@ COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts USE_FREETYPE= yes USE_PYTHON= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message do-install: @${MKDIR} ${PREFIX}/share/doc/bg5ps diff --git a/chinese/bg5ps/pkg-message b/chinese/bg5ps/files/pkg-message.in index 69734efe44a5..12ff7ba2c1f8 100644 --- a/chinese/bg5ps/pkg-message +++ b/chinese/bg5ps/files/pkg-message.in @@ -1,8 +1,8 @@ -------------------------------------------------------------------- Please check the following files: -/usr/local/etc/bg5ps.conf.sample -/usr/local/etc/gb2312-bg5ps.conf.sample +%%PREFIX%%/etc/bg5ps.conf.sample +%%PREFIX%%/etc/gb2312-bg5ps.conf.sample Copy one of them to ~/.bg5ps.conf(depend on which encoding you use), then modify it to suit your needs. Type `bg5ps -h` for help. diff --git a/chinese/chinput3/Makefile b/chinese/chinput3/Makefile index 5fccc74050d7..e6596411d2c9 100644 --- a/chinese/chinput3/Makefile +++ b/chinese/chinput3/Makefile @@ -20,8 +20,8 @@ USE_GETTEXT= yes USE_GNOME= gtk12 imlib USE_REINPLACE= yes -MSG_FILE= ${.CURDIR}/pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message .include <bsd.port.pre.mk> @@ -40,7 +40,6 @@ pre-build: -e 's|-lc_r|${PTHREAD_CFLAGS} ${PTHREAD_LIBS}|' post-install: - @${SED} -e 's,%%X11BASE%%,${X11BASE},g' ${MSG_FILE} > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/chinese/chinput3/pkg-message b/chinese/chinput3/files/pkg-message.in index acc0298d882f..acc0298d882f 100644 --- a/chinese/chinput3/pkg-message +++ b/chinese/chinput3/files/pkg-message.in diff --git a/chinese/mplayer-fonts/Makefile b/chinese/mplayer-fonts/Makefile index 3a542cbcba41..ea65f6cba3e6 100644 --- a/chinese/mplayer-fonts/Makefile +++ b/chinese/mplayer-fonts/Makefile @@ -23,6 +23,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libiconv.so.3:${PORTSDIR}/converters/libiconv \ USE_BZIP2= yes WRKSRC= ${WRKDIR}/${SUBFONT_DISTNAME} PLIST_SUB+= MF=${MPLAYER_FONTDIR:S,${LOCALBASE}/,,g} +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message SUBFONT_DISTNAME= subfont-c-0.90pre6 MPLAYER_FONTDIR= ${LOCALBASE}/share/mplayer/fonts/chinese diff --git a/chinese/mplayer-fonts/pkg-message b/chinese/mplayer-fonts/files/pkg-message.in index b641bd5b2842..1d74c7c7d256 100644 --- a/chinese/mplayer-fonts/pkg-message +++ b/chinese/mplayer-fonts/files/pkg-message.in @@ -3,6 +3,6 @@ unicode=1 - and make a symbolic link of $PREFIX/share/mplayer/fonts/chinese/${FONT} + and make a symbolic link of %%PREFIX%%/share/mplayer/fonts/chinese/${FONT} as $HOME/.mplayer/font =========================================================================== diff --git a/chinese/pyDict/Makefile b/chinese/pyDict/Makefile index 14b224d2483f..efda8d3fd13f 100644 --- a/chinese/pyDict/Makefile +++ b/chinese/pyDict/Makefile @@ -25,6 +25,8 @@ SHAREMODE= 644 DICTDIR= ${PREFIX}/lib/X11/pyDict DOCDIR= ${PREFIX}/share/doc/pyDict USE_REINPLACE= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +USE_SUBFILES= pkg-message .include <bsd.port.pre.mk> diff --git a/chinese/pyDict/pkg-message b/chinese/pyDict/files/pkg-message.in index 1f735c1dc1bb..9f572dd8cba5 100644 --- a/chinese/pyDict/pkg-message +++ b/chinese/pyDict/files/pkg-message.in @@ -2,7 +2,7 @@ --------------------------------------------------------- If you experience problems displaying Chinese, first make sure that you have correct locale settings, then copy -/usr/X11R6/lib/X11/pyDict/gtkrc.zh_TW.big5.sample to +%%PREFIX%%/lib/X11/pyDict/gtkrc.zh_TW.big5.sample to ~/.gtkrc.zh_TW.big5 and try again. --------------------------------------------------------- diff --git a/chinese/xsim/Makefile b/chinese/xsim/Makefile index 087d2d03556b..c2bcfa8f131d 100644 --- a/chinese/xsim/Makefile +++ b/chinese/xsim/Makefile @@ -22,6 +22,8 @@ USE_REINPLACE= yes USE_XLIB= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-cn-locale=eucCN +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message xsim.sh .include <bsd.port.pre.mk> @@ -39,10 +41,9 @@ post-patch: @${REINPLACE_CMD} "s/-O2/${CFLAGS}/g" ${WRKSRC}/configure post-install: - @${SED} "s|%%PREFIX%%|${PREFIX}|g" <${FILESDIR}/xsim.sh \ - >${PREFIX}/bin/xsim && ${CHMOD} 555 ${PREFIX}/bin/xsim + ${INSTALL_DATA} ${WRKDIR}/xsim.sh ${PREFIX}/bin/xsim @${MKDIR} ${DATADIR}/dat @${CP} -R ${WRKDIR}/usr/local/xsim/dat/* ${DATADIR}/dat - @${SED} -e 's,%%X11BASE%%,${X11BASE},g' < ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/chinese/xsim/pkg-message b/chinese/xsim/files/pkg-message.in index 2962664fe98c..2962664fe98c 100644 --- a/chinese/xsim/pkg-message +++ b/chinese/xsim/files/pkg-message.in diff --git a/chinese/xsim/files/xsim.sh b/chinese/xsim/files/xsim.sh.in index 115ec73f9ce0..115ec73f9ce0 100644 --- a/chinese/xsim/files/xsim.sh +++ b/chinese/xsim/files/xsim.sh.in |