aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-08-14 10:10:56 +0800
committerclsung <clsung@FreeBSD.org>2006-08-14 10:10:56 +0800
commit46fd044877c0a359fa52a7ca4effd543ba038c7b (patch)
treeacdba7837fea7b56ab8a75f9c2f2a39bbdcda918
parente962be53c6fb13aa4255a23f82b365f2659b3328 (diff)
downloadfreebsd-ports-gnome-46fd044877c0a359fa52a7ca4effd543ba038c7b.tar.gz
freebsd-ports-gnome-46fd044877c0a359fa52a7ca4effd543ba038c7b.tar.zst
freebsd-ports-gnome-46fd044877c0a359fa52a7ca4effd543ba038c7b.zip
- Respect DESTDIR
PR: 101905 Submitted by: Gea-Suan Lin <gslin_AT_gslin dot org> Approved by: maintainer (chinsan dot tw@gmail dot com)
-rw-r--r--chinese/zhcon/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/chinese/zhcon/Makefile b/chinese/zhcon/Makefile
index 856b9f89fa63..712506d02051 100644
--- a/chinese/zhcon/Makefile
+++ b/chinese/zhcon/Makefile
@@ -28,14 +28,14 @@ SUB_FILES= pkg-message
MAN1= zhcon.1
post-patch:
- @${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,' ${WRKSRC}/doc/zhcon.1.in
+ @${REINPLACE_CMD} -e 's,/etc,${TARGETDIR}/etc,' ${WRKSRC}/doc/zhcon.1.in
@${REINPLACE_CMD} -Ee 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/display/fbdev.cpp
@${REINPLACE_CMD} -Ee 's,endian,sys/endian,g' ${WRKSRC}/src/display/fblinear4.cpp \
${WRKSRC}/src/display/fblinear8.cpp ${WRKSRC}/src/display/fblinear16.cpp \
${WRKSRC}/src/display/fblinear24.cpp
- @${REINPLACE_CMD} -e '5 s,#,,; s,/usr/lib,${PREFIX}/lib,' ${WRKSRC}/src/zhcon.conf
- @${REINPLACE_CMD} -e 's,"/etc,PREFIX"/etc,' ${WRKSRC}/src/zhcon.cpp
- @${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \
+ @${REINPLACE_CMD} -e '5 s,#,,; s,/usr/lib,${TARGETDIR}/lib,' ${WRKSRC}/src/zhcon.conf
+ @${REINPLACE_CMD} -e 's,"/etc,"${TARGETDIR}/etc,' ${WRKSRC}/src/zhcon.cpp
+ @${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${TARGETDIR}\3\4,g' \
-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(WITH_BIG5)
@${REINPLACE_CMD} -e '11 s,gb2312,big5,' ${WRKSRC}/src/zhcon.conf