- Attempt to fix build with custom LOCALBASE

Reported by:	QS Tindie
This commit is contained in:
Pietro Cerutti 2009-06-04 12:54:44 +00:00
parent c35d416b83
commit 35a824943d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235164
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ PLIST_SUB+= NLS="@comment "
.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

View File

@ -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 #