blob: 88cdd6174eef4f3f41b79b8830d05dd60994e116 (
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
|
# 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= 1
CATEGORIES= devel kde
MASTER_SITES= http://www.research.att.com/~leonb/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.1:${PORTSDIR}/devel/gettext
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:
.for DIR in bfd libiberty
cd ${WRKSRC}/binutils/${DIR}/ && \
${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \
CFLAGS="$$CFLAGS -I${LOCALBASE}/include" \
CPPFLAGS="$$CPPFLAGS -I${LOCALBASE}/include" ./configure \
--disable-shared --enable-static
.endfor
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objprelink ${PREFIX}/bin
.include <bsd.port.mk>
|