Ticket #4268: gigaset-frontend-2008-11-28.patch

File gigaset-frontend-2008-11-28.patch, 3.3 KB (added by Hauke <hauke@…>, 7 years ago)

gigaset-frontend (add to packages)

  • net/gigaset-frontend/files/Makefile.config

     
     1PREFIX='/usr' 
     2DESTDIR='' 
     3MANDIR='/usr/man' 
     4LIBDIR='/usr/lib' 
     5DATADIR='/usr/share' 
     6EXPAT='1' 
  • net/gigaset-frontend/patches/003-CFLAGS.patch

     
     1diff -Naur gigaset-frontend-0.5.3/console/Makefile gigaset-frontend-0.5.3-new/console/Makefile 
     2--- gigaset-frontend-0.5.3/console/Makefile     2006-07-23 15:02:05.000000000 +0200 
     3+++ gigaset-frontend-0.5.3-new/console/Makefile 2008-07-03 18:41:24.000000000 +0200 
     4@@ -1,4 +1,6 @@ 
     5+ifndef CFLAGS 
     6 CFLAGS = -Wall 
     7+endif 
     8 CFLAGS += -g 
     9 #CFLAGS += -pedantic -W 
     10 INSTALL = install 
     11@@ -44,7 +46,7 @@ 
     12        $(CC) $(CFLAGS) -o gigacontr$(EXTEXEC) gigacontr.o $(TOPDIR)/lib/libgigaset.a 
     13  
     14 gigaconf$(EXTEXEC):    gigaconf.o Makefile $(TOPDIR)/lib/libgigaset.a 
     15-       $(CC) $(CFLAGS) -o gigaconf$(EXTEXEC) gigaconf.o $(TOPDIR)/lib/libgigaset.a -lexpat 
     16+       $(CC) $(CFLAGS) -o gigaconf$(EXTEXEC) gigaconf.o $(TOPDIR)/lib/libgigaset.a -L$(STAGING_DIR)/usr/lib -lexpat 
     17  
     18 %.d: %.c 
     19        $(CC) -M $(CFLAGS) $< | \ 
     20diff -Naur gigaset-frontend-0.5.3/lib/Makefile gigaset-frontend-0.5.3-new/lib/Makefile 
     21--- gigaset-frontend-0.5.3/lib/Makefile 2006-07-23 15:02:05.000000000 +0200 
     22+++ gigaset-frontend-0.5.3-new/lib/Makefile     2008-07-03 17:15:23.000000000 +0200 
     23@@ -1,4 +1,6 @@ 
     24+ifndef CFLAGS 
     25 CFLAGS = -Wall 
     26+endif 
     27 CFLAGS += -g 
     28 #CFLAGS += -pedantic -W 
     29 #CFLAGS += -DGIG_TEST #FIXME REMOVE 
  • net/gigaset-frontend/Makefile

     
     1#  
     2# Copyright (C) 2008 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7# $Id:$ 
     8 
     9include $(TOPDIR)/rules.mk 
     10 
     11PKG_NAME:=gigaset-frontend 
     12PKG_VERSION:=0.5.3 
     13PKG_RELEASE:=1 
     14 
     15PKG_SOURCE:=gigaset-frontend-$(PKG_VERSION).tar.bz2 
     16PKG_SOURCE_URL:=@SF/gigaset307x 
     17PKG_MD5SUM:=2a494f9a68c07c0d7eb57fe248e4013e 
     18 
     19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     20 
     21 
     22include $(INCLUDE_DIR)/package.mk 
     23 
     24define Package/gigaset-frontend 
     25  SECTION:=net 
     26  CATEGORY:=Network 
     27  TITLE:=Siemens GigaSet 307x isdn frontend 
     28  URL:=http://gigaset307x.sourceforge.net/ 
     29  DEPENDS:=+kmod-gigaset +libexpat 
     30endef 
     31 
     32define Package/gigaset-frontend/description 
     33 The Gigaset 3070 isdn (aka Sinus 45 isdn) and its descendants 
     34 are ISDN DECT base stations allowing the connection of a PC via USB or DECT. 
     35 This project is developing the Linux support (drivers and frontend utilities) 
     36 which Siemens neglected to provide. 
     37endef 
     38 
     39define Build/Configure 
     40    $(CP) ./files/Makefile.config $(PKG_BUILD_DIR)/Makefile.config 
     41endef 
     42 
     43define Package/gigaset-frontend/install 
     44        $(INSTALL_DIR) $(1)/usr/sbin 
     45        $(INSTALL_BIN) $(PKG_BUILD_DIR)/console/gigacontr $(1)/usr/sbin/ 
     46        $(INSTALL_BIN) $(PKG_BUILD_DIR)/console/gigaconf $(1)/usr/sbin/ 
     47endef 
     48   
     49$(eval $(call BuildPackage,gigaset-frontend)) 
     50