remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / serdisplib / Makefile
index 002013a..9c7ef77 100644 (file)
@@ -15,7 +15,6 @@ PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/serdisplib
 PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
-PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 
@@ -25,12 +24,14 @@ define Package/serdisplib
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=A display control library
-  DESCRIPTION:=\
-       serdisplib is a library to drive serial and parallel displays \\\
-       with built-in controllers.
   URL:=http://serdisplib.sourceforge.net/
 endef
 
+define Package/serdisplib/description
+       serdisplib is a library to drive serial and parallel displays 
+       with built-in controllers.
+endef
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
@@ -43,20 +44,14 @@ define Build/Compile
 endef
 
 define Build/InstallDev
-       mkdir -p $(STAGING_DIR)/usr/include
-       $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/
-       mkdir -p $(STAGING_DIR)/usr/lib
-       $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(STAGING_DIR)/usr/lib/
-endef
-
-define Build/UninstallDev
-       rm -rf \
-               $(STAGING_DIR)/usr/include/serdisplib \
-               $(STAGING_DIR)/usr/lib/libserdisp.{a,so*}
+       mkdir -p $(1)/usr/include
+       $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(1)/usr/include/
+       mkdir -p $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(1)/usr/lib/
 endef
 
 define Package/serdisplib/install
-       install -d -m0755 $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(1)/usr/lib
 endef