Skip to contentSkip to conversation

ed: Convert to generic package infrastructure

PATCH New Markos Chandras 2 participants 2 messages May 21, 2013 – May 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ed: Convert to generic package infrastructure

From: Markos Chandras <[email protected]>

The package uses custom configure and Makefile files.

---
Changes since v1:
- whitespace cleanup
- Use $(TARGET_CONFIGURE_OPTS)

---
 package/ed/ed.mk | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
package/ed/ed.mk +17 -1
index 2bb8e0e..52ae1f0 100644
@@ -11,4 +11,20 @@ ED_CONF_OPT = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
 ED_LICENSE = GPLv3+
 ED_LICENSE_FILES = COPYING
 
-$(eval $(autotools-package))
+define ED_CONFIGURE_CMDS
+	(cd $(@D); \
+		./configure \
+		--prefix=/usr \
+		$(TARGET_CONFIGURE_OPTS) \
+	)
+endef
+
+define ED_BUILD_CMDS
+	$(MAKE)	-C $(@D)
+endef
+
+define ED_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.8.2.1
#1 lore raw

PATCH v2 1/1 ed: Convert to generic package infrastructure

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Markos" == Markos Chandras <[email protected]> writes:

Markos> From: Markos Chandras <[email protected]> Markos> The package uses custom configure and Makefile files.

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard