aboutsummaryrefslogtreecommitdiff
path: root/Mk/Uses/lha.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk/Uses/lha.mk')
-rw-r--r--Mk/Uses/lha.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/Mk/Uses/lha.mk b/Mk/Uses/lha.mk
new file mode 100644
index 000000000000..452896f754d8
--- /dev/null
+++ b/Mk/Uses/lha.mk
@@ -0,0 +1,22 @@
+# $FreeBSD$
+#
+# handle lha archives
+#
+# Feature: lha
+# Usage: USES=lha
+#
+.if !defined(_INCLUDE_USES_LHA_Mk)
+_INCLUDE_USES_LHA_MK= yes
+
+EXTRACT_SUFX?= .lzh
+
+.if defined(lha_ARGS)
+IGNORE= Incorrect 'USES+=lha:${lha_ARGS}' expecting 'USES+=lha'
+.endif
+
+EXTRACT_DEPENDS+= lha:${PORTSDIR}/archivers/lha
+EXTRACT_CMD?= ${LHA_CMD}
+EXTRACT_BEFORE_ARGS?= xfpw=${WRKDIR}
+EXTRACT_AFTER_ARGS?=
+
+.endif