diff options
author | alex <alex@FreeBSD.org> | 2000-06-26 13:53:05 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 2000-06-26 13:53:05 +0000 |
commit | 395e48f140cff7925b1d6790202098045cf506ea (patch) | |
tree | 2eb6b0a237b3b8a4311936e2ef35175c6659604a /astro/xtide | |
parent | af595457ff6672210cc86814dbdd8eee71881956 (diff) | |
download | FreeBSD-ports-395e48f140cff7925b1d6790202098045cf506ea.zip FreeBSD-ports-395e48f140cff7925b1d6790202098045cf506ea.tar.gz |
Avoid hardcoding /usr/X11R6/
PR: 19478
Submitted by: maintainer
Diffstat (limited to 'astro/xtide')
-rw-r--r-- | astro/xtide/Makefile | 5 | ||||
-rw-r--r-- | astro/xtide/files/patch-aa | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/astro/xtide/Makefile b/astro/xtide/Makefile index a7324d2..021cf76 100644 --- a/astro/xtide/Makefile +++ b/astro/xtide/Makefile @@ -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 diff --git a/astro/xtide/files/patch-aa b/astro/xtide/files/patch-aa index 30ba0ac..ff2730e 100644 --- a/astro/xtide/files/patch-aa +++ b/astro/xtide/files/patch-aa @@ -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"); |