Date: Sat, 12 Aug 2006 15:40:06 +0800 (CST) From: Gea-Suan Lin <gslin@gslin.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gslin@gslin.org, clsung@FreeBSD.org Subject: ports/101878: [PATCH] japanese/mecab: Respect DESTDIR Message-ID: <20060812074006.AED60372@netnews.NCTU.edu.tw> Resent-Message-ID: <200608120740.k7C7eKBd083326@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101878 >Category: ports >Synopsis: [PATCH] japanese/mecab: Respect DESTDIR >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Aug 12 07:40:20 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gea-Suan Lin >Release: FreeBSD 6.1-RELEASE i386 >Organization: >Environment: System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006 >Description: - Respect DESTDIR - Use USE_LDCONFIG Port maintainer (clsung@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- mecab-0.93_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/japanese/mecab/Makefile /home/staff/gslin/work/ports/mecab/Makefile --- /usr/ports/japanese/mecab/Makefile Thu Aug 3 03:10:00 2006 +++ /home/staff/gslin/work/ports/mecab/Makefile Sat Aug 12 15:39:12 2006 @@ -18,13 +18,13 @@ SUB_DIR= 21187 +GNU_CONFIGURE= yes USE_ICONV= yes +USE_LDCONFIG= yes USE_PERL5_BUILD= yes -GNU_CONFIGURE= yes -INSTALLS_SHLIB= yes -CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I ${PREFIX}/include" \ - LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" +CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I ${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" # Default charset (euc-jp/shift_jis/utf-8) .if defined(WITH_CHARSET) @@ -50,8 +50,8 @@ ${CP} ${WRKSRC}/mecabrc ${WRKSRC}/mecabrc.dist post-install: - @if [ ! -f ${PREFIX}/etc/mecabrc ]; then \ - ${INSTALL_DATA} ${PREFIX}/etc/mecabrc.dist ${PREFIX}/etc/mecabrc; \ + @if [ ! -f ${TARGETDIR}/etc/mecabrc ]; then \ + ${INSTALL_DATA} ${TARGETDIR}/etc/mecabrc.dist ${TARGETDIR}/etc/mecabrc; \ fi .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} diff -ruN --exclude=CVS /usr/ports/japanese/mecab/pkg-plist /home/staff/gslin/work/ports/mecab/pkg-plist --- /usr/ports/japanese/mecab/pkg-plist Mon Jul 31 10:52:49 2006 +++ /home/staff/gslin/work/ports/mecab/pkg-plist Sat Aug 12 15:39:26 2006 @@ -1,3 +1,4 @@ +@comment $FreeBSD$ bin/mecab bin/mecab-config include/mecab.h --- mecab-0.93_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060812074006.AED60372>