freewrt_1_0
freewrt_2_0
|
Last change
on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago |
- whitespace cleanup, while here
- move WRKDIR and DISTFILES definition into PKG_template
- define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
- use a sub-directory as WRKDIR, like BSD
- rename PKG_BUILD_DIR into WRKBUILD
- define WRKBUILD relative via WRKDIR
- rename PKG_INSTALL_DIR into WRKINST
- fix a few dependencies
- make use of common cases in the definition of WRKBUILD and
WRKINST, removing many redundant lines
- use WRKDIR instead of BUILD_DIR in places where the latter
was used previously
- while here, remove PKG_CAT stuff
this only affects packages, for now
git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | # $FreeWRT$
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME= mksh
|
|---|
| 6 | PKG_VERSION= 27.4
|
|---|
| 7 | PKG_RELEASE= 4
|
|---|
| 8 | PKG_SOURCE= ${PKG_NAME}-R27e.cpio.gz
|
|---|
| 9 | PKG_MD5SUM= 2eeb5c5fab32cc7a20ca3c7c2c6fda46
|
|---|
| 10 |
|
|---|
| 11 | PKG_SOURCE_URL= http://mirbsd.mirsolutions.de/MirOS/dist/mir/mksh/ \
|
|---|
| 12 | http://miros.unixforge.de/MirOS/dist/mir/mksh/
|
|---|
| 13 | WRKBUILD= ${WRKDIR}/$(PKG_NAME)
|
|---|
| 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | @touch $@
|
|---|
| 21 |
|
|---|
| 22 | CPPFLAGS_TO_PASS:= -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include \
|
|---|
| 23 | -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE \
|
|---|
| 24 | -D_FILE_OFFSET_BITS=64 -DNEED_COMPAT
|
|---|
| 25 |
|
|---|
| 26 | $(WRKBUILD)/.built:
|
|---|
| 27 | (cd ${WRKBUILD}; \
|
|---|
| 28 | CC='${TARGET_CC}' \
|
|---|
| 29 | CFLAGS='${TARGET_CFLAGS}' \
|
|---|
| 30 | CPPFLAGS='${CPPFLAGS_TO_PASS}' \
|
|---|
| 31 | LDFLAGS='-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib' \
|
|---|
| 32 | SRCS='compat.c' \
|
|---|
| 33 | sh Build.sh -d -r -q -x)
|
|---|
| 34 | rm -rf $(WRKINST)
|
|---|
| 35 | mkdir -p $(WRKINST)/bin
|
|---|
| 36 | install -c -m 755 ${WRKBUILD}/mksh ${WRKINST}/bin/mksh
|
|---|
| 37 | @touch $@
|
|---|
| 38 |
|
|---|
| 39 | $(IPKG_MKSH):
|
|---|
| 40 | install -d -m 0755 $(IDIR_MKSH)/bin
|
|---|
| 41 | $(CP) $(WRKINST)/bin/mksh $(IDIR_MKSH)/bin/
|
|---|
| 42 | $(RSTRIP) $(IDIR_MKSH)
|
|---|
| 43 | $(IPKG_BUILD) $(IDIR_MKSH) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.