mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
- Attempt to fix build with custom LOCALBASE
Reported by: QS Tindie
This commit is contained in:
parent
c35d416b83
commit
35a824943d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235164
@ -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
|
||||
|
@ -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 #
|
||||
|
Loading…
Reference in New Issue
Block a user