Changeset b9492d5 in freewrt for package/libvorbis
- Timestamp:
- Jan 20, 2007, 10:21:59 PM (19 years ago)
- Children:
- 145c3b8
- Parents:
- de3cb1f5
- File:
-
- 1 edited
-
package/libvorbis/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/libvorbis/Makefile
rde3cb1f5 rb9492d5 5 5 # or at http://www.freewrt.org/licence for details. 6 6 7 include $ (TOPDIR)/rules.mk7 include ${TOPDIR}/rules.mk 8 8 9 9 PKG_NAME:= libvorbis … … 11 11 PKG_RELEASE:= 1 12 12 PKG_MD5SUM:= 37847626b8e1b53ae79a34714c7b3211 13 PKG_SOURCE_URL:= http://downloads.xiph.org/releases/vorbis 13 14 14 PKG_SOURCE_URL:= http://downloads.xiph.org/releases/vorbis/ 15 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz 15 include ${TOPDIR}/mk/package.mk 16 16 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})) 20 18 21 19 # NOTE: check ./toolchain/libnotimpl … … 23 21 # for libvorbis, they are cosf/sinf 24 22 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 $@ 23 CONFIGURE_STYLE= gnu 24 CONFIGURE_ENV+= LIBS="-lm -logg -lnotimpl" 25 CONFIGURE_ARGS+= --with-ogg="${STAGING_DIR}/usr" \ 26 --with-ogg-includes="${STAGING_DIR}/usr/include" \ 27 --with-ogg-libraries="${STAGING_DIR}/usr/lib" 28 BUILD_STYLE= auto 29 INSTALL_STYLE= auto 61 30 62 $(WRKBUILD)/.built: 63 rm -rf $(WRKINST) 64 mkdir -p $(WRKINST) 65 $(MAKE) -C $(WRKBUILD) \ 66 DESTDIR="$(WRKINST)" \ 67 all install 68 touch $@ 31 post-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 69 36 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 37 include ${TOPDIR}/mk/pkg-bottom.mk
Note:
See TracChangeset
for help on using the changeset viewer.
