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
100755
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | # $Id: Makefile 3622 2006-04-12 00:34:26Z nico $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=ctorrent
|
|---|
| 6 | PKG_VERSION:=1.3.4-dnh2
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=6635e2d0d0ee21faeb85d95cd93c137b
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=http://www.rahul.net/dholmes/ctorrent/
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 12 | WRKSRC:=${WRKDIR}/$(PKG_NAME)-dnh2
|
|---|
| 13 |
|
|---|
| 14 | include $(TOPDIR)/package/rules.mk
|
|---|
| 15 |
|
|---|
| 16 | $(eval $(call PKG_template,CTORRENT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 17 |
|
|---|
| 18 | $(WRKBUILD)/.configured:
|
|---|
| 19 | (cd $(WRKBUILD); rm -rf config.cache; \
|
|---|
| 20 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 21 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 22 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
|
|---|
| 23 | LDFLAGS="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 24 | ./configure \
|
|---|
| 25 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 26 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --build=$(GNU_HOST_NAME) \
|
|---|
| 28 | --prefix=/usr \
|
|---|
| 29 | --exec-prefix=/usr \
|
|---|
| 30 | --bindir=/usr/bin \
|
|---|
| 31 | --sbindir=/usr/sbin \
|
|---|
| 32 | --libexecdir=/usr/lib \
|
|---|
| 33 | --sysconfdir=/etc \
|
|---|
| 34 | --datadir=/usr/share \
|
|---|
| 35 | --localstatedir=/var \
|
|---|
| 36 | --mandir=/usr/man \
|
|---|
| 37 | --infodir=/usr/info \
|
|---|
| 38 | --program-prefix="" \
|
|---|
| 39 | --with-gnu-ld \
|
|---|
| 40 | );
|
|---|
| 41 | touch $@
|
|---|
| 42 |
|
|---|
| 43 | $(WRKBUILD)/.built:
|
|---|
| 44 | $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(WRKINST) -C $(WRKBUILD) install
|
|---|
| 45 |
|
|---|
| 46 | $(IPKG_CTORRENT):
|
|---|
| 47 | mkdir -p $(IDIR_CTORRENT)
|
|---|
| 48 | $(CP) $(WRKINST)/* $(IDIR_CTORRENT)/
|
|---|
| 49 | $(RSTRIP) $(IDIR_CTORRENT)/
|
|---|
| 50 | $(IPKG_BUILD) $(IDIR_CTORRENT) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.