librpcsecgss:
authorOliver Ertl <oliver@ertl-net.net>
Thu, 12 Jul 2007 10:46:06 +0000 (10:46 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Thu, 12 Jul 2007 10:46:06 +0000 (10:46 +0000)
 * Cleanup Makefile
 * Fix compile
  * Build/UninstallDev
  * Fix build dependencies

SVN-Revision: 7938

libs/librpcsecgss/Makefile

index 29cd298..860c2e4 100644 (file)
@@ -10,12 +10,14 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=librpcsecgss
 PKG_VERSION:=0.14
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=librpcsecgss-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/
 PKG_MD5SUM:=0d4cdee46a98731b1b71e30504589281
 
+PKG_BUILD_DEPENDS:=libgssapi
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/librpcsecgss
@@ -27,29 +29,27 @@ define Package/librpcsecgss
 endef
 
 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include/gssglue/
-define Build/Compile
-       $(call Build/Compile/Default, \
-               OPT="$(TARGET_CFLAGS)" \
-               INSTALLSUID="install -m 4755" \
-               DESTDIR="$(PKG_INSTALL_DIR)" \
-               GSSAPI_LIBS="usr/lib/libgssapi.a" \
-               all install \
-       )
-endef
+
+MAKE_FLAGS += \
+       OPT="$(TARGET_CFLAGS)" \
+       INSTALLSUID="install -m 4755" \
+       DESTDIR="$(PKG_INSTALL_DIR)" \
+        GSSAPI_LIBS="usr/lib/libgssapi.a" \
+       all install
 
 define Build/InstallDev
-       mkdir -p $(STAGING_DIR)/usr/include/rpcsecgss/rpc
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/include/rpcsecgss/rpc
        $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsecgss/rpc/*.h $(STAGING_DIR)/usr/include/rpcsecgss/rpc/
-       mkdir -p $(STAGING_DIR)/usr/lib
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/librpcsecgss.{a,so*} $(STAGING_DIR)/usr/lib
-       mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/librpcsecgss.pc $(STAGING_DIR)/usr/lib/pkgconfig
 endef  
 
 define Build/UninstallDev
        rm -rf \
-               $(STAGING_DIR)/usr/include/rpcsecgss
-               $(STAGING_DIR)/usr/lib/librpcsecgss.{a,so*}
+               $(STAGING_DIR)/usr/include/rpcsecgss \
+               $(STAGING_DIR)/usr/lib/librpcsecgss.{a,so*} \
                $(STAGING_DIR)/usr/lib/pkgconfig/librpcsecgss.pc
 endef