mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
f18cbf2fa6
- switch devel/gettext (0.11.1) on, installing full package - flip devel/gettext-old (0.10.35) to installing only static binaries with a "-old" suffix -- gettext-old will have its deorbit burn sequence initiated just after 4.6-RELEASE - fix up ports for the new world order Reviewed by: portmgr
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
# 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>
|