summaryrefslogtreecommitdiffstats
path: root/devel/objprelink
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-12-07 00:09:33 +0000
committerlioux <lioux@FreeBSD.org>2001-12-07 00:09:33 +0000
commit1fb96c4574b8cfac31ba00d18033b2ccb3f103c5 (patch)
tree57344c6200064afb8ee619825c6cf4bf3c3d25b2 /devel/objprelink
parentdf3872477ecdc39e80799ba8e57680f1e05e29bc (diff)
downloadFreeBSD-ports-1fb96c4574b8cfac31ba00d18033b2ccb3f103c5.zip
FreeBSD-ports-1fb96c4574b8cfac31ba00d18033b2ccb3f103c5.tar.gz
o Fix conflict in build time if freelibiberty is already installed
o Un"echo" commands PR: 32550 Submitted by: Alan E <alane@geeksrus.net> (PR), maintainer (fix)
Diffstat (limited to 'devel/objprelink')
-rw-r--r--devel/objprelink/Makefile23
1 files changed, 13 insertions, 10 deletions
diff --git a/devel/objprelink/Makefile b/devel/objprelink/Makefile
index 88cdd61..56f4362 100644
--- a/devel/objprelink/Makefile
+++ b/devel/objprelink/Makefile
@@ -24,26 +24,29 @@ 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 \
+ @${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}/ && \
+ @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
-.endfor
+ @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}
+ @cd ${WRKSRC}/binutils/${DIR}/ && ${GMAKE}
.endfor
- ${CC} ${CFLAGS} -static -o ${WRKSRC}/objprelink ${WRKSRC}/objprelink.c \
+ @${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 \
@@ -51,6 +54,6 @@ do-build:
-L${LOCALBASE}/lib -lintl
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/objprelink ${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/objprelink ${PREFIX}/bin
.include <bsd.port.mk>
OpenPOWER on IntegriCloud