diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2009-06-05 18:41:48 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2009-06-05 18:41:48 +0000 |
commit | 8177448b5eec5a5088d3ad7b2bc5090a300c282f (patch) | |
tree | 163e211a8153228bb97226ed9e24e54f60159e57 | |
parent | f801feeaae130ca6158c765a30db51803ddee9d5 (diff) | |
download | ports-8177448b5eec5a5088d3ad7b2bc5090a300c282f.tar.gz ports-8177448b5eec5a5088d3ad7b2bc5090a300c282f.zip |
Notes
-rw-r--r-- | devel/p5-Cdk/Makefile | 3 | ||||
-rw-r--r-- | devel/p5-Cdk/files/patch-Makefile.PL | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/devel/p5-Cdk/Makefile b/devel/p5-Cdk/Makefile index 56cb1af84ae4..743303891930 100644 --- a/devel/p5-Cdk/Makefile +++ b/devel/p5-Cdk/Makefile @@ -21,4 +21,7 @@ LIB_DEPENDS= cdk.5:${PORTSDIR}/devel/cdk PERL_CONFIGURE= yes +post-patch: + ${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/Makefile.PL + .include <bsd.port.mk> diff --git a/devel/p5-Cdk/files/patch-Makefile.PL b/devel/p5-Cdk/files/patch-Makefile.PL index a4d643ea816c..dc0d689d2f52 100644 --- a/devel/p5-Cdk/files/patch-Makefile.PL +++ b/devel/p5-Cdk/files/patch-Makefile.PL @@ -1,10 +1,12 @@ ---- Makefile.PL.orig Fri Mar 5 10:18:19 2004 -+++ Makefile.PL Fri Mar 5 10:18:41 2004 -@@ -14,6 +14,6 @@ +--- ./Makefile.PL.orig 2002-07-28 22:09:50.000000000 +0300 ++++ ./Makefile.PL 2009-06-05 21:13:48.635138099 +0300 +@@ -13,7 +13,7 @@ + WriteMakefile( 'NAME' => 'Cdk', 'VERSION' => '4.09010', - 'LIBS' => ['-L/usr/local/lib -lcdk -lcurses'], +- 'LIBS' => ['-L/usr/local/lib -lcdk -lcurses'], - 'INC' => '-I/usr/include/ncurses -I/usr/local/include/cdk', -+ 'INC' => '-I/usr/include -I/usr/local/include -I/usr/local/include/cdk', ++ 'LIBS' => ['-L%%LOCALBASE%%/lib -lcdk -lcurses'], ++ 'INC' => '-I/usr/include -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/cdk', 'clean' => {FILES => 'Makefile.old'}, ); |