2007-01-28 22:45:37 +01:00
|
|
|
# New ports collection makefile for: djgpp-binutils
|
|
|
|
# Date created: 27 Jan 2007
|
|
|
|
# Whom: Peter Johnson <johnson.peter@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= binutils
|
2011-09-01 14:33:42 +02:00
|
|
|
PORTVERSION= ${BINUTILVERSION}
|
2007-01-28 22:45:37 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
|
|
|
|
MASTER_SITE_SUBDIR= binutils/releases
|
|
|
|
PKGNAMEPREFIX= djgpp-
|
2011-09-01 14:33:42 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${BINUTILVERSION}
|
2007-01-28 22:45:37 +01:00
|
|
|
|
|
|
|
MAINTAINER= johnson.peter@gmail.com
|
2011-09-02 08:48:08 +02:00
|
|
|
COMMENT= FSF binutils for DJGPP cross-development
|
2007-01-28 22:45:37 +01:00
|
|
|
|
2011-09-01 14:33:42 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
BINUTILVERSION= 2.17
|
2007-01-28 22:45:37 +01:00
|
|
|
|
|
|
|
TARGET= i586-pc-msdosdjgpp
|
|
|
|
|
|
|
|
PATCH_WRKSRC= ${SRCDIR}
|
|
|
|
CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure
|
|
|
|
|
2011-09-01 14:33:42 +02:00
|
|
|
USE_BZIP2= yes
|
2007-01-28 22:45:37 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2011-09-01 14:33:42 +02:00
|
|
|
SRCDIR= ${WRKDIR}/binutils-${BINUTILVERSION}
|
2007-01-28 22:45:37 +01:00
|
|
|
WRKSRC= ${WRKDIR}/build
|
|
|
|
CONFIGURE_ARGS= --target=${TARGET} \
|
|
|
|
--with-gcc --with-gnu-ld --with-gnu-as \
|
2007-07-23 11:36:51 +02:00
|
|
|
--disable-nls --disable-shared
|
|
|
|
INFO_PATH= ${TARGET}/info
|
2007-01-28 22:45:37 +01:00
|
|
|
|
|
|
|
MAN1= ${TARGET}-addr2line.1 ${TARGET}-ar.1 \
|
|
|
|
${TARGET}-as.1 ${TARGET}-dlltool.1 \
|
|
|
|
${TARGET}-c++filt.1 ${TARGET}-ld.1 \
|
|
|
|
${TARGET}-nlmconv.1 ${TARGET}-nm.1 \
|
|
|
|
${TARGET}-objcopy.1 ${TARGET}-objdump.1 \
|
|
|
|
${TARGET}-ranlib.1 ${TARGET}-readelf.1 \
|
|
|
|
${TARGET}-size.1 ${TARGET}-strings.1 \
|
|
|
|
${TARGET}-strip.1 ${TARGET}-windres.1
|
|
|
|
|
|
|
|
INFO= as bfd binutils ld configure standards
|
|
|
|
INFO_PATH= ${TARGET}/info
|
|
|
|
|
|
|
|
BINARIES= addr2line ar as c++filt ld nm objcopy objdump ranlib \
|
|
|
|
readelf size strings strip
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${MKDIR} ${CONFIGURE_WRKSRC}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for F in ${BINARIES}
|
|
|
|
@${LN} -f ${PREFIX}/bin/${TARGET}-$F ${PREFIX}/${TARGET}/bin/$F
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
#
|
|
|
|
# UGLY HACK
|
|
|
|
#
|
|
|
|
add-plist-post:
|
|
|
|
@${ECHO_CMD} "@unexec rmdir -p %D/${TARGET}/info 2> /dev/null || true" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir -p %D/${TARGET} 2> /dev/null || true" >> ${TMPPLIST}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
.if (defined(PREFIX) && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr")
|
2007-01-28 22:45:37 +01:00
|
|
|
@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST}
|
|
|
|
.else
|
|
|
|
@${DO_NADA}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|