diff options
author | dinoex <dinoex@FreeBSD.org> | 2002-12-14 20:20:02 +0000 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2002-12-14 20:20:02 +0000 |
commit | c04a4b8f476b06e825f8685ccdbf957add8c6162 (patch) | |
tree | 851e143e8f5d0db183bce91d00eab2f4b0fb6407 /net-p2p | |
parent | 50ad4a799f186cb8c44c16fcf0aeef1f769f4e1d (diff) | |
download | FreeBSD-ports-c04a4b8f476b06e825f8685ccdbf957add8c6162.zip FreeBSD-ports-c04a4b8f476b06e825f8685ccdbf957add8c6162.tar.gz |
This diff will enable the jigdo port to compile on a FreeBSD system, which
is newer than 500041. (getopt change)
There is a new file, extra-glibc-getopt.h in the diff.
PR: 46212
Submitted by: bra@fsn.hu
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/jigdo/Makefile | 8 | ||||
-rw-r--r-- | net-p2p/jigdo/files/extra-glibc-getopt.h | 23 |
2 files changed, 30 insertions, 1 deletions
diff --git a/net-p2p/jigdo/Makefile b/net-p2p/jigdo/Makefile index 36bd069..48d2f49 100644 --- a/net-p2p/jigdo/Makefile +++ b/net-p2p/jigdo/Makefile @@ -38,10 +38,16 @@ pre-fetch: #post-patch: # @${REINPLACE_CMD} -e "s/gtk-config/${GTK_CONFIG}/g" ${WRKSRC}/configure +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500041 +EXTRA_PATCHES= ${FILESDIR}/extra-glibc-getopt.h +.endif + post-install: @${STRIP_CMD} ${PREFIX}/bin/jigdo-file post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/net-p2p/jigdo/files/extra-glibc-getopt.h b/net-p2p/jigdo/files/extra-glibc-getopt.h new file mode 100644 index 0000000..300584b --- /dev/null +++ b/net-p2p/jigdo/files/extra-glibc-getopt.h @@ -0,0 +1,23 @@ +--- src/glibc-getopt.h.orig Fri Dec 6 08:24:36 2002 ++++ src/glibc-getopt.h Fri Dec 6 08:29:58 2002 +@@ -37,12 +37,11 @@ + # define ELIDE_CODE + # endif + #endif ++#define ELIDE_CODE + #ifndef ELIDE_CODE + # define opterr my_opterr + # define optind my_optind + # define optopt my_optopt +-#endif +- + + #ifdef __cplusplus + extern "C" { +@@ -186,5 +185,6 @@ + + /* Make sure we later can get all the definitions and declarations. */ + #undef __need_getopt ++#endif /* ELIDE_CODE */ + + #endif /* getopt.h */ |