change Build/Package to Build/DefaultTargets: clinkc does not provide anything useful...
authorNicolas Thill <nico@openwrt.org>
Mon, 30 Oct 2006 11:15:34 +0000 (11:15 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 30 Oct 2006 11:15:34 +0000 (11:15 +0000)
SVN-Revision: 5346

libs/clinkc/Makefile

index 7717d1c..6713100 100644 (file)
@@ -1,3 +1,4 @@
+#
 # Copyright (C) 2006 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -10,20 +11,18 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=clinkc
 PKG_VERSION:=101
 PKG_RELEASE:=1
-PKG_MD5SUM:=4c8ac54a15da47203a86daf77fbc2664
 
-PKG_SOURCE_URL:=@SF/clinkc/
 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/clinkc/
+PKG_MD5SUM:=4c8ac54a15da47203a86daf77fbc2664
 PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/CyberLinkC
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
-PKG_BUILDDEP=expat
-
 include $(INCLUDE_DIR)/package.mk
 
-define Package/clinkc
+define Package/libclinkc
   SECTION:=libs
   CATEGORY:=Libraries
   DEPENDS:=+libexpat
@@ -32,30 +31,25 @@ define Package/clinkc
   URL:=http://sourceforge.net/projects/clinkc
 endef
 
+# uses GNU configure
+
 define Build/Compile
-       rm -rf $(PKG_INSTALL_DIR)
-       mkdir -p $(PKG_INSTALL_DIR)
        chmod +x $(PKG_BUILD_DIR)/config/install-sh
        $(MAKE) -C $(PKG_BUILD_DIR) \
-               $(TARGET_CONFIGURE_OPTS) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef
 
-define Package/clinkc/install
-       $(CP) $(PKG_INSTALL_DIR) $(1)
-endef
-
 define Build/InstallDev
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               $(TARGET_CONFIGURE_OPTS) \
-               DESTDIR="$(STAGING_DIR)" \
-               install
+       mkdir -p $(STAGING_DIR)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/cybergarage $(STAGING_DIR)/usr/include/
+       mkdir -p $(STAGING_DIR)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libclinkc.a $(STAGING_DIR)/usr/lib/
 endef
 
 define Build/UninstallDev
-       rm -rf $(STAGING_DIR)/usr/include/cybergarage \
-               $(STAGING_DIR)/usr/lib/libclinkc.{so*,a}
+       rm -rf  $(STAGING_DIR)/usr/include/cybergarage \
+               $(STAGING_DIR)/usr/lib/libclinkc.a
 endef
 
-$(eval $(call BuildPackage,clinkc))
+$(eval $(call Build/DefaultTargets))