summaryrefslogtreecommitdiff
path: root/package/flex/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-26 23:48:00 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-26 23:48:00 +0100
commit09381f08db60bd52ab7135bd084fa2bb197a98c2 (patch)
tree24fccce5f78fc4129d5b26d0adf07cda138d8188 /package/flex/Makefile
parent890c35ac59300679b63cc3f94409143dd7020ebe (diff)
parenta4137f916eed4e87434e5382573008c89c8f1652 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/flex/Makefile')
-rw-r--r--package/flex/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/package/flex/Makefile b/package/flex/Makefile
index f77e4650a..d2ca5ee34 100644
--- a/package/flex/Makefile
+++ b/package/flex/Makefile
@@ -12,15 +12,21 @@ PKG_SECTION:= lang
PKG_URL:= http://flex.sourceforge.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}
-include ${TOPDIR}/mk/package.mk
+PKG_SUBPKGS:= FLEX FLEX_DEV
-$(eval $(call PKG_template,FLEX,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+include ${TOPDIR}/mk/package.mk
-CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull=yes \
- ac_cv_func_realloc_0_nonnull=yes
+$(eval $(call PKG_template,FLEX,flex,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,FLEX_DEV,flex-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-post-install:
+flex-install:
${INSTALL_DIR} ${IDIR_FLEX}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/flex ${IDIR_FLEX}/usr/bin
+flex-dev-install:
+ ${INSTALL_DIR} ${IDIR_FLEX_DEV}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libfl.a \
+ ${IDIR_FLEX_DEV}/usr/lib
+
+
include ${TOPDIR}/mk/pkg-bottom.mk