new build design

This commit is contained in:
Mario Fetka
2011-12-21 21:52:54 +01:00
parent f37c5ef55a
commit 309fa5d5a8
2 changed files with 7 additions and 15 deletions

View File

@@ -35,26 +35,18 @@ src_prepare() {
EPATCH_FORCE="yes" EPATCH_EXCLUDE="makefile.patch" epatch
#epatch "${FILESDIR}/strEventScript-size.patch"
ln -sf micro-evtd.mak Makefile
pushd src
ln -sf micro-evtd.c micro-evtd.pro.c
ln -sf micro-evtd.c micro-evtd.tera.c
popd
pushd files
ln -sf micro-evtd.event micro-evtd.pro.event
ln -sf micro-evtd.event micro-evtd.tera.event
ln -sf micro-evtd.init micro-evtd.pro.init
ln -sf micro-evtd.init micro-evtd.tera.init
popd
}
src_compile() {
emake SBIN_PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" PROGNAME="micro-evtd.pro" all || die "emake failed"
emake SBIN_PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" PROGNAME="micro-evtd.tera" ts || die "emake failed"
emake SBIN_PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" all || die "emake failed"
emake SBIN_PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" ts || die "emake failed"
}
src_install() {
emake SBIN_PREFIX=/usr DESTDIR="${D}" PROGNAME="micro-evtd.pro" install || die "install failed"
emake SBIN_PREFIX=/usr DESTDIR="${D}" PROGNAME="micro-evtd.tera" install || die "install failed"
emake SBIN_PREFIX=/usr DESTDIR="${D}" install || die "install failed"
mv ${D}/usr/sbin/micro-evtd ${D}/usr/sbin/micro-evtd.pro
emake SBIN_PREFIX=/usr DESTDIR="${D}" install.ts || die "install failed"
mv ${D}/usr/sbin/micro-evtd ${D}/usr/sbin/micro-evtd.tera
# doman debian/microapl.8
# doman debian/micro_evtd.8