blob: a59a0e029b26dabdf07967dde776daec4c6969af (
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
55
56
57
58
59
60
|
# New ports collection makefile for: objprelink
# Date Created: 18th November 2001
# Whom: Dominic Marks <dominic_marks@btinternet.com>
#
# $FreeBSD$
#
PORTNAME= objprelink
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= devel kde
MASTER_SITES= http://leon.bottou.com/objprelink/ \
${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR= binutils/releases
DISTFILES= objprelink.c.gz binutils-${BINUTILS_VER}.tar.bz2
MAINTAINER= dominic_marks@btinternet.com
LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
ONLY_FOR_ARCHS= i386
BINUTILS_VER= 2.11.2
USE_BZIP2= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/objprelink
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && ${TAR} xfy ${DISTDIR}/binutils-${BINUTILS_VER}.tar.bz2
@${MV} ${WRKSRC}/binutils-${BINUTILS_VER} ${WRKSRC}/binutils
@cd ${WRKSRC} && ${GZIP_CMD} -dc ${DISTDIR}/objprelink.c.gz \
> ${WRKSRC}/objprelink.c
do-configure:
@cd ${WRKSRC}/binutils/bfd/ && \
${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \
CFLAGS="$$CFLAGS -I${LOCALBASE}/include" \
CPPFLAGS="$$CPPFLAGS -I${LOCALBASE}/include" ./configure \
--disable-shared --enable-static
@cd ${WRKSRC}/binutils/libiberty/ && \
${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \
CFLAGS="$$CFLAGS -I./../include" \
CPPFLAGS="$$CPPFLAGS -I./../include" ./configure \
--disable-shared --enable-static
do-build:
.for DIR in bfd libiberty
@cd ${WRKSRC}/binutils/${DIR}/ && ${GMAKE}
.endfor
@${CC} ${CFLAGS} -static -o ${WRKSRC}/objprelink ${WRKSRC}/objprelink.c \
${WRKSRC}/binutils/bfd/libbfd.a \
${WRKSRC}/binutils/libiberty/libiberty.a \
-I${WRKSRC}/binutils/include -I${WRKSRC}/binutils/bfd \
-I${WRKSRC}/binutils/libiberty \
-L${LOCALBASE}/lib -lintl -liconv
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/objprelink ${PREFIX}/bin
.include <bsd.port.mk>
|