| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/licence for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 |
|
|---|
| 9 | PKG_NAME:= libvorbisidec
|
|---|
| 10 | PKG_VERSION:= 1.2.0
|
|---|
| 11 | PKG_RELEASE:= 2
|
|---|
| 12 | PKG_MD5SUM:= f4a3f6189984014eddfe880c795d2606
|
|---|
| 13 |
|
|---|
| 14 | PKG_SOURCE_URL:= http://www.freewrt.org/downloads
|
|---|
| 15 |
|
|---|
| 16 | include $(TOPDIR)/mk/package.mk
|
|---|
| 17 |
|
|---|
| 18 | $(eval $(call PKG_template,LIBVORBISIDEC,libvorbisidec,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 19 |
|
|---|
| 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 $@
|
|---|
| 52 |
|
|---|
| 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
|
|---|