Changeset b9492d5 in freewrt for package/libvorbis


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/libvorbis/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:=              libvorbis
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            37847626b8e1b53ae79a34714c7b3211
     13PKG_SOURCE_URL:=        http://downloads.xiph.org/releases/vorbis
    1314
    14 PKG_SOURCE_URL:=        http://downloads.xiph.org/releases/vorbis/
    15 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.gz
     15include ${TOPDIR}/mk/package.mk
    1616
    17 include $(TOPDIR)/mk/package.mk
    18 
    19 $(eval $(call PKG_template,LIBVORBIS,libvorbis,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     17$(eval $(call PKG_template,LIBVORBIS,libvorbis,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2018
    2119# NOTE: check ./toolchain/libnotimpl
     
    2321# for libvorbis, they are cosf/sinf
    2422
    25 $(WRKBUILD)/.configured:
    26         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    27                 $(TARGET_CONFIGURE_OPTS) \
    28                 CFLAGS="$(strip $(TARGET_CFLAGS))" \
    29                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
    30                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
    31                 LIBS="-lm -logg -lnotimpl" \
    32                 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
    33                 ./configure \
    34                         --target=$(GNU_TARGET_NAME) \
    35                         --host=$(GNU_TARGET_NAME) \
    36                         --build=$(GNU_HOST_NAME) \
    37                         --program-prefix="" \
    38                         --program-suffix="" \
    39                         --prefix=/usr \
    40                         --exec-prefix=/usr \
    41                         --bindir=/usr/bin \
    42                         --datadir=/usr/share \
    43                         --includedir=/usr/include \
    44                         --infodir=/usr/share/info \
    45                         --libdir=/usr/lib \
    46                         --libexecdir=/usr/lib \
    47                         --localstatedir=/var \
    48                         --mandir=/usr/share/man \
    49                         --sbindir=/usr/sbin \
    50                         --sysconfdir=/etc \
    51                         --disable-nls \
    52                         --enable-shared \
    53                         --enable-static \
    54                         --disable-rpath \
    55                         --with-gnu-ld \
    56                         --with-ogg="$(STAGING_DIR)/usr" \
    57                         --with-ogg-includes="$(STAGING_DIR)/usr/include" \
    58                         --with-ogg-libraries="$(STAGING_DIR)/usr/lib" \
    59         );
    60         touch $@
     23CONFIGURE_STYLE=        gnu
     24CONFIGURE_ENV+=         LIBS="-lm -logg -lnotimpl"
     25CONFIGURE_ARGS+=        --with-ogg="${STAGING_DIR}/usr" \
     26                        --with-ogg-includes="${STAGING_DIR}/usr/include" \
     27                        --with-ogg-libraries="${STAGING_DIR}/usr/lib"
     28BUILD_STYLE=            auto
     29INSTALL_STYLE=          auto
    6130
    62 $(WRKBUILD)/.built:
    63         rm -rf $(WRKINST)
    64         mkdir -p $(WRKINST)
    65         $(MAKE) -C $(WRKBUILD) \
    66                 DESTDIR="$(WRKINST)" \
    67                 all install
    68         touch $@
     31post-install:
     32        ${INSTALL_DIR} ${IDIR_LIBVORBIS}/usr/lib
     33        ${CP} ${WRKINST}/usr/lib/libvorbis.so.* ${IDIR_LIBVORBIS}/usr/lib/
     34        ${SED} 's,-I$${includedir},,g' ${WRKINST}/usr/lib/pkgconfig/vorbis{,enc,file}.pc
     35        ${SED} 's,-L$${libdir},,g' ${WRKINST}/usr/lib/pkgconfig/vorbis{,enc,file}.pc
    6936
    70 $(IPKG_LIBVORBIS):
    71         install -m0755 -d $(IDIR_LIBVORBIS)/usr/lib
    72         $(CP) $(WRKINST)/usr/lib/libvorbis.so.* $(IDIR_LIBVORBIS)/usr/lib/
    73         $(RSTRIP) $(IDIR_LIBVORBIS)
    74         $(IPKG_BUILD) $(IDIR_LIBVORBIS) $(PACKAGE_DIR)
    75 
    76 $(STAGING_DIR)/usr/lib/libvorbis.so: $(WRKBUILD)/.built
    77         mkdir -p $(STAGING_DIR)/usr/include
    78         $(CP) $(WRKINST)/usr/include/vorbis $(STAGING_DIR)/usr/include/
    79         mkdir -p $(STAGING_DIR)/usr/lib
    80         $(CP) $(WRKINST)/usr/lib/libvorbis.a $(STAGING_DIR)/usr/lib/
    81         $(CP) $(WRKINST)/usr/lib/libvorbis{,enc,file}.so* $(STAGING_DIR)/usr/lib/
    82         mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
    83         $(CP) $(WRKINST)/usr/lib/pkgconfig/vorbis{,enc,file}.pc $(STAGING_DIR)/usr/lib/pkgconfig/
    84         $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/vorbis{,enc,file}.pc
    85         $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/vorbis{,enc,file}.pc
    86         touch $@
    87 
    88 install-dev: $(STAGING_DIR)/usr/lib/libvorbis.so
    89 
    90 uninstall-dev:
    91         rm -rf \
    92                 $(STAGING_DIR)/usr/include/vorbis \
    93                 $(STAGING_DIR)/usr/lib/libvorbis{,enc,file}.a \
    94                 $(STAGING_DIR)/usr/lib/libvorbis{,enc,file}.so* \
    95                 $(STAGING_DIR)/usr/lib/pkgconfig/vorbis{,enc,file}.pc \
    96 
    97 compile-targets: install-dev
    98 clean-targets: uninstall-dev
     37include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.