2008-09-12 20:28:31 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2007-10-09 22:08:59 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libast
|
|
|
|
PKG_VERSION:=0.7
|
2010-04-16 02:31:52 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-10-09 22:08:59 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.eterm.org/download/
|
|
|
|
PKG_MD5SUM:=a9ec3b2da317f35869316e6d9571d296
|
2010-04-16 02:31:52 +00:00
|
|
|
|
2008-09-12 20:28:31 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-04-16 02:31:52 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-10-09 22:08:59 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libast
|
|
|
|
SECTION:=xorg-libraries
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=libraries
|
|
|
|
TITLE:=libast
|
2010-04-16 02:31:52 +00:00
|
|
|
DEPENDS:=+libpcre \
|
|
|
|
+FEATURE_drawing-backend_libX11:libX11 \
|
|
|
|
+FEATURE_drawing-backend_libX11:libXt
|
2007-10-09 22:08:59 +00:00
|
|
|
endef
|
|
|
|
|
2010-04-16 02:31:52 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-regexp="pcre" \
|
|
|
|
--without-imlib \
|
2007-10-09 22:08:59 +00:00
|
|
|
|
2010-04-16 02:31:52 +00:00
|
|
|
ifneq ($(CONFIG_FEATURE_drawing-backend_libX11),)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-x \
|
|
|
|
--x-includes="$(STAGING_DIR)/usr/include" \
|
|
|
|
--x-libraries="$(STAGING_DIR)/usr/lib"
|
|
|
|
else
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-x
|
|
|
|
endif
|
2007-10-09 22:08:59 +00:00
|
|
|
|
2010-04-16 02:31:52 +00:00
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
dps_cv_snprintf_bug=0 \
|
|
|
|
dps_cv_vsnprintf_bug=0 \
|
2010-12-12 19:12:19 +00:00
|
|
|
dps_cv_symlink_open_bug=0 \
|
2010-04-16 02:31:52 +00:00
|
|
|
|
|
|
|
EXTRA_LDFLAGS+= -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
2007-10-09 22:08:59 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-23 01:27:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include $(2)/bin
|
2010-04-16 02:31:52 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libast.{la,so*} $(1)/usr/lib/
|
2007-12-23 01:27:27 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(2)/bin/
|
2010-04-16 02:31:52 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
2007-12-23 01:27:27 +00:00
|
|
|
$(SED) "s,-I/usr/include,,g" $(2)/bin/libast-config
|
|
|
|
$(SED) "s,-L/usr/lib,,g" $(2)/bin/libast-config
|
|
|
|
$(SED) "s,-L/usr/X11R6/lib,,g" $(2)/bin/libast-config
|
2007-10-09 22:08:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libast/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-04-16 02:31:52 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libast.so.* $(1)/usr/lib/
|
2007-10-09 22:08:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libast))
|