Changeset bbe41103 in freewrt


Ignore:
Timestamp:
Jan 7, 2007, 10:13:00 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Children:
33ebf58
Parents:
8708286
Message:

convert to new style

git-svn-id: svn://www.freewrt.org/branches/common-adk@1522 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/libffi-sable/Makefile

    r8708286 rbbe41103  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              libffi-sable
     
    1111PKG_RELEASE:=           3
    1212PKG_MD5SUM:=            0c32eaaea0269c5fbe156fcd0be3e5bd
     13PKG_SOURCE_URL:=        http://sablevm.org/download/snapshot/2005-01-21/
    1314
    14 PKG_SOURCE_URL:=        http://sablevm.org/download/snapshot/2005-01-21/
    15 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.gz
     15include ${TOPDIR}/mk/package.mk
    1616
    17 include $(TOPDIR)/mk/package.mk
     17$(eval $(call PKG_template,LIBFFI_SABLE,libffi-sable,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1818
    19 FWRT_PACKAGE_LIBFFI_SABLE=m
     19CONFIGURE_STYLE=        gnu
     20BUILD_STYLE=            auto
     21INSTALL_STYLE=          auto
    2022
    21 $(eval $(call PKG_template,LIBFFI_SABLE,libffi-sable,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    22 
    23 $(WRKBUILD)/.configured:
    24         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    25                 $(TARGET_CONFIGURE_OPTS) \
    26                 CFLAGS="$(strip $(TARGET_CFLAGS))" \
    27                 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
    28                 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
    29                 ./configure \
    30                   --target=$(GNU_TARGET_NAME) \
    31                   --host=$(GNU_TARGET_NAME) \
    32                   --build=$(GNU_HOST_NAME) \
    33                   --program-prefix="" \
    34                   --program-suffix="" \
    35                   --prefix=/usr \
    36                   --exec-prefix=/usr \
    37                   --bindir=/usr/bin \
    38                   --datadir=/usr/share \
    39                   --includedir=/usr/include \
    40                   --infodir=/usr/share/info \
    41                   --libdir=/usr/lib \
    42                   --libexecdir=/usr/lib \
    43                   --localstatedir=/var \
    44                   --mandir=/usr/share/man \
    45                   --sbindir=/usr/sbin \
    46                   --sysconfdir=/etc \
    47                   --disable-nls \
    48                   --enable-shared \
    49                   --enable-static \
    50                   --disable-debug \
    51         );
    52         touch $@
    53 
    54 $(WRKBUILD)/.built:
    55         rm -rf $(WRKINST)
    56         mkdir -p $(WRKINST)
    57         $(MAKE) -C $(WRKBUILD) \
    58                 DESTDIR="$(WRKINST)" \
    59                 all install
    60         touch $@
    61 
    62 $(IPKG_LIBFFI_SABLE):
    63         install -m0755 -d $(IDIR_LIBFFI_SABLE)/usr/lib
    64         $(CP) $(WRKINST)/usr/lib/libffi.so.* $(IDIR_LIBFFI_SABLE)/usr/lib/
    65         $(RSTRIP) $(IDIR_LIBFFI_SABLE)
    66         $(IPKG_BUILD) $(IDIR_LIBFFI_SABLE) $(PACKAGE_DIR)
    67 
    68 $(STAGING_DIR)/usr/lib/libffi.so: $(WRKBUILD)/.built
    69         mkdir -p $(STAGING_DIR)/usr/include
    70         $(CP) $(WRKINST)/usr/include/ffi{,target}.h $(STAGING_DIR)/usr/include/
    71         mkdir -p $(STAGING_DIR)/usr/lib
    72         $(CP) $(WRKINST)/usr/lib/libffi.{a,so*} $(STAGING_DIR)/usr/lib/
    73         touch $@
    74 
    75 install-dev: $(STAGING_DIR)/usr/lib/libffi.so
    76 
    77 uninstall-dev:
    78         rm -rf \
    79                 $(STAGING_DIR)/usr/include/ffi{,target}.h \
    80                 $(STAGING_DIR)/usr/lib/libffi.{a,so*} \
    81 
    82 compile-targets: install-dev
    83 clean-targets: uninstall-dev
     23post-install:
     24        ${INSTALL_DIR} ${IDIR_LIBFFI_SABLE}/usr/lib
     25        ${CP} ${WRKINST}/usr/lib/libffi.so.* ${IDIR_LIBFFI_SABLE}/usr/lib/
    8426
    8527include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.