diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-19 03:52:40 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-19 03:52:40 +0000 |
commit | ae7cc0cc5cedd28a2cc0d437b838622bb434e353 (patch) | |
tree | 2bc96ebbd75369ab5368fba7d7e83e63439b08a2 /devel/bcpp | |
parent | Add libsvm 2.33, a library for Support Vector Machines. (diff) |
honor prefix & fix warning
PR: 32996
Submitted by: maintainer
Diffstat (limited to 'devel/bcpp')
-rw-r--r-- | devel/bcpp/Makefile | 4 | ||||
-rw-r--r-- | devel/bcpp/files/patch-bcpp.cpp | 28 | ||||
-rw-r--r-- | devel/bcpp/pkg-message | 2 |
3 files changed, 27 insertions, 7 deletions
diff --git a/devel/bcpp/Makefile b/devel/bcpp/Makefile index adc5aeee5947..ffa39ce9f612 100644 --- a/devel/bcpp/Makefile +++ b/devel/bcpp/Makefile @@ -18,10 +18,14 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/code MAKEFILE= makefile ALL_TARGET= ${PORTNAME} +post-patch: + @${PERL5} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/bcpp.cpp + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg \ ${PREFIX}/etc/${PORTNAME}.cfg.sample + .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/txtdocs/hirachy.txt ${DOCSDIR} diff --git a/devel/bcpp/files/patch-bcpp.cpp b/devel/bcpp/files/patch-bcpp.cpp index f270b0c8e252..dd7ea979df9d 100644 --- a/devel/bcpp/files/patch-bcpp.cpp +++ b/devel/bcpp/files/patch-bcpp.cpp @@ -1,20 +1,36 @@ --- bcpp.cpp.orig Tue Aug 10 20:54:52 1999 -+++ bcpp.cpp Wed Nov 7 10:48:27 2001 -@@ -2721,6 +2721,7 @@ ++++ bcpp.cpp Tue Dec 18 20:22:18 2001 +@@ -1431,6 +1431,7 @@ + + } + ++/* + // purge an Indent-stack + static void freeIndentStack(StackList* pImode) + { +@@ -1451,6 +1452,7 @@ + dst -> push(temp); + } + } ++*/ + + // no extra indent immediately after any brace + void resetSingleIndent(StackList* pIMode) +@@ -2721,6 +2723,7 @@ char* pSPath = getenv ("PATH"); char* pEPath = NULL; char* pNameMem = NULL; -+ char* tmpCfgName = new char[ 16 + strlen(pCfgName) + 1]; ++ char* tmpCfgName = new char[strlen("%%PREFIX%%/etc")+strlen(pCfgName)+1]; char sepChar = NULLC; const char* pathSepChar; char backUp; -@@ -2729,6 +2730,13 @@ +@@ -2729,6 +2732,13 @@ // test to see if file is in current directory first ! if ((pCfgFile = fopen(pCfgName, "r")) != NULL) return; + -+ // look to see if it's in /usr/local/etc -+ tmpCfgName = strcat( tmpCfgName, "/usr/local/etc/" ); ++ // look to see if it's in %%PREFIX%%/etc ++ tmpCfgName = strcat( tmpCfgName, "%%PREFIX%%/etc/" ); + tmpCfgName = strcat( tmpCfgName, pCfgName ); + if ((pCfgFile = fopen(tmpCfgName, "r")) != NULL) + return; diff --git a/devel/bcpp/pkg-message b/devel/bcpp/pkg-message index 95fb7a397d1e..87ab868406bd 100644 --- a/devel/bcpp/pkg-message +++ b/devel/bcpp/pkg-message @@ -1,2 +1,2 @@ -You should modify /usr/local/etc/bcpp.cfg to your liking and +You should modify /usr/local/etc/bcpp.cfg.sample to your liking and copy it to /usr/local/etc/bcpp.cfg |