X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=libs%2Fgettext%2FMakefile;h=c4b166f9ea8b506a328285cbd529508b51504730;hb=ea528b365d3f2acf87a9ce7b929a597d05cff810;hp=ab620d7d6f11c8f235b813f8ae07348fdff7f646;hpb=6d892c2a3f1cd389aed7054ebfc052da37031ec5;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/libs/gettext/Makefile b/libs/gettext/Makefile index ab620d7d6f..c4b166f9ea 100644 --- a/libs/gettext/Makefile +++ b/libs/gettext/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,57 +8,56 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gettext -PKG_VERSION:=0.16.1 -PKG_RELEASE:=4 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=@GNU/gettext -PKG_MD5SUM:=3d9ad24301c6d6b17ec30704a13fe127 - -PKG_FIXUP = libtool +PKG_RELEASE:=2 include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk define Package/libintl SECTION:=libs CATEGORY:=Libraries - TITLE:=GNU Internationalization library - URL:=http://www.gnu.org/software/gettext/ + TITLE:=Stub header for the GNU Internationalization library endef -TARGET_CFLAGS += $(FPIC) - -CONFIGURE_ARGS += \ - --enable-shared \ - --enable-static \ - --disable-rpath \ - --enable-nls \ - --disable-java \ - --disable-native-java \ - --disable-openmp \ - --with-included-gettext \ - --without-libintl-prefix \ - --without-libexpat-prefix \ - --without-emacs +define Build/Prepare + $(INSTALL_DIR) $(PKG_BUILD_DIR) + $(CP) ./src/* $(PKG_BUILD_DIR)/ +endef -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all +define Build/Configure endef -define Build/Install - $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install +define Build/Compile endef define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/lib/libintl/include - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl/include/ - $(INSTALL_DIR) $(1)/usr/lib/libintl/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl/lib/ + $(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include + $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/ + + $(INSTALL_DIR) $(1)/usr/share/aclocal + $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/ +endef + +define Host/Prepare + mkdir -p $(HOST_BUILD_DIR) +endef + +define Host/Compile + +endef + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/include + $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOST)/include/ + + $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal + $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOST)/share/aclocal/ endef define Package/libintl/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/tmp + touch $(1)/tmp/.libintl-placeholder endef +$(eval $(call HostBuild)) $(eval $(call BuildPackage,libintl))