freewrt_1_0
freewrt_2_0
|
Last change
on this file since ed2dd9f was ed2dd9f, checked in by Thorsten Glaser <tg@…>, 19 years ago |
|
instead of setting WRKBUILD, set WRKSRC and let WRKBUILD?=WRKSRC like mirports
(WRKSRC isn't used anywhere though)
git-svn-id: svn://www.freewrt.org/trunk/freewrt@306 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=uClibc++
|
|---|
| 6 | PKG_VERSION:=0.1.11
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=8a8e0ee8fefef150c08a649fd7da04aa
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=http://cxx.uclibc.org/src/
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
|
|---|
| 12 |
|
|---|
| 13 | WRKSRC:=${WRKDIR}/$(PKG_NAME)
|
|---|
| 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,UCLIBCXX,uclibc++,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
|
|---|
| 20 | -e 's/i.86/i386/' \
|
|---|
| 21 | -e 's/sparc.*/sparc/' \
|
|---|
| 22 | -e 's/arm.*/arm/g' \
|
|---|
| 23 | -e 's/m68k.*/m68k/' \
|
|---|
| 24 | -e 's/ppc/powerpc/g' \
|
|---|
| 25 | -e 's/v850.*/v850/g' \
|
|---|
| 26 | -e 's/sh64/sh/' \
|
|---|
| 27 | -e 's/sh[234].*/sh/' \
|
|---|
| 28 | -e 's/mips.*/mips/' \
|
|---|
| 29 | -e 's/mipsel.*/mips/' \
|
|---|
| 30 | -e 's/cris.*/cris/' \
|
|---|
| 31 | )
|
|---|
| 32 |
|
|---|
| 33 | $(WRKBUILD)/.configured:
|
|---|
| 34 | $(CP) ./files/config.$(UCLIBC_TARGET_ARCH) $(WRKBUILD)/.config
|
|---|
| 35 | touch $@
|
|---|
| 36 |
|
|---|
| 37 | $(WRKBUILD)/.built:
|
|---|
| 38 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 39 | TOPDIR="$(WRKBUILD)/" \
|
|---|
| 40 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 41 | ARCH_CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 42 | CROSS="$(TARGET_CROSS)" \
|
|---|
| 43 | all
|
|---|
| 44 | touch $@
|
|---|
| 45 |
|
|---|
| 46 | $(IPKG_UCLIBCXX):
|
|---|
| 47 | install -d -m0755 $(IDIR_UCLIBCXX)/usr/lib
|
|---|
| 48 | $(CP) $(WRKBUILD)/src/libuClibc++*.so* $(IDIR_UCLIBCXX)/usr/lib/
|
|---|
| 49 | $(STRIP) $(IDIR_UCLIBCXX)/usr/lib/*.so*
|
|---|
| 50 | mkdir -p $(PACKAGE_DIR)
|
|---|
| 51 | $(IPKG_BUILD) $(IDIR_UCLIBCXX) $(PACKAGE_DIR)
|
|---|
| 52 |
|
|---|
| 53 | compile-targets: install-dev
|
|---|
| 54 | install-dev: $(WRKBUILD)/.built
|
|---|
| 55 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 56 | TOPDIR="$(WRKBUILD)/" \
|
|---|
| 57 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 58 | ARCH_CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 59 | CROSS="$(TARGET_CROSS)" \
|
|---|
| 60 | DESTDIR="$(STAGING_DIR)" \
|
|---|
| 61 | install
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.