2005-03-08 05:57:04 +02:00
|
|
|
diff -ruN popt-1.7-orig/ipkg/libpopt/CONTROL/control popt-1.7-3/ipkg/libpopt/CONTROL/control
|
2005-03-06 14:30:39 +02:00
|
|
|
--- popt-1.7-orig/ipkg/libpopt/CONTROL/control 1970-01-01 01:00:00.000000000 +0100
|
2005-03-08 05:57:04 +02:00
|
|
|
+++ popt-1.7-3/ipkg/libpopt/CONTROL/control 2005-03-08 03:24:11.000000000 +0100
|
2005-03-06 14:30:39 +02:00
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+Package: libpopt
|
|
|
|
+Priority: optional
|
|
|
|
+Section: libs
|
2005-03-08 05:57:04 +02:00
|
|
|
+Version: [TBDL]
|
|
|
|
+Architecture: [TBDL]
|
2005-03-06 14:30:39 +02:00
|
|
|
+Maintainer: Nico <nthill@free.fr>
|
|
|
|
+Source: http://nthill.free.fr/openwrt/sources/popt/
|
|
|
|
+Description: a command line option parsing library
|
2005-03-08 05:57:04 +02:00
|
|
|
diff -ruN popt-1.7-orig/ipkg/popt-dev/CONTROL/control popt-1.7-3/ipkg/popt-dev/CONTROL/control
|
|
|
|
--- popt-1.7-orig/ipkg/popt-dev/CONTROL/control 1970-01-01 01:00:00.000000000 +0100
|
|
|
|
+++ popt-1.7-3/ipkg/popt-dev/CONTROL/control 2005-03-08 03:26:21.000000000 +0100
|
2005-03-06 14:30:39 +02:00
|
|
|
@@ -0,0 +1,8 @@
|
2005-03-08 05:57:04 +02:00
|
|
|
+Package: popt-dev
|
2005-03-06 14:30:39 +02:00
|
|
|
+Priority: optional
|
|
|
|
+Section: devel
|
2005-03-08 05:57:04 +02:00
|
|
|
+Version: [TBDL]
|
|
|
|
+Architecture: [TBDL]
|
2005-03-06 14:30:39 +02:00
|
|
|
+Maintainer: Nico <nthill@free.fr>
|
|
|
|
+Source: http://nthill.free.fr/openwrt/sources/popt/
|
|
|
|
+Description: a command line option parsing library (development)
|
2005-03-08 05:57:04 +02:00
|
|
|
diff -ruN popt-1.7-orig/ipkg/rules popt-1.7-3/ipkg/rules
|
2005-03-06 14:30:39 +02:00
|
|
|
--- popt-1.7-orig/ipkg/rules 1970-01-01 01:00:00.000000000 +0100
|
2005-03-08 05:57:04 +02:00
|
|
|
+++ popt-1.7-3/ipkg/rules 2005-03-08 03:50:49.000000000 +0100
|
|
|
|
@@ -0,0 +1,126 @@
|
2005-03-06 14:30:39 +02:00
|
|
|
+#!/usr/bin/make -f
|
|
|
|
+
|
|
|
|
+ifneq ($(strip ${IPKG_RULES_INC}),)
|
|
|
|
+ include $(IPKG_RULES_INC)
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+##
|
|
|
|
+
|
2005-03-08 05:57:04 +02:00
|
|
|
+PKG_VERSION := $(shell cat ./ipkg/version)
|
2005-03-06 14:30:39 +02:00
|
|
|
+CURRENT_DIR := $(shell pwd)
|
|
|
|
+INSTALL_DIR = $(CURRENT_DIR)/ipkg-install
|
|
|
|
+
|
|
|
|
+I_LIBPOPT := ipkg/libpopt
|
2005-03-08 05:57:04 +02:00
|
|
|
+I_POPT_DEV := ipkg/popt-dev
|
2005-03-06 14:30:39 +02:00
|
|
|
+
|
|
|
|
+BUILD_DEPS := \
|
|
|
|
+
|
2005-03-08 05:57:04 +02:00
|
|
|
+CONFIGURE_OPTS = \
|
|
|
|
+ --enable-shared \
|
|
|
|
+ --enable-static \
|
|
|
|
+
|
2005-03-06 14:30:39 +02:00
|
|
|
+##
|
|
|
|
+
|
|
|
|
+all: package
|
|
|
|
+
|
2005-03-08 05:57:04 +02:00
|
|
|
+
|
2005-03-06 14:30:39 +02:00
|
|
|
+.stamp-configured: $(BUILD_DEPS)
|
|
|
|
+
|
|
|
|
+ rm -rf config.cache
|
|
|
|
+ $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
+ CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
+ am_cv_func_iconv=no \
|
|
|
|
+ ./configure \
|
|
|
|
+ --target=$(GNU_TARGET_NAME) \
|
|
|
|
+ --host=$(GNU_TARGET_NAME) \
|
|
|
|
+ --build=$(GNU_HOST_NAME) \
|
|
|
|
+ --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_NLS) \
|
2005-03-08 05:57:04 +02:00
|
|
|
+ $(CONFIGURE_OPTS) \
|
2005-03-06 14:30:39 +02:00
|
|
|
+
|
|
|
|
+ touch .stamp-configured
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+.stamp-built: .stamp-configured
|
|
|
|
+
|
|
|
|
+ $(MAKE) \
|
|
|
|
+ $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
+ CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
+
|
|
|
|
+ touch .stamp-built
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+$(INSTALL_DIR)/usr/include/popt.h: .stamp-built
|
|
|
|
+
|
|
|
|
+ mkdir -p $(INSTALL_DIR)
|
|
|
|
+
|
|
|
|
+ $(MAKE) \
|
|
|
|
+ DESTDIR="$(INSTALL_DIR)" \
|
2005-03-08 05:57:04 +02:00
|
|
|
+ transform="s,x,x," \
|
2005-03-06 14:30:39 +02:00
|
|
|
+ install
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+configure: .stamp-configured
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+build: .stamp-built
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+install: $(INSTALL_DIR)/usr/include/popt.h
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+package: $(INSTALL_DIR)/usr/include/popt.h
|
|
|
|
+
|
|
|
|
+ mkdir -p $(I_LIBPOPT)/usr/lib
|
|
|
|
+ cp -fpR $(INSTALL_DIR)/usr/lib/libpopt*.so.* $(I_LIBPOPT)/usr/lib/
|
|
|
|
+ $(STRIP) $(I_LIBPOPT)/usr/lib/lib*.so.*
|
|
|
|
+
|
2005-03-08 05:57:04 +02:00
|
|
|
+ mkdir -p $(I_POPT_DEV)/usr/include
|
|
|
|
+ cp -fpR $(INSTALL_DIR)/usr/include/popt.h $(I_POPT_DEV)/usr/include/
|
|
|
|
+ mkdir -p $(I_POPT_DEV)/usr/lib
|
|
|
|
+ cp -fpR $(INSTALL_DIR)/usr/lib/libpopt*.a $(I_POPT_DEV)/usr/lib/
|
|
|
|
+ cp -fpR $(INSTALL_DIR)/usr/lib/libpopt*.so* $(I_POPT_DEV)/usr/lib/
|
2005-03-06 14:30:39 +02:00
|
|
|
+
|
2005-03-08 05:57:04 +02:00
|
|
|
+ chmod 0755 ipkg/*/CONTROL/
|
|
|
|
+ chmod 0644 ipkg/*/CONTROL/control
|
|
|
|
+
|
|
|
|
+ perl -pi -e "s/^Arch.*:.*/Architecture: $(TARGET_ARCH)/g" ipkg/*/CONTROL/control
|
|
|
|
+ifneq ($(strip $(PKG_VERSION)),)
|
|
|
|
+ perl -pi -e "s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg/*/CONTROL/control
|
|
|
|
+endif
|
2005-03-06 14:30:39 +02:00
|
|
|
+
|
|
|
|
+ $(IPKG_BUILD) $(I_LIBPOPT) $(IPKG_TARGET_DIR)
|
2005-03-08 05:57:04 +02:00
|
|
|
+ $(IPKG_BUILD) $(I_POPT_DEV) $(IPKG_TARGET_DIR)
|
2005-03-06 14:30:39 +02:00
|
|
|
+
|
|
|
|
+
|
|
|
|
+clean:
|
|
|
|
+
|
|
|
|
+ -$(MAKE) clean
|
|
|
|
+ rm -rf .stamp-*
|
2005-03-08 05:57:04 +02:00
|
|
|
+ rm -rf $(INSTALL_DIR)/usr/include/popt*
|
|
|
|
+ rm -rf $(INSTALL_DIR)/usr/include/libpopt*
|
|
|
|
+ rm -rf $(INSTALL_DIR)/usr/share/man/man*/popt*
|
2005-03-06 14:30:39 +02:00
|
|
|
+ rm -rf $(I_LIBPOPT)/usr
|
2005-03-08 05:57:04 +02:00
|
|
|
+ rm -rf $(I_POPT_DEV)/usr
|
2005-03-06 14:30:39 +02:00
|
|
|
+
|
|
|
|
+
|
|
|
|
+control:
|
|
|
|
+
|
|
|
|
+ @cat $(I_LIBPOPT)/CONTROL/control
|
|
|
|
+ @echo
|
2005-03-08 05:57:04 +02:00
|
|
|
+ @cat $(I_POPT_DEV)/CONTROL/control
|
2005-03-06 14:30:39 +02:00
|
|
|
+ @echo
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+.PHONY: configure build install package clean control
|
2005-03-08 05:57:04 +02:00
|
|
|
diff -ruN popt-1.7-orig/ipkg/version popt-1.7-3/ipkg/version
|
|
|
|
--- popt-1.7-orig/ipkg/version 1970-01-01 01:00:00.000000000 +0100
|
|
|
|
+++ popt-1.7-3/ipkg/version 2005-03-08 03:23:49.000000000 +0100
|
|
|
|
@@ -0,0 +1 @@
|
|
|
|
+1.7-3
|