diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-06-09 08:44:53 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-06-09 08:44:53 +0000 |
commit | e45b74185d34171292b7b9a2ae6847e41d942f0d (patch) | |
tree | bd17be31179ecbe413c39d7196dc1922c068fa7a /rules | |
parent | a045dfb9ad84cb32f59f32548ebaf7d4376f9cb8 (diff) | |
download | ptxdist-e45b74185d34171292b7b9a2ae6847e41d942f0d.tar.gz ptxdist-e45b74185d34171292b7b9a2ae6847e41d942f0d.tar.xz |
Rework template generation
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10657 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
23 files changed, 554 insertions, 33 deletions
diff --git a/rules/fixme.in b/rules/fixme.in new file mode 100644 index 000000000..617468dec --- /dev/null +++ b/rules/fixme.in @@ -0,0 +1,8 @@ +## SECTION=fixme + +# +# This file does only exist to create a defined entry in the "fixme" +# section, so that the toplevel Kconfig can include generated/fixme.in +# even if no package is in that category. +# + diff --git a/rules/post/install.make b/rules/post/install.make index 50d724fad..eb6a59b32 100644 --- a/rules/post/install.make +++ b/rules/post/install.make @@ -365,6 +365,6 @@ install_finish = \ PTXCONF_IMAGE_IPKG_EXTRA_ARGS="$(PTXCONF_IMAGE_IPKG_EXTRA_ARGS)"; \ ptxd_make_install_finish \ -p '$(strip $(1))' \ - -l $$PACKET_LICENSE + -l "$$PACKET_LICENSE" # vim: syntax=make diff --git a/rules/templates/src-autoconf-lib/@name@.c b/rules/templates/src-autoconf-lib/@name@.c new file mode 100644 index 000000000..f89e37e6f --- /dev/null +++ b/rules/templates/src-autoconf-lib/@name@.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main(void) +{ + printf("hello fish!\n"); + return 0; +} + diff --git a/rules/templates/src-autoconf-lib/Makefile.am b/rules/templates/src-autoconf-lib/Makefile.am new file mode 100644 index 000000000..c6e05a926 --- /dev/null +++ b/rules/templates/src-autoconf-lib/Makefile.am @@ -0,0 +1,25 @@ +lib_LTLIBRARIES = \ + lib@name@.la + +AM_CPPFLAGS = \ + -I$(top_srcdir)/include \ + -I$(top_builddir)/include +# $(some_CFLAGS) + +EXTRA_DIST = \ + autogen.sh + +MAINTAINERCLEANFILES = \ + configure \ + aclocal.m4 \ + Makefile.in + +# +# binary +# +lib@name@_la_SOURCES = \ + @name@.c + +#@name@_LDADD = \ +# $(some_LIBS) + diff --git a/rules/templates/src-autoconf-lib/autogen.sh b/rules/templates/src-autoconf-lib/autogen.sh new file mode 100644 index 000000000..6d1c20a24 --- /dev/null +++ b/rules/templates/src-autoconf-lib/autogen.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# +# usage: +# +# banner <target name> +# +banner() { + echo + TG=`echo $1 | sed -e "s,/.*/,,g"` + LINE=`echo $TG |sed -e "s/./-/g"` + echo $LINE + echo $TG + echo $LINE + echo +} + +banner "autoreconf" + +autoreconf --force --install -Wall || exit $? + +banner "Finished" diff --git a/rules/templates/src-autoconf-lib/configure.ac b/rules/templates/src-autoconf-lib/configure.ac new file mode 100644 index 000000000..091ce7ada --- /dev/null +++ b/rules/templates/src-autoconf-lib/configure.ac @@ -0,0 +1,70 @@ +AC_PREREQ(2.59) + +esyscmd([echo "define(myversion, $(dir=$(basename $(pwd)); if test \"${dir%%-trunk}\" != \"$dir\"; then echo 99999999-9; else prefix=${dir%%-[0-9]*-[0-9]}; echo ${dir##$prefix-}; fi))"]) + +AC_INIT([@name@], myversion, [bugs@pengutronix.de]) +AC_CONFIG_SRCDIR([@name@.c]) +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + +AM_MAINTAINER_MODE + +CFLAGS="${CFLAGS} -W -Wall" + +# +# libtool library versioning stuff +# +# Library code modified: REVISION++ +# Interfaces changed/added/removed: CURRENT++ REVISION=0 +# Interfaces added: AGE++ +# Interfaces removed: AGE=0 +LT_CURRENT=0 +LT_REVISION=0 +LT_AGE=0 +AC_SUBST(LT_CURRENT) +AC_SUBST(LT_REVISION) +AC_SUBST(LT_AGE) + + +# +# Checks for programs. +# +AC_PROG_CC +AC_PROG_LIBTOOL + +AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2]) + + +## +# libsomething +## +#REQUIRES_LIBSOMETHING="libsomething >= 20090402-1" +#AC_SUBST(REQUIRES_LIBSOMETHING) +#PKG_CHECK_MODULES(libsomething, $REQUIRES_LIBSOMETHING) + + +# +# Debugging +# +AC_MSG_CHECKING([whether to enable debugging]) +AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug], [enable debugging @<:@default=yes@:>@]), + [case "$enableval" in + y | yes) CONFIG_DEBUG=yes ;; + *) CONFIG_DEBUG=no ;; + esac], + [CONFIG_DEBUG=yes]) +AC_MSG_RESULT([${CONFIG_DEBUG}]) +if test "${CONFIG_DEBUG}" = "yes"; then + CFLAGS="${CFLAGS} -Werror -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" + AC_DEFINE(DEBUG, 1, [debugging]) +else + CFLAGS="${CFLAGS} -O2" +fi + + +AC_CONFIG_FILES([ + Makefile +]) +AC_OUTPUT + diff --git a/rules/templates/src-autoconf-lib/wizzard.sh b/rules/templates/src-autoconf-lib/wizzard.sh new file mode 100644 index 000000000..22bb922ba --- /dev/null +++ b/rules/templates/src-autoconf-lib/wizzard.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +HERE=$(pwd) + +NAME=$1 +if [ -z "$NAME" ]; then + echo -n "project name: " + read NAME +fi +NAME_UP=$(echo $NAME | tr '[a-z-]' '[A-Z_]') + +mv "@name@.c" "${NAME}.c" + +for i in \ + configure.ac \ + Makefile.am \ + ${NAME}.c \ +; do + sed -i -e "s/\@name\@/${NAME}/g" $i + sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i +done + diff --git a/rules/templates/src-autoconf-prog/@name@.c b/rules/templates/src-autoconf-prog/@name@.c new file mode 100644 index 000000000..f89e37e6f --- /dev/null +++ b/rules/templates/src-autoconf-prog/@name@.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main(void) +{ + printf("hello fish!\n"); + return 0; +} + diff --git a/rules/templates/src-autoconf-prog/Makefile.am b/rules/templates/src-autoconf-prog/Makefile.am new file mode 100644 index 000000000..76c92a192 --- /dev/null +++ b/rules/templates/src-autoconf-prog/Makefile.am @@ -0,0 +1,25 @@ +bin_PROGRAMS = \ + @name@ + +AM_CPPFLAGS = \ + -I$(top_srcdir)/include \ + -I$(top_builddir)/include +# $(some_CFLAGS) + +EXTRA_DIST = \ + autogen.sh + +MAINTAINERCLEANFILES = \ + configure \ + aclocal.m4 \ + Makefile.in + +# +# binary +# +@name@_SOURCES = \ + @name@.c + +#@name@_LDADD = \ +# $(some_LIBS) + diff --git a/rules/templates/src-autoconf-prog/autogen.sh b/rules/templates/src-autoconf-prog/autogen.sh new file mode 100644 index 000000000..6d1c20a24 --- /dev/null +++ b/rules/templates/src-autoconf-prog/autogen.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# +# usage: +# +# banner <target name> +# +banner() { + echo + TG=`echo $1 | sed -e "s,/.*/,,g"` + LINE=`echo $TG |sed -e "s/./-/g"` + echo $LINE + echo $TG + echo $LINE + echo +} + +banner "autoreconf" + +autoreconf --force --install -Wall || exit $? + +banner "Finished" diff --git a/rules/templates/src-autoconf-prog/configure.ac b/rules/templates/src-autoconf-prog/configure.ac new file mode 100644 index 000000000..091ce7ada --- /dev/null +++ b/rules/templates/src-autoconf-prog/configure.ac @@ -0,0 +1,70 @@ +AC_PREREQ(2.59) + +esyscmd([echo "define(myversion, $(dir=$(basename $(pwd)); if test \"${dir%%-trunk}\" != \"$dir\"; then echo 99999999-9; else prefix=${dir%%-[0-9]*-[0-9]}; echo ${dir##$prefix-}; fi))"]) + +AC_INIT([@name@], myversion, [bugs@pengutronix.de]) +AC_CONFIG_SRCDIR([@name@.c]) +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + +AM_MAINTAINER_MODE + +CFLAGS="${CFLAGS} -W -Wall" + +# +# libtool library versioning stuff +# +# Library code modified: REVISION++ +# Interfaces changed/added/removed: CURRENT++ REVISION=0 +# Interfaces added: AGE++ +# Interfaces removed: AGE=0 +LT_CURRENT=0 +LT_REVISION=0 +LT_AGE=0 +AC_SUBST(LT_CURRENT) +AC_SUBST(LT_REVISION) +AC_SUBST(LT_AGE) + + +# +# Checks for programs. +# +AC_PROG_CC +AC_PROG_LIBTOOL + +AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2]) + + +## +# libsomething +## +#REQUIRES_LIBSOMETHING="libsomething >= 20090402-1" +#AC_SUBST(REQUIRES_LIBSOMETHING) +#PKG_CHECK_MODULES(libsomething, $REQUIRES_LIBSOMETHING) + + +# +# Debugging +# +AC_MSG_CHECKING([whether to enable debugging]) +AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug], [enable debugging @<:@default=yes@:>@]), + [case "$enableval" in + y | yes) CONFIG_DEBUG=yes ;; + *) CONFIG_DEBUG=no ;; + esac], + [CONFIG_DEBUG=yes]) +AC_MSG_RESULT([${CONFIG_DEBUG}]) +if test "${CONFIG_DEBUG}" = "yes"; then + CFLAGS="${CFLAGS} -Werror -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" + AC_DEFINE(DEBUG, 1, [debugging]) +else + CFLAGS="${CFLAGS} -O2" +fi + + +AC_CONFIG_FILES([ + Makefile +]) +AC_OUTPUT + diff --git a/rules/templates/src-autoconf-prog/wizzard.sh b/rules/templates/src-autoconf-prog/wizzard.sh new file mode 100644 index 000000000..22bb922ba --- /dev/null +++ b/rules/templates/src-autoconf-prog/wizzard.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +HERE=$(pwd) + +NAME=$1 +if [ -z "$NAME" ]; then + echo -n "project name: " + read NAME +fi +NAME_UP=$(echo $NAME | tr '[a-z-]' '[A-Z_]') + +mv "@name@.c" "${NAME}.c" + +for i in \ + configure.ac \ + Makefile.am \ + ${NAME}.c \ +; do + sed -i -e "s/\@name\@/${NAME}/g" $i + sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i +done + diff --git a/rules/templates/src-autoconf-proglib/@name@.c b/rules/templates/src-autoconf-proglib/@name@.c new file mode 100644 index 000000000..28f6d2204 --- /dev/null +++ b/rules/templates/src-autoconf-proglib/@name@.c @@ -0,0 +1,9 @@ +#include <stdio.h> +#include "fish.h" + +int main(void) +{ + fish(); + return 0; +} + diff --git a/rules/templates/src-autoconf-proglib/Makefile.am b/rules/templates/src-autoconf-proglib/Makefile.am new file mode 100644 index 000000000..a4ddb6f58 --- /dev/null +++ b/rules/templates/src-autoconf-proglib/Makefile.am @@ -0,0 +1,34 @@ +bin_PROGRAMS = \ + @name@ + +lib_LTLIBRARIES = \ + lib@name@.la + +AM_CPPFLAGS = \ + -I$(top_srcdir)/include \ + -I$(top_builddir)/include +# $(some_CFLAGS) + +EXTRA_DIST = \ + autogen.sh + +MAINTAINERCLEANFILES = \ + configure \ + aclocal.m4 \ + Makefile.in + +# +# library +# +lib@name@_la_SOURCES = \ + lib@name@.c + +# +# binary +# +@name@_SOURCES = \ + @name@.c + +#@name@_LDADD = \ +# $(some_LIBS) + diff --git a/rules/templates/src-autoconf-proglib/autogen.sh b/rules/templates/src-autoconf-proglib/autogen.sh new file mode 100644 index 000000000..6d1c20a24 --- /dev/null +++ b/rules/templates/src-autoconf-proglib/autogen.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# +# usage: +# +# banner <target name> +# +banner() { + echo + TG=`echo $1 | sed -e "s,/.*/,,g"` + LINE=`echo $TG |sed -e "s/./-/g"` + echo $LINE + echo $TG + echo $LINE + echo +} + +banner "autoreconf" + +autoreconf --force --install -Wall || exit $? + +banner "Finished" diff --git a/rules/templates/src-autoconf-proglib/configure.ac b/rules/templates/src-autoconf-proglib/configure.ac new file mode 100644 index 000000000..091ce7ada --- /dev/null +++ b/rules/templates/src-autoconf-proglib/configure.ac @@ -0,0 +1,70 @@ +AC_PREREQ(2.59) + +esyscmd([echo "define(myversion, $(dir=$(basename $(pwd)); if test \"${dir%%-trunk}\" != \"$dir\"; then echo 99999999-9; else prefix=${dir%%-[0-9]*-[0-9]}; echo ${dir##$prefix-}; fi))"]) + +AC_INIT([@name@], myversion, [bugs@pengutronix.de]) +AC_CONFIG_SRCDIR([@name@.c]) +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + +AM_MAINTAINER_MODE + +CFLAGS="${CFLAGS} -W -Wall" + +# +# libtool library versioning stuff +# +# Library code modified: REVISION++ +# Interfaces changed/added/removed: CURRENT++ REVISION=0 +# Interfaces added: AGE++ +# Interfaces removed: AGE=0 +LT_CURRENT=0 +LT_REVISION=0 +LT_AGE=0 +AC_SUBST(LT_CURRENT) +AC_SUBST(LT_REVISION) +AC_SUBST(LT_AGE) + + +# +# Checks for programs. +# +AC_PROG_CC +AC_PROG_LIBTOOL + +AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2]) + + +## +# libsomething +## +#REQUIRES_LIBSOMETHING="libsomething >= 20090402-1" +#AC_SUBST(REQUIRES_LIBSOMETHING) +#PKG_CHECK_MODULES(libsomething, $REQUIRES_LIBSOMETHING) + + +# +# Debugging +# +AC_MSG_CHECKING([whether to enable debugging]) +AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug], [enable debugging @<:@default=yes@:>@]), + [case "$enableval" in + y | yes) CONFIG_DEBUG=yes ;; + *) CONFIG_DEBUG=no ;; + esac], + [CONFIG_DEBUG=yes]) +AC_MSG_RESULT([${CONFIG_DEBUG}]) +if test "${CONFIG_DEBUG}" = "yes"; then + CFLAGS="${CFLAGS} -Werror -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" + AC_DEFINE(DEBUG, 1, [debugging]) +else + CFLAGS="${CFLAGS} -O2" +fi + + +AC_CONFIG_FILES([ + Makefile +]) +AC_OUTPUT + diff --git a/rules/templates/src-autoconf-proglib/lib@name@.c b/rules/templates/src-autoconf-proglib/lib@name@.c new file mode 100644 index 000000000..ed3ec7486 --- /dev/null +++ b/rules/templates/src-autoconf-proglib/lib@name@.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int fish(void) +{ + printf("hello fish!\n"); + return 0; +} + diff --git a/rules/templates/src-autoconf-proglib/wizzard.sh b/rules/templates/src-autoconf-proglib/wizzard.sh new file mode 100644 index 000000000..f63c3ac40 --- /dev/null +++ b/rules/templates/src-autoconf-proglib/wizzard.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +HERE=$(pwd) + +NAME=$1 +if [ -z "$NAME" ]; then + echo -n "project name: " + read NAME +fi +NAME_UP=$(echo $NAME | tr '[a-z-]' '[A-Z_]') + +mv "@name@.c" "${NAME}.c" +mv "lib@name@.c" "lib${NAME}.c" + +for i in \ + configure.ac \ + Makefile.am \ + ${NAME}.c \ + lib${NAME}.c \ +; do + sed -i -e "s/\@name\@/${NAME}/g" $i + sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i +done + diff --git a/rules/templates/template-src-in b/rules/templates/template-class-existing-target-in index 64591e4ba..ef0935d31 100644 --- a/rules/templates/template-src-in +++ b/rules/templates/template-class-existing-target-in @@ -1,5 +1,7 @@ +## SECTION=fixme + config @PACKET@ - bool + tristate prompt "@packet@" help FIXME diff --git a/rules/templates/template-font-in b/rules/templates/template-font-in index 93290479a..8a61b0c65 100644 --- a/rules/templates/template-font-in +++ b/rules/templates/template-font-in @@ -1,3 +1,5 @@ +## SECTION=fixme + config @PACKET@ bool select XORG_FONTS diff --git a/rules/templates/template-in b/rules/templates/template-in index 01b52e66a..ef0935d31 100644 --- a/rules/templates/template-in +++ b/rules/templates/template-in @@ -1,3 +1,5 @@ +## SECTION=fixme + config @PACKET@ tristate prompt "@packet@" diff --git a/rules/templates/template-src-autoconf-in b/rules/templates/template-src-autoconf-in new file mode 100644 index 000000000..8a8a5b2ed --- /dev/null +++ b/rules/templates/template-src-autoconf-in @@ -0,0 +1,17 @@ +## SECTION=fixme + +config @PACKET@ + bool + prompt "@packet@" + help + FIXME + +if @PACKET@ + +config @PACKET@_TRUNK + bool + prompt "use trunk" + help + Build trunk instead of latest release. + +endif diff --git a/rules/templates/template-src-make b/rules/templates/template-src-autoconf-make index f77e84474..3d9b8ee9d 100644 --- a/rules/templates/template-src-make +++ b/rules/templates/template-src-autoconf-make @@ -17,19 +17,15 @@ PACKAGES-$(PTXCONF_@PACKET@) += @packet@ # # Paths and names # -@PACKET@ := @packet@ -@PACKET@_URL := @URL@/$(@PACKET@) -@PACKET@_SOURCE := +@PACKET@_VERSION := @VERSION@ +@PACKET@ := @packet@-$(@PACKET@_VERSION) +@PACKET@_SRCDIR := $(PTXDIST_WORKSPACE)/local_src/$(@PACKET@) @PACKET@_DIR := $(BUILDDIR)/$(@PACKET@) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- -$(STATEDIR)/@packet@.get: - @$(call targetinfo, $@) - @$(call touch, $@) - # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- @@ -37,9 +33,12 @@ $(STATEDIR)/@packet@.get: $(STATEDIR)/@packet@.extract: @$(call targetinfo, $@) @$(call clean, $(@PACKET@_DIR)) - @$(call extract, @PACKET@) - @$(call patchin, @PACKET@) - @$(call touch, $@) +ifdef PTXCONF_@PACKET@_TRUNK + cd $(@PACKET@_SRCDIR) && sh autogen.sh +endif + @$(call patchin, @PACKET@, $(@PACKET@_SRCDIR)) + mkdir -p $(@PACKET@_DIR) + @$(call touch) # ---------------------------------------------------------------------------- # Prepare @@ -48,18 +47,28 @@ $(STATEDIR)/@packet@.extract: @PACKET@_PATH := PATH=$(CROSS_PATH) @PACKET@_ENV := $(CROSS_ENV) +# +# autoconf +# +@PACKET@_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) + $(STATEDIR)/@packet@.prepare: - @$(call targetinfo, $@) - @$(call touch, $@) + @$(call targetinfo) + @$(call clean, $(@PACKET@_DIR)/config.cache) + cd $(@PACKET@_DIR) && \ + $(@PACKET@_PATH) $(@PACKET@_ENV) \ + $(@PACKET@_SRCDIR)/configure $(@PACKET@_AUTOCONF) + @$(call touch) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.compile: - @$(call targetinfo, $@) + @$(call targetinfo) cd $(@PACKET@_DIR) && $(@PACKET@_ENV) $(@PACKET@_PATH) $(MAKE) $(PARALLELMFLAGS) - @$(call touch, $@) + @$(call touch) # ---------------------------------------------------------------------------- # Install @@ -67,7 +76,8 @@ $(STATEDIR)/@packet@.compile: $(STATEDIR)/@packet@.install: @$(call targetinfo, $@) - @$(call touch, $@) + @$(call install, @PACKET@) + @$(call touch) # ---------------------------------------------------------------------------- # Target-Install @@ -76,21 +86,39 @@ $(STATEDIR)/@packet@.install: $(STATEDIR)/@packet@.targetinstall: @$(call targetinfo, $@) - @$(call install_init, @packet@) - @$(call install_fixup,@packet@,PACKAGE,@packet@) - @$(call install_fixup,@packet@,PRIORITY,optional) - @$(call install_fixup,@packet@,VERSION,0) - @$(call install_fixup,@packet@,SECTION,base) - @$(call install_fixup,@packet@,AUTHOR,"@AUTHOR@") - @$(call install_fixup,@packet@,DEPENDS,) - @$(call install_fixup,@packet@,DESCRIPTION,missing) -# -# TODO: Add here all files that should be copied to the target -# Note: Add everything before(!) call to macro install_finish -# - @$(call install_copy, @packet@, 0, 0, 0755, $(@PACKET@_DIR)/foobar, /dev/null) - - @$(call install_finish,@packet@) + @$(call install_init, @packet@) + @$(call install_fixup, @packet@, PACKAGE, @packet@) + @$(call install_fixup, @packet@, PRIORITY, optional) + @$(call install_fixup, @packet@, VERSION, @VERSION@) + @$(call install_fixup, @packet@, SECTION, base) + @$(call install_fixup, @packet@, AUTHOR, "@AUTHOR@") + @$(call install_fixup, @packet@, DEPENDS,) + @$(call install_fixup, @packet@, DESCRIPTION, missing) + + # + # example code:; copy all libraries, links and binaries + # + + @for i in $(shell cd $(PKGDIR)/$(@PACKET@) && find bin sbin usr/bin usr/sbin -type f); do \ + $(call install_copy, @packet@, 0, 0, 0755, -, /$$i); \ + done + @for i in $(shell cd $(PKGDIR)/$(@PACKET@) && find lib usr/lib -name "*.so*"); do \ + $(call install_copy, @packet@, 0, 0, 0644, -, /$$i); \ + done + @links="$(shell cd $(PKGDIR)/$(@PACKET@) && find lib usr/lib -type l)"; \ + if [ -n "$$links" ]; then \ + for i in $$links; do \ + from="`readlink $(PKGDIR)/$(@PACKET@)/$$i`"; \ + to="/$$i"; \ + $(call install_link, @packet@, $$from, $$to); \ + done; \ + fi + + # + # FIXME: add all necessary things here + # + + @$(call install_finish, @packet@) @$(call touch, $@) @@ -100,6 +128,7 @@ $(STATEDIR)/@packet@.targetinstall: @packet@_clean: rm -rf $(STATEDIR)/@packet@.* - cd $(@PACKET@_DIR) && $(@PACKET@_ENV) $(@PACKET@_PATH) $(MAKE) clean + rm -rf $(PKGDIR)/@packet@_* + rm -rf $(@PACKET@_DIR) # vim: syntax=make |