Changeset 4a9c09c in freewrt


Ignore:
Timestamp:
Jan 11, 2007, 6:29:29 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Children:
ec48252
Parents:
40905ed
Message:

update to new style

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/libvorbisidec/Makefile

    r40905ed r4a9c09c  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              libvorbisidec
     
    1111PKG_RELEASE:=           2
    1212PKG_MD5SUM:=            f4a3f6189984014eddfe880c795d2606
    13 
    1413PKG_SOURCE_URL:=        http://www.freewrt.org/downloads
    1514
    16 include $(TOPDIR)/mk/package.mk
     15include ${TOPDIR}/mk/package.mk
    1716
    18 $(eval $(call PKG_template,LIBVORBISIDEC,libvorbisidec,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     17$(eval $(call PKG_template,LIBVORBISIDEC,libvorbisidec,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1918
    20 $(WRKBUILD)/.configured:
    21         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    22                 $(TARGET_CONFIGURE_OPTS) \
    23                 CFLAGS="$(strip $(TARGET_CFLAGS))" \
    24                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
    25                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
    26                 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
    27                 ./configure \
    28                         --target=$(GNU_TARGET_NAME) \
    29                         --host=$(GNU_TARGET_NAME) \
    30                         --build=$(GNU_HOST_NAME) \
    31                         --program-prefix="" \
    32                         --program-suffix="" \
    33                         --prefix=/usr \
    34                         --exec-prefix=/usr \
    35                         --bindir=/usr/bin \
    36                         --datadir=/usr/share \
    37                         --includedir=/usr/include \
    38                         --infodir=/usr/share/info \
    39                         --libdir=/usr/lib \
    40                         --libexecdir=/usr/lib \
    41                         --localstatedir=/var \
    42                         --mandir=/usr/share/man \
    43                         --sbindir=/usr/sbin \
    44                         --sysconfdir=/etc \
    45                         --disable-nls \
    46                         --enable-shared \
    47                         --enable-static \
    48                         --disable-rpath \
    49                         --with-gnu-ld \
    50         );
    51         touch $@
     19CONFIGURE_STYLE=        gnu
     20BUILD_STYLE=            auto
     21INSTALL_STYLE=          auto
    5222
    53 $(WRKBUILD)/.built:
    54         rm -rf $(WRKINST)
    55         mkdir -p $(WRKINST)
    56         $(MAKE) -C $(WRKBUILD) \
    57                 DESTDIR="$(WRKINST)" \
    58                 all install
    59         touch $@
    60 
    61 $(IPKG_LIBVORBISIDEC):
    62         install -m0755 -d $(IDIR_LIBVORBISIDEC)/usr/lib
    63         $(CP) $(WRKINST)/usr/lib/libvorbisidec.so.* $(IDIR_LIBVORBISIDEC)/usr/lib/
    64         $(RSTRIP) $(IDIR_LIBVORBISIDEC)
    65         $(IPKG_BUILD) $(IDIR_LIBVORBISIDEC) $(PACKAGE_DIR)
    66 
    67 $(STAGING_DIR)/usr/lib/libvorbisidec.so: $(WRKBUILD)/.built
    68         mkdir -p $(STAGING_DIR)/usr/include
    69         $(CP) $(WRKINST)/usr/include/tremor $(STAGING_DIR)/usr/include/
    70         mkdir -p $(STAGING_DIR)/usr/lib
    71         $(CP) $(WRKINST)/usr/lib/libvorbisidec.a $(STAGING_DIR)/usr/lib/
    72         $(CP) $(WRKINST)/usr/lib/libvorbisidec.so* $(STAGING_DIR)/usr/lib/
    73         touch $@
    74 
    75 install-dev: $(STAGING_DIR)/usr/lib/libvorbisidec.so
    76 
    77 uninstall-dev:
    78         rm -rf \
    79                 $(STAGING_DIR)/usr/include/tremor \
    80                 $(STAGING_DIR)/usr/lib/libvorbisidec.a \
    81                 $(STAGING_DIR)/usr/lib/libvorbisidec.so* \
    82 
    83 compile-targets: install-dev
    84 clean-targets: uninstall-dev
     23post-install:
     24        ${INSTALL_DIR} ${IDIR_LIBVORBISIDEC}/usr/lib
     25        ${CP} ${WRKINST}/usr/lib/libvorbisidec.so.* ${IDIR_LIBVORBISIDEC}/usr/lib/
    8526
    8627include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.