aboutsummaryrefslogtreecommitdiff
path: root/devel/libtool-fixed/Makefile
blob: 02f034f31b23dec19633b9c8ce2d4f36331f12d1 (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
# New ports collection makefile for:	libtool
# Date created:		6 May 1998
# Whom:			Motoyuki Kasahara <m-kasahr@sra.co.jp>
#
# $FreeBSD$
#

PORTNAME=	libtool
PORTVERSION=	2.4
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	libtool
PKGNAMESUFFIX=	-fixed

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Generic shared library support script -- the fixed version

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

CONFLICTS=	libtool-[0-9]*

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-ltdl-install
CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"
INFO=		libtool
.if ${PORTNAME} != "libltdl"
MAN1=		libtool.1 libtoolize.1
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|sed gsed|sed|g' \
		-e 's|CC=cc|CC=${CC}|g' \
		${WRKSRC}/configure ${WRKSRC}/libltdl/configure
	@${REINPLACE_CMD} -e 's|freebsd1\*)|freebsd1.\*)|g' \
		-e 's|freebsd\[12\]\*)|freebsd[12].*)|g' \
		-e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \
		${WRKSRC}/configure ${WRKSRC}/libltdl/configure
	@${REINPLACE_CMD} -e 's|freebsd1\*)|freebsd1.\*)|g' \
		-e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \
		-e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \
		${WRKSRC}/libltdl/m4/libtool.m4

post-configure:
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f

.include <bsd.port.mk>