aboutsummaryrefslogtreecommitdiffstats
path: root/devel/automake15/Makefile
blob: 48119a0a5bec4b1e5df81a6b0e92e007c7af21ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    automake
# Date created:     15 March 1997
# Whom:         FUJIMOTO Kensaku <fujimoto@oscar.elec.waseda.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   automake
PORTVERSION=    1.5
PORTREVISION=   2
PORTEPOCH=  1
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= automake

MAINTAINER= ade@FreeBSD.org
COMMENT=    GNU Standards-compliant Makefile generator (1.5)

RUN_DEPENDS=    ${AUTOCONF_DEPENDS}

WANT_AUTOCONF_VER=253
BUILD_VERSION=  15
PLIST_SUB=  BUILD_VERSION=${BUILD_VERSION}
LATEST_LINK=    automake${BUILD_VERSION}
USE_PERL5=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  AUTOCONF=autoconf253 AUTOHEADER=autoheader253 MAKEINFO=makeinfo
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION}
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE=  yes

post-patch:
    @(cd ${WRKSRC} && \
        ${RM} -f *.info && \
        ${MV} automake.texi automake${BUILD_VERSION}.texi && \
        ${REINPLACE_CMD} -E 's,(automake)\.(info),\1${BUILD_VERSION}\.\2,g' automake${BUILD_VERSION}.texi && \
        ${REINPLACE_CMD} -E 's,(automake)\.(info|texi),\1${BUILD_VERSION}\.\2,g' Makefile.in  && \
        ${REINPLACE_CMD} -e 's,%%BUILD_VERSION%%,${BUILD_VERSION},g; \
                     s,%%X11BASE%%,${X11BASE},g' aclocal.in \
    )

pre-su-install:
    @${RM} -fr ${PREFIX}/share/automake${BUILD_VERSION}
    @${MKDIR} ${PREFIX}/share/automake${BUILD_VERSION}
    @${MKDIR} ${PREFIX}/share/aclocal${BUILD_VERSION}
    @${MKDIR} ${PREFIX}/libexec/automake${BUILD_VERSION}

post-install:
.for i in aclocal automake
    @${LN} -sf ${PREFIX}/bin/${i}${BUILD_VERSION} \
        ${PREFIX}/libexec/automake${BUILD_VERSION}/${i}
.endfor

.include <bsd.port.mk>