diff --git a/devel/avr-gcc-3/Makefile b/devel/avr-gcc-3/Makefile index 121e41108afc..2f63c3c53b0d 100644 --- a/devel/avr-gcc-3/Makefile +++ b/devel/avr-gcc-3/Makefile @@ -13,13 +13,16 @@ CATEGORIES= devel #MASTER_SITES= ftp://gcc.gnu.org/pub/gcc/snapshots/${PORTVERSION}/ MASTER_SITES= http://people.freebsd.org/~joerg/ PKGNAMEPREFIX= avr- -DISTFILES= gcc-core+g++-${PORTVERSION}${EXTRACT_SUFX} +DISTFILES= gcc-core+g++-${PORTVERSION}${EXTRACT_SUFX} \ + ${MAN_AUX} +EXTRACT_ONLY= gcc-core+g++-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= joerg@freebsd.org BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \ avr-ld:${PORTSDIR}/devel/avr-binutils \ - autoheader:${PORTSDIR}/devel/autoconf + autoheader:${PORTSDIR}/devel/autoconf \ + perl:${PORTSDIR}/lang/perl5 RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \ avr-ld:${PORTSDIR}/devel/avr-binutils @@ -34,9 +37,21 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --target=avr +MAN_AUX= gcc-man.2002.09.01.gz + MAKE_FLAGS= LANGUAGES="c c++" MAN1= cpp.1 avr-gcc.1 avr-g++.1 gcov.1 MAN7= fsf-funding.7 gfdl.7 gpl.7 +# Since the pod2man in FreeBSD 4-stable's /usr/bin cannot be used, we +# help out by extracting precompiled manpages there. +pre-build: + if perl -e 'use 1.10 Pod::Man' >/dev/null 2>/dev/null ; \ + then : ; \ + else \ + cd ${WRKDIR}/gcc-${PORTVERSION} ; \ + ${TAR} -xvzf ${DISTDIR}/${MAN_AUX} ; \ + fi + .include diff --git a/devel/avr-gcc-3/distinfo b/devel/avr-gcc-3/distinfo index b657aec104bd..d7c10e6f6ed8 100644 --- a/devel/avr-gcc-3/distinfo +++ b/devel/avr-gcc-3/distinfo @@ -1 +1,2 @@ MD5 (gcc-core+g++-3.3.2002.09.01.tar.bz2) = 6424c3b48736fc0c126374bc44cbbe57 +MD5 (gcc-man.2002.09.01.gz) = 6712fd9a90730fda4d4ae483037731e0 diff --git a/devel/avr-gcc/Makefile b/devel/avr-gcc/Makefile index 121e41108afc..2f63c3c53b0d 100644 --- a/devel/avr-gcc/Makefile +++ b/devel/avr-gcc/Makefile @@ -13,13 +13,16 @@ CATEGORIES= devel #MASTER_SITES= ftp://gcc.gnu.org/pub/gcc/snapshots/${PORTVERSION}/ MASTER_SITES= http://people.freebsd.org/~joerg/ PKGNAMEPREFIX= avr- -DISTFILES= gcc-core+g++-${PORTVERSION}${EXTRACT_SUFX} +DISTFILES= gcc-core+g++-${PORTVERSION}${EXTRACT_SUFX} \ + ${MAN_AUX} +EXTRACT_ONLY= gcc-core+g++-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= joerg@freebsd.org BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \ avr-ld:${PORTSDIR}/devel/avr-binutils \ - autoheader:${PORTSDIR}/devel/autoconf + autoheader:${PORTSDIR}/devel/autoconf \ + perl:${PORTSDIR}/lang/perl5 RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \ avr-ld:${PORTSDIR}/devel/avr-binutils @@ -34,9 +37,21 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --target=avr +MAN_AUX= gcc-man.2002.09.01.gz + MAKE_FLAGS= LANGUAGES="c c++" MAN1= cpp.1 avr-gcc.1 avr-g++.1 gcov.1 MAN7= fsf-funding.7 gfdl.7 gpl.7 +# Since the pod2man in FreeBSD 4-stable's /usr/bin cannot be used, we +# help out by extracting precompiled manpages there. +pre-build: + if perl -e 'use 1.10 Pod::Man' >/dev/null 2>/dev/null ; \ + then : ; \ + else \ + cd ${WRKDIR}/gcc-${PORTVERSION} ; \ + ${TAR} -xvzf ${DISTDIR}/${MAN_AUX} ; \ + fi + .include diff --git a/devel/avr-gcc/distinfo b/devel/avr-gcc/distinfo index b657aec104bd..d7c10e6f6ed8 100644 --- a/devel/avr-gcc/distinfo +++ b/devel/avr-gcc/distinfo @@ -1 +1,2 @@ MD5 (gcc-core+g++-3.3.2002.09.01.tar.bz2) = 6424c3b48736fc0c126374bc44cbbe57 +MD5 (gcc-man.2002.09.01.gz) = 6712fd9a90730fda4d4ae483037731e0