freebsd-ports/devel/aros-sdk/Makefile
Martin Wilke 4de9f43665 - Update maintainer mail adress
PR:		112538
Submitted by:	Jona Joachim<walkingshadow@grummel.net> (maintainer)
2007-05-25 07:46:55 +00:00

92 lines
4.1 KiB
Makefile

# New ports collection makefile for: aros-sdk
# Date created: 11 Jan 2007
# Whom: Jona Joachim <walkingshadow@grummel.net>
#
# $FreeBSD$
#
PORTNAME= aros-sdk
PORTVERSION= 0.20060207
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aros
DISTNAME= AROS-20060207-i386-all-sdk
MAINTAINER= jaj@hcl-club.lu
COMMENT= The Software development kit (SDK) for the AROS Operating System
USE_BZIP2= yes
USE_GMAKE= yes
.include <bsd.port.pre.mk>
LD!= ${CC} -print-prog-name=ld
NM!= ${CC} -print-prog-name=nm
AS!= ${CC} -print-prog-name=as
AR!= ${CC} -print-prog-name=ar
OBJCOPY!= ${CC} -print-prog-name=objcopy
OBJDUMP!= ${CC} -print-prog-name=objdump
RANLIB!= ${CC} -print-prog-name=ranlib
STRIP!= ${CC} -print-prog-name=strip
LD_EMU= elf_i386_fbsd
AROS_SDK_PATH= ${PREFIX}/aros-sdk
CC_INCLUDE= /usr/include
CC_PROGRAMS_PATH!=${CC} -print-search-dirs | ${GREP} "programs: =" | cut -c 12-
CC_DIR!=dirname `which ${CC}`
.if ${CC_DIR} == "/usr/bin"
CC_INCLUDE= /usr/include
.else
CCROOT!= ${DIRNAME} `${CC} -print-libgcc-file-name`
CC_INCLUDE:= ${CCROOT}/include
.endif
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS_REASON= should work with a cross compiler, needs testing
SUB_FILES= pkg-message
SUB_LIST= AROS_SDK_PATH=${AROS_SDK_PATH}
do-build:
@${REINPLACE_CMD} -e 's|@aros_sdk_path@|${AROS_SDK_PATH}|g; s|@ld_emu@|${LD_EMU}|g; s|@cc_include@|${CC_INCLUDE}|g; s|@cc_cpu@|${ARCH}|g' ${WRKSRC}/scripts/specs.in
@${REINPLACE_CMD} -e 's|@aros_sdk_path@|${AROS_SDK_PATH}|g; s|@ld@|${LD}|g; s|@nm@|${NM}|g; s|@cc@|${CC}|g; s|@objdump@|${OBJDUMP}|g; s|@cc_cpu@|${ARCH}|g; s|@strip@|${STRIP}|g' ${WRKSRC}/scripts/aros-gcc.in
@${REINPLACE_CMD} -e 's|@aros_sdk_path@|${AROS_SDK_PATH}|g; s|@ld@|${LD}|g; s|@nm@|${NM}|g; s|@cc@|${CC}|g; s|@objdump@|${OBJDUMP}|g; s|@cc_cpu@|${ARCH}|g; s|@cc_programs_path@|${CC_PROGRAMS_PATH}|g' ${WRKSRC}/scripts/aros-ld.in
@${REINPLACE_CMD} -e 's|@strip@|${STRIP}|g' ${WRKSRC}/scripts/aros-strip.in
@cd ${WRKSRC}/tools/collect-aros; ${GMAKE}
do-install:
@${MKDIR} ${AROS_SDK_PATH}
@${MKDIR} ${AROS_SDK_PATH}/bin
@${MKDIR} ${AROS_SDK_PATH}/${ARCH}-aros/bin
@${MKDIR} ${AROS_SDK_PATH}/${ARCH}-aros/include
@${MKDIR} ${AROS_SDK_PATH}/${ARCH}-aros/lib/gcc-lib
@${CP} ${WRKSRC}/tools/collect-aros/collect-aros ${AROS_SDK_PATH}/${ARCH}-aros/lib/gcc-lib/
@${CP} ${WRKSRC}/scripts/specs.in ${AROS_SDK_PATH}/${ARCH}-aros/lib/gcc-lib/specs
@${CP} ${WRKSRC}/scripts/aros-gcc.in ${AROS_SDK_PATH}/${ARCH}-aros/bin/gcc
@${CHMOD} a+x ${AROS_SDK_PATH}/${ARCH}-aros/bin/gcc
@${CP} ${WRKSRC}/scripts/aros-ld.in ${AROS_SDK_PATH}/${ARCH}-aros/bin/ld
@${CHMOD} a+x ${AROS_SDK_PATH}/${ARCH}-aros/bin/ld
@${CP} ${WRKSRC}/scripts/aros-strip.in ${AROS_SDK_PATH}/${ARCH}-aros/bin/strip
@${CHMOD} a+x ${AROS_SDK_PATH}/${ARCH}-aros/bin/strip
@${LN} -sf ${AS} ${AROS_SDK_PATH}/${ARCH}-aros/bin/as
@${LN} -sf ${AR} ${AROS_SDK_PATH}/${ARCH}-aros/bin/ar
@${LN} -sf ${NM} ${AROS_SDK_PATH}/${ARCH}-aros/bin/nm
@${LN} -sf ${OBJCOPY} ${AROS_SDK_PATH}/${ARCH}-aros/bin/objcopy
@${LN} -sf ${OBJDUMP} ${AROS_SDK_PATH}/${ARCH}-aros/bin/objdump
@${LN} -sf ${RANLIB} ${AROS_SDK_PATH}/${ARCH}-aros/bin/ranlib
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/gcc ${AROS_SDK_PATH}/bin/${ARCH}-aros-gcc
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/ld ${AROS_SDK_PATH}/bin/${ARCH}-aros-ld
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/ar ${AROS_SDK_PATH}/bin/${ARCH}-aros-ar
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/as ${AROS_SDK_PATH}/bin/${ARCH}-aros-as
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/nm ${AROS_SDK_PATH}/bin/${ARCH}-aros-nm
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/objcopy ${AROS_SDK_PATH}/bin/${ARCH}-aros-objcopy
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/objdump ${AROS_SDK_PATH}/bin/${ARCH}-aros-objdump
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/ranlib ${AROS_SDK_PATH}/bin/${ARCH}-aros-ranlib
@${LN} -sf ${AROS_SDK_PATH}/${ARCH}-aros/bin/strip ${AROS_SDK_PATH}/bin/${ARCH}-aros-strip
@${CP} -pR ${WRKSRC}/${ARCH}/lib/* ${AROS_SDK_PATH}/${ARCH}-aros/lib/
@${CP} -pR ${WRKSRC}/${ARCH}/include/* ${AROS_SDK_PATH}/${ARCH}-aros/include/
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>