mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Avoid hardcoding /usr/X11R6/
PR: 19478 Submitted by: maintainer
This commit is contained in:
parent
340b825002
commit
9bccb8fe0b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29883
@ -18,13 +18,16 @@ LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
|
||||
png.3:${PORTSDIR}/graphics/png
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
HAS_CONFIGURE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
MAN1= xtide.1 tide.1
|
||||
MANCOMPRESSED= no
|
||||
|
||||
post-extract:
|
||||
@${GZCAT} ${DISTDIR}/harmonics.world.gz > ${WRKSRC}/harmonics
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/TideContext.cc
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tide ${PREFIX}/bin
|
||||
|
@ -13,7 +13,7 @@
|
||||
}
|
||||
}
|
||||
if (hfile_path.isNull())
|
||||
! hfile_path = "/usr/X11R6/share/xtide/harmonics";
|
||||
! hfile_path = "%%PREFIX%%/share/xtide/harmonics";
|
||||
harmonicsPath = new HarmonicsPath (hfile_path);
|
||||
|
||||
homedir = getenv ("HOME");
|
||||
|
Loading…
Reference in New Issue
Block a user