diff options
author | marcel <marcel@FreeBSD.org> | 2005-12-31 09:30:29 +0800 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2005-12-31 09:30:29 +0800 |
commit | fdec5b995bbd6cd0f67617486849a01aafcdd51d (patch) | |
tree | e27b6741e57d75275fa14d8e1036f87017ca604c /devel/libelf | |
parent | d3aea2a255e414eecaf9382f5855d6ad13b26320 (diff) | |
download | freebsd-ports-gnome-fdec5b995bbd6cd0f67617486849a01aafcdd51d.tar.gz freebsd-ports-gnome-fdec5b995bbd6cd0f67617486849a01aafcdd51d.tar.zst freebsd-ports-gnome-fdec5b995bbd6cd0f67617486849a01aafcdd51d.zip |
Do not replace Elf64_Xword and Elf64_Sxword on FreeBSD versions 600102
or higher. We have the standard ELF types since then...
Diffstat (limited to 'devel/libelf')
-rw-r--r-- | devel/libelf/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/libelf/Makefile b/devel/libelf/Makefile index 22a08a04bb8e..98b61cd32a34 100644 --- a/devel/libelf/Makefile +++ b/devel/libelf/Makefile @@ -25,6 +25,10 @@ USE_GETTEXT= yes NOMAN= defined +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 600102 + USE_REINPLACE= yes FILES_TO_PATCH=lib/32.fsize.c lib/64.xlatetof.c lib/cook.c lib/gelf.h lib/gelftrans.c @@ -35,4 +39,6 @@ post-patch: -e 's/Elf64_Sxword/Elf64_Sword/g' \ ${FILES_TO_PATCH:S,^,${WRKSRC}/,} -.include <bsd.port.mk> +.endif + +.include <bsd.port.post.mk> |