Changeset b9492d5 in freewrt for package/libtasn1


Ignore:
Timestamp:
Jan 20, 2007, 10:21:59 PM (19 years ago)
Author:
Phil Sutter <n0-1@…>
Children:
145c3b8
Parents:
de3cb1f5
Message:

merged from branches/common-adk 1310:1685

the following packages are not converted yet:

  • alsa
  • asterisk
  • pmacct
  • zaptel
  • elinks
  • libgd
  • lua
  • mypackage
  • openser
  • php*
  • snort*
  • tmsnc

additionally, freeradius doesn't compile.

happy fixing :P

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1686 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/libtasn1/Makefile

    rde3cb1f5 rb9492d5  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              libtasn1
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            d124b11908cfb88883fe71472c25d53a
     13PKG_SOURCE_URL:=        ftp://ftp.gnutls.org/pub/gnutls/libtasn1 \
     14                        ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1 \
     15                        http://www.mirrors.wiretapped.net/security/network-securitygnutls/libtasn1/ \
     16                        ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/libtasn1 \
     17                        http://josefsson.org/gnutls/releases/libtasn1
    1318
    14 PKG_SOURCE_URL:=        ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
    15                         ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/ \
    16                         http://www.mirrors.wiretapped.net/security/network-security/gnutls/libtasn1/ \
    17                         ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/libtasn1/ \
    18                         http://josefsson.org/gnutls/releases/libtasn1/
    19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     19include ${TOPDIR}/mk/package.mk
    2020
    21 include $(TOPDIR)/mk/package.mk
     21$(eval $(call PKG_template,LIBTASN1,libtasn1,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2222
    23 $(eval $(call PKG_template,LIBTASN1,libtasn1,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     23CONFIGURE_STYLE=        gnu
     24BUILD_STYLE=            auto
     25INSTALL_STYLE=          auto
    2426
    25 $(WRKBUILD)/.configured:
    26         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
     27pre-configure:
     28        (cd ${WRKBUILD}; \
    2729                touch configure.ac ; \
    2830                touch acinclude.m4 ; \
     
    3133                touch config.h.in ; \
    3234                touch configure ; \
    33                 $(TARGET_CONFIGURE_OPTS) \
    34                 CFLAGS="$(TARGET_CFLAGS)" \
    35                 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
    36                 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
    37                 ./configure \
    38                 --target=$(GNU_TARGET_NAME) \
    39                 --host=$(GNU_TARGET_NAME) \
    40                 --build=$(GNU_HOST_NAME) \
    41                 --program-prefix="" \
    42                 --program-suffix="" \
    43                 --prefix=/usr \
    44                 --exec-prefix=/usr \
    45                 --bindir=/usr/bin \
    46                 --datadir=/usr/share \
    47                 --includedir=/usr/include \
    48                 --infodir=/usr/share/info \
    49                 --libdir=/usr/lib \
    50                 --libexecdir=/usr/lib \
    51                 --localstatedir=/var \
    52                 --mandir=/usr/share/man \
    53                 --sbindir=/usr/sbin \
    54                 --sysconfdir=/etc \
    55                 --disable-nls \
    56                 --enable-shared \
    57                 --enable-static \
    58                 --disable-rpath \
    5935        );
    60         touch $@
    6136
    62 $(WRKBUILD)/.built:
    63         rm -rf $(WRKINST)
    64         mkdir -p $(WRKINST)
    65         $(MAKE) -C $(WRKBUILD) \
    66                 DESTDIR="$(WRKINST)" \
    67                 all install
    68         touch $@
     37post-install:
     38        ${INSTALL_DIR} ${IDIR_LIBTASN1}/usr/lib
     39        ${CP} ${WRKINST}/usr/lib/libtasn1.so.* ${IDIR_LIBTASN1}/usr/lib/
    6940
    70 $(IPKG_LIBTASN1):
    71         install -m0755 -d $(IDIR_LIBTASN1)/usr/lib
    72         $(CP) $(WRKINST)/usr/lib/libtasn1.so.* $(IDIR_LIBTASN1)/usr/lib/
    73         $(RSTRIP) $(IDIR_LIBTASN1)
    74         $(IPKG_BUILD) $(IDIR_LIBTASN1) $(PACKAGE_DIR)
    75 
    76 $(STAGING_DIR)/usr/lib/libtasn1.so: $(WRKBUILD)/.built
    77         mkdir -p $(STAGING_DIR)/usr/bin
    78         $(CP) $(WRKINST)/usr/bin/libtasn1-config $(STAGING_DIR)/usr/bin/
    79         mkdir -p $(STAGING_DIR)/usr/include
    80         $(CP) $(WRKINST)/usr/include/libtasn1.h $(STAGING_DIR)/usr/include/
    81         mkdir -p $(STAGING_DIR)/usr/lib
    82         $(CP) $(WRKINST)/usr/lib/libtasn1.{a,so*} $(STAGING_DIR)/usr/lib/
    83         mkdir -p $(STAGING_DIR)/usr/share/aclocal
    84         $(CP) $(WRKINST)/usr/share/aclocal/libtasn1.m4 $(STAGING_DIR)/usr/share/aclocal/
    85         touch $@
    86 
    87 install-dev: $(STAGING_DIR)/usr/lib/libtasn1.so
    88 
    89 uninstall-dev:
    90         rm -rf \
    91                 $(STAGING_DIR)/usr/bin/libtasn1-config \
    92                 $(STAGING_DIR)/usr/include/libtasn1.h \
    93                 $(STAGING_DIR)/usr/lib/libtasn1.{a,so*} \
    94                 $(STAGING_DIR)/usr/share/aclocal/libtasn1.m4 \
    95 
    96 compile-targets: install-dev
    97 clean-targets: uninstall-dev
     41include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.