]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
zlib: Clean up naoki-makefile.
authorSchantl Stefan <Stevee@ipfire.org>
Sun, 14 Mar 2010 19:31:00 +0000 (20:31 +0100)
committerSchantl Stefan <Stevee@ipfire.org>
Sun, 14 Mar 2010 19:31:00 +0000 (20:31 +0100)
pkgs/core/zlib/zlib.nm

index 222594ac5794ff8bd48a3ba94f7640b45567946a..3d21e155c1a2e679bc5cd819a69b15338c8b79f8 100644 (file)
@@ -47,25 +47,17 @@ PKG_TARBALL    = $(THISAPP).tar.gz
 
 CFLAGS        += -fPIC -DPIC
 
-###############################################################################
-# Installation Details
-###############################################################################
+CONFIGURE_ENVIRONMENT += ac_cv_func_working_mktime=yes
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
-               ac_cv_func_working_mktime=yes \
-               ./configure \
-                       --prefix=/usr \
-                       --libdir=/lib
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+CONFIGURE_OPTIONS += \
+       --prefix=/usr \
+       --libdir=/lib
 
 define STAGE_TEST
        cd $(DIR_APP) && make check
 endef
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
+define STAGE_INSTALL_CMDS
        -mkdir -pv $(BUILDROOT)/usr/{include,lib}
        cd $(DIR_APP) && cp -pfv zconf.h zlib.h $(BUILDROOT)/usr/include
        rm -vf $(BUILDROOT)/lib/libz.so