Index: Makefile =================================================================== RCS file: /home/pcvs/ports/cad/oregano/Makefile,v retrieving revision 1.38 diff -u -r1.38 Makefile --- Makefile 6 Jun 2008 13:14:13 -0000 1.38 +++ Makefile 4 Jun 2009 08:13:25 -0000 @@ -31,7 +31,7 @@ .endif post-patch: - @${REINPLACE_CMD} -e "s|-Wall|${CFLAGS}|g" ${WRKSRC}/SConstruct + @${REINPLACE_CMD} -e "s|-Wall|${CFLAGS}|g;s|%%PREFIX%%|${PREFIX}|;s|pkg-config|${LOCALBASE}/bin/pkg-config|g" ${WRKSRC}/SConstruct .if defined(WITHOUT_NLS) @${REINPLACE_CMD} -e "/^SConscript ('po\/SConscript')/d" ${WRKSRC}/SConstruct .endif Index: files/patch-SConstruct =================================================================== RCS file: /home/pcvs/ports/cad/oregano/files/patch-SConstruct,v retrieving revision 1.1 diff -u -r1.1 patch-SConstruct --- files/patch-SConstruct 29 Mar 2007 09:35:49 -0000 1.1 +++ files/patch-SConstruct 4 Jun 2009 08:14:15 -0000 @@ -5,7 +5,7 @@ opts.Add (BoolOption ('RunUpdateMimeDatabase', 'Set to no if you don\'t want to run update-mime-database', 1)); opts.Add (BoolOption ('Debug', 'Set to yes you want to compile with debug symbolse', 0)); -opts.Add (PathOption ('PREFIX', 'System base prefix path', '/usr/local')); -+opts.Add (PathOption ('PREFIX', 'System base prefix path', '/usr/local', PathOption.PathIsDirCreate)); ++opts.Add (PathOption ('PREFIX', 'System base prefix path', '%%PREFIX%%', PathOption.PathIsDirCreate)); opts.Add (PackageOption ('DESTDIR', 'System base installation path', '/')); # Dependencies #