diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-12 20:40:01 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-12 20:40:01 +0000 |
commit | a4cd93cbb3d6368a0a82ba15da92688cb9815060 (patch) | |
tree | 866d3b33183cf0feb6f3f596c909d86714c54320 /openwrt/package/serdisplib/Makefile | |
parent | 9d888c95ca2c03f041aa12ac9a505d6ff313580d (diff) |
Added serdisplib, thanks to Christoph Haderer for the package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2642 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/serdisplib/Makefile')
-rw-r--r-- | openwrt/package/serdisplib/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/openwrt/package/serdisplib/Makefile b/openwrt/package/serdisplib/Makefile new file mode 100644 index 000000000..2c16775f9 --- /dev/null +++ b/openwrt/package/serdisplib/Makefile @@ -0,0 +1,55 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=serdisplib +PKG_VERSION:=1.96 +PKG_RELEASE:=1 +PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78 + +PKG_SOURCE_URL:=http://dl.sourceforge.net/sourceforge/serdisplib +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_CAT:=zcat +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,SERDISPLIB,serdisplib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared + (cd $(PKG_BUILD_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --disable-nls \ + ); + touch $@ + +$(PKG_BUILD_DIR)/.built: + rm -rf $(PKG_INSTALL_DIR) + mkdir -p $(PKG_INSTALL_DIR)/usr/bin + mkdir -p $(PKG_INSTALL_DIR)/usr/lib + $(MAKE) -C $(PKG_BUILD_DIR)/src \ + prefix="$(PKG_INSTALL_DIR)/usr" + cp -fpR $(PKG_BUILD_DIR)/src/testserdisp $(PKG_INSTALL_DIR)/usr/bin + cp -fpR $(PKG_BUILD_DIR)/lib/libserdisp.so* $(PKG_INSTALL_DIR)/usr/lib + touch $@ + +$(IPKG_SERDISPLIB): + install -d -m0755 $(IDIR_SERDISPLIB)/usr/bin + cp -fpR $(PKG_INSTALL_DIR)/usr/bin/testserdisp $(IDIR_SERDISPLIB)/usr/bin + install -d -m0755 $(IDIR_SERDISPLIB)/usr/lib + cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libserdisp.so* $(IDIR_SERDISPLIB)/usr/lib + $(RSTRIP) $(IDIR_SERDISPLIB) + $(IPKG_BUILD) $(IDIR_SERDISPLIB) $(PACKAGE_DIR) + +mostlyclean: + make -C $(PKG_BUILD_DIR) clean + rm $(PKG_BUILD_DIR)/.built |