Modify

Opened 10 years ago

Closed 10 years ago

Last modified 2 years ago

#1256 closed enhancement (wontfix)

Ported lzo from whiterussian to current Trunk

Reported by: mpapamanz@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: Cc:

Description

I need openvpn in an athereos SOC, so i am using Kamikaze than doesn't have the openvpn. I have ported openvpn to Kamikaze but the Makefile is still not clean (even if it works :-) )
If you want, when i will clean the Makefile i can send it to you. Meanwhile i send you liblzo (that i ported because is a openvpn dependence) that works and is clean.
A big thanks for the lovely work that you are doing!

# ---------------------------------------
# package/lzo/Makefile
# ---------------------------------------


include $(TOPDIR)/rules.mk

PKG_NAME:=lzo
PKG_VERSION:=2.02
PKG_RELEASE:=1
PKG_MD5SUM:=6760e5819f4238328709bf93bf10071c

PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
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 $(INCLUDE_DIR)/package.mk

define Package/liblzo
        SECTION:=libs
        CATEGORY:=Libraries
        TITLE:=Real-time data compression library
        URL:=http://www.oberhumer.com/opensource/lzo/
endef

define Build/Configure
        (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(strip $(TARGET_CFLAGS))" \
                CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
                LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
                ./configure \
                  --target=$(GNU_TARGET_NAME) \
                  --host=$(GNU_TARGET_NAME) \
                  --build=$(GNU_HOST_NAME) \
                  --program-prefix="" \
                  --program-suffix="" \
                  --prefix=/usr \
                  --exec-prefix=/usr \
                  --bindir=/usr/bin \
                  --datadir=/usr/share \
                  --includedir=/usr/include \
                  --infodir=/usr/share/info \
                  --libdir=/usr/lib \
                  --libexecdir=/usr/lib \
                  --localstatedir=/var \
                  --mandir=/usr/share/man \
                  --sbindir=/usr/sbin \
                  --sysconfdir=/etc \
                  $(DISABLE_LARGEFILE) \
                  $(DISABLE_NLS) \
                  --enable-shared \
                  --enable-static \
        );
endef


define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CFLAGS_O="$(TARGET_CFLAGS)" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
endef


define Package/liblzo/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so.* $(1)/usr/lib
        $(RSTRIP) $(1)
endef



define Build/InstallDev
        mkdir -p $(STAGING_DIR)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(STAGING_DIR)/usr/include/
        mkdir -p $(STAGING_DIR)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(STAGING_DIR)/usr/lib/
        touch $(STAGING_DIR)/usr/lib/liblzo.so
endef

define Build/UninstallDev
        rm -rf \
          $(STAGING_DIR)/usr/include/lzo* \
          $(STAGING_DIR)/usr/lib/liblzo2.{a,so*} \

endef

$(eval $(call BuildPackage,liblzo))


# -------------------------------------
# package/lzo/ipkg/liblzo.control (identical to Whiterussian)
# -------------------------------------


Package: liblzo
Priority: optional
Section: libs
Description: a real-time data compression library

Attachments (2)

Makefile (2.1 KB) - added by mpapamanz@… 10 years ago.
The Makefile (/package/lzo/Makefile)
liblzo.control (99 bytes) - added by mpapamanz@… 10 years ago.
The control file (/package/lzo/ipkg/liblzo.control)

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by mpapamanz@…

The Makefile (/package/lzo/Makefile)

comment:1 Changed 10 years ago by anonymous

Is already ported: https://dev.openwrt.org/browser/packages/libs/lzo/Makefile

First look into the package repository if it's not already there. Don't do the work twice...

Changed 10 years ago by mpapamanz@…

The control file (/package/lzo/ipkg/liblzo.control)

comment:2 Changed 10 years ago by florian

  • Resolution set to wontfix
  • Status changed from new to closed

As explained, already in trunk. Feel free to enhance the existing Makefile if needed.

comment:3 Changed 10 years ago by mpapamanz@…

Ops... i didn't see it, i just saw the /trunk/packages! Thank you, i was to re-port a lot of packets :-S
but, why these packets aren't in /trunk/packages?

comment:4 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.