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.4 KB
|
| Line | |
|---|
| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=clinkc
|
|---|
| 6 | PKG_VERSION:=101
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=4c8ac54a15da47203a86daf77fbc2664
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=@SF/clinkc/
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
|
|---|
| 12 |
|
|---|
| 13 | WRKSRC:=${WRKDIR}/CyberLinkC
|
|---|
| 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,CLINKC,clinkc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 21 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 22 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 23 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 24 | LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|---|
| 25 | ./configure \
|
|---|
| 26 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --build=$(GNU_HOST_NAME) \
|
|---|
| 29 | --program-prefix="" \
|
|---|
| 30 | --program-suffix="" \
|
|---|
| 31 | --prefix=/usr \
|
|---|
| 32 | --exec-prefix=/usr \
|
|---|
| 33 | --bindir=/usr/bin \
|
|---|
| 34 | --datadir=/usr/share \
|
|---|
| 35 | --includedir=/usr/include \
|
|---|
| 36 | --infodir=/usr/share/info \
|
|---|
| 37 | --libdir=/usr/lib \
|
|---|
| 38 | --libexecdir=/usr/lib \
|
|---|
| 39 | --localstatedir=/var \
|
|---|
| 40 | --mandir=/usr/share/man \
|
|---|
| 41 | --sbindir=/usr/sbin \
|
|---|
| 42 | --sysconfdir=/etc \
|
|---|
| 43 | --with-gnu-ld \
|
|---|
| 44 | );
|
|---|
| 45 | chmod +x $(WRKBUILD)/config/install-sh
|
|---|
| 46 | touch $@
|
|---|
| 47 |
|
|---|
| 48 | $(WRKBUILD)/.built:
|
|---|
| 49 | rm -rf $(WRKINST)
|
|---|
| 50 | mkdir -p $(WRKINST)
|
|---|
| 51 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 52 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 53 | DESTDIR="$(WRKINST)" \
|
|---|
| 54 | all install
|
|---|
| 55 | touch $@
|
|---|
| 56 |
|
|---|
| 57 | $(IPKG_CLINKC):
|
|---|
| 58 | $(CP) $(WRKINST) $(IDIR_CLINKC)
|
|---|
| 59 | $(RSTRIP) $(IDIR_CLINKC)
|
|---|
| 60 | $(IPKG_BUILD) $(IDIR_CLINKC) $(PACKAGE_DIR)
|
|---|
| 61 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.